Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI to get the Material in Stock

Former Member
0 Kudos

Hi Experts,

I have requirement in which I have to call the function module(RFC Enabled) or BAPI which give the following fields as listed below

1.Plant

2.Material

3.Material description

4.Batch number

5.Material type

6.Basic unit of measure

7.Storage location

8.Unrestricted quantity (not consignment)

9.Reserved quantity

10.Quantity under inspection,

11.Blocked

12.Returns

13.Stock in transit

Please help me out soon.

Thanks and regards,

Kuldeep Verma

1 ACCEPTED SOLUTION

Former Member

Hi Friend,

Pls check the following

BAPI_MATERIAL_STOCK_REQ_LIST

Regards,

Suresh.S

6 REPLIES 6

Former Member
0 Kudos

hi check this..

BAPI_MATERIAL_SAVEDATA

Former Member
0 Kudos

Hi,

You can use 'BAPI_MATERIAL_AVAILABILITY' to find available stock of material.

You can get reservations and reserved quantity from table RESB.

Regards,

Aparna Gaikwad.

Former Member

Hi Friend,

Pls check the following

BAPI_MATERIAL_STOCK_REQ_LIST

Regards,

Suresh.S

0 Kudos

Thanks Aparna and Suresh, For giving me the help at right time.

But Still I am not able to find the BAPI for the fields like

Material description

Basic unit of measure

Can you please fwd me that BAPI also

Thanks and regards,

Kuldeep Verma

Former Member
0 Kudos

use the link:

http://www.sapbapi.com/bapi-list/

With luck,

Pritam.

Former Member
0 Kudos

Hi,

BAPI_MATERIAL_AVAILABILITY is the correct BAPI to get the details.

here is the sample code:

REPORT ZREPORT_MAT.

data: ENDLEADTME type BAPICM61M-WZTER,

AV_QTY_PLT type BAPICM61V-WKBST,

DIALOGFLAG type BAPICM61V-DIAFL,

RETURN type BAPIRETURN,

WMDVSX type table of BAPIWMDVS,

WMDVEX type table of BAPIWMDVE.

CALL FUNCTION 'BAPI_MATERIAL_AVAILABILITY'

EXPORTING

plant = '1100'

material = '000000000300000292'

unit = 'EA'

  • CHECK_RULE =

  • STGE_LOC =

  • BATCH =

  • CUSTOMER =

  • DOC_NUMBER =

  • ITM_NUMBER =

  • WBS_ELEM =

  • STOCK_IND =

  • DEC_FOR_ROUNDING =

  • DEC_FOR_ROUNDING_X =

  • READ_ATP_LOCK =

  • READ_ATP_LOCK_X =

  • MATERIAL_EVG =

IMPORTING

ENDLEADTME = ENDLEADTME

AV_QTY_PLT = AV_QTY_PLT

DIALOGFLAG = DIALOGFLAG

RETURN = RETURN

tables

wmdvsx = WMDVSX

wmdvex = WMDVEX

.

break developer.

write:/ AV_QTY_PLT.

Reward points if useful.