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_MATERIAL_STOCK_REQ_LIST

Former Member
18,940

SAP rookie here, so bear with me. I'm attempting to be able to pull 'Availability Qty' data from tcode MD04. From the research I've done so far, it appears that the best route to go would be to use BAPI_MATERIAL_STOCK_REQ_LIST in order to get 'Available Qty' data. I've looked at this BAPI in SAP but have no idea how to use it correctly in order to get the data I need. If somebody could help me out it would be much appreciated. Thanks!

-Vinnie

1 ACCEPTED SOLUTION
Read only

Former Member
14,562

Hi,

BAPI_MATERIAL_STOCK_REQ_LIST gives you all data of MD04.

MD_STOCK_REQUIREMENTS_LIST_API is a FM that is called inside

You should run both these FM'S in SE37 providing it a material and plant and see what import data u need.

Function modules only receive a single material, so in your report you must call the function as many times as materials you have and store return items in internal tables before you display them.

2 REPLIES 2
Read only

Former Member
14,563

Hi,

BAPI_MATERIAL_STOCK_REQ_LIST gives you all data of MD04.

MD_STOCK_REQUIREMENTS_LIST_API is a FM that is called inside

You should run both these FM'S in SE37 providing it a material and plant and see what import data u need.

Function modules only receive a single material, so in your report you must call the function as many times as materials you have and store return items in internal tables before you display them.

Read only

0 Likes
14,562

thank you very much, your post was very helpful!