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 or FM to get stock on specific date

Hamza_imran
Participant
0 Kudos
2,534

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.

3 REPLIES 3

ankurch
Active Contributor
0 Kudos
2,032

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.

natarajg
Discoverer
0 Kudos
2,032

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.

0 Kudos
2,032

Hi Natarj,

There is no parameter of date_from in the bapi_material_stock_req_list.

Regards.