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

Automatic stock determination in program

Former Member
0 Likes
718

Hi All,

I have a requirement to create Goods Issue for which I am using the FM 'BAPI_GOODSMVT_CREATE'.

But, it should support automatic stock determination if Storage location is selected as '*' in the selection screen (same way as the tcode MB1A behaves).

Please let me know if there is any FM which can be used for Stock Determination or any code which might help me achieve this functionality.

Regards

2 REPLIES 2
Read only

Former Member
0 Likes
501

Hi,

Please check

1) BAPI_WHSE_STOCK_GET_DETAIL

2) MB_READ_MATERIAL_STOCKS

3) BAPI_MATERIAL_AVAILABILITY

4) MD_STOCK_REQUIREMENTS_LIST_API

Hope it helps.

Regards

Hiren K.Chitalia

Read only

mvoros
Active Contributor
0 Likes
501

Hi,

the BAPI BAPI_GOODSMVT_CREATE does not support automatic sloc determination. See question 5 in note 520813. So you need to to debug MB1A how SAP determines suitable sloc. Have a look at form BESTANDSFINDUNG in program SAPMM07M.

Cheers