2006 Oct 17 7:47 AM
hi,
Is there a bapi/FM which gives us the stock of a material on a particular date.
Satish
2006 Oct 17 7:55 AM
Hi,
Check BAPI_MATERIAL_STOCK_REQ_LIST.
Thanks and Regards,
Bharat Kumar Reddy.V
2006 Oct 17 7:55 AM
Hi,
Check BAPI_MATERIAL_STOCK_REQ_LIST.
Thanks and Regards,
Bharat Kumar Reddy.V
2006 Oct 17 9:26 AM
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
2006 Oct 17 9:53 AM
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
2006 Oct 17 8:09 AM
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