Application Development and Automation 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: 
Read only

BAPI for displaying stock

Former Member
0 Likes
1,977

hi,

Is there a bapi/FM which gives us the stock of a material on a particular date.

Satish

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,491

Hi,

Check BAPI_MATERIAL_STOCK_REQ_LIST.

Thanks and Regards,

Bharat Kumar Reddy.V

hi,

Is there a bapi/FM which gives us the stock of a material on a particular date.

Satish

4 REPLIES 4
Read only

Former Member
0 Likes
1,492

Hi,

Check BAPI_MATERIAL_STOCK_REQ_LIST.

Thanks and Regards,

Bharat Kumar Reddy.V

Read only

0 Likes
1,491

hi bharat,

thank you. I just have a small doubt, can we use BAPI_MATERIAL_STOCK_REQ_LIST to get the stock of the material on a particular date.

Satish

Read only

0 Likes
1,491

Hi Satish,

Sorry, it will give the requirement... you can try the following ...

For Materials (MARD-MATNR) selected above, Plant (MARD-WERKS) = Input Plant and Storage Location (MARD-LGORT) NOT EQUAL TO “RT01”, determine all the un-restricted quantities (MARD-LABST) and Stock in Inspection (MARD-INSME). Sum up all the quantities. Let the sum be equal to “ST”.

For Posting date (MKPF-BUDAT) = current date, determine all the Material documents (MKPF-MBLNR).

For Documents (MSEG-MBLNR) determined above, Materials (MSEG-MATNR) selected above, Storage Location (MSEG- LGORT) NOT EQUAL “RT01”, Movement type (MSEG-BWART) NOT EQUAL to “321”, Debit / Credit indicator (MSEG-SHKZG) = “H” pick up all the quantities (MSEG-MENGE). Sum up all the quantities. Let the sum be equal to “H”.

Similarly, For Documents (MSEG-MBLNR) determined above, Materials (MSEG-MATNR) selected above, Storage Location (MSEG- LGORT) NOT EQUAL “RT01” Movement type (MSEG-BWART) NOT EQUAL to “321”, Debit / Credit indicator (MSEG-SHKZG) = “S” pick up all the quantities (MSEG-MENGE). Sum up all the quantities. Let the sum be equal to “S”.

Then On date Stock (Un-restricted + QI) = “ST” + “H” – “S”

Thanks and Regards,

Bharat Kumar Reddy.V

Read only

Former Member
0 Likes
1,491

Hi Satish

BAPI_MATERIAL_AVAILABILITY can give us the stock of now, if you need to get the stock for a particular date option would be to gather material movements(MKPF, MSEG) and manipulate ourselves w.r.t current stock.

Kind Regards

Eswar