2023 Jan 12 10:22 AM
Hello Experts,
Wanted to know if there is any BAPI or FM to get material stock on a specific date? Have gone through BAPI's for getting stock with respect to plant but i need material stock on a given date for my ABAP Development.
Regards.
2023 Jan 12 12:16 PM
Hello Hamza,
Not sure about BADI, but you can get this information from MARD/MARDH, SAP has one standard report MB5B for this purpose and its very very complex.
2023 Jan 12 12:16 PM
There is a BAPI called BAPI_MATERIAL_STOCK_REQ_LIST that can be used to retrieve material stock information for a specific date and plant. The BAPI takes several input parameters such as the material number, plant, and storage location, as well as a date parameter called "DATE_FROM" which is used to specify the date for which stock information is desired. The BAPI returns a list of stock quantities and values for the specified material and location.
Alternatively, you can also use function module MB_STOCK_REQUIREMENTS_LIST to get the stock information for a specific date. This FM also takes similar input parameters and returns the stock information for the given date and other filter conditions.
2023 Jan 13 7:40 AM
Hi Natarj,
There is no parameter of date_from in the bapi_material_stock_req_list.
Regards.