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

Function Module to Read Material Stock

Former Member
0 Likes
24,041

Hi All,

I need a function module that will return me the total stock of the Material. Please let me know of a function module that is reliable

I want the total stock of a material and not just unrestricted or blocked stock. Now the function module could either return me all different stock components (unrestricted, blocked, quality, etc) in which case I have to total up the components or it can even return 1 single total value.

This doesn't matter to me, but the total stock calculated/obtained should match the value in transaction MMBE.

I have already seen some function module MB_READ_MATERIAL_STOCKS (any ideas how to use this??...looks complicated!) and even VB_BATCH_GET_ALL_STOCKS (but I don't have batches and it requires batch numbers)

You can also suggest me a reliable way to get stock if the above doesn't work

Thanks and Regards,

Aditya

Regards,

Aditya

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
8,681

Hi Aditya:

You can got all stock quantity from table MARD.

5 REPLIES 5
Read only

Former Member
0 Likes
8,682

Hi Aditya:

You can got all stock quantity from table MARD.

Read only

aditya_palekar
Product and Topic Expert
Product and Topic Expert
0 Likes
8,681

Hi Samuel,

Is it possible for you to tell which specific fields I need to total up to get the total stock from MARD table (I can see many fields)...??

Thanks and Regards,

Aditya

Read only

0 Likes
8,681

Hi, Aditya:

MARD-LABST have the quantity.

Read only

Former Member
0 Likes
8,681

Refer the Bapi BAPI_MATERIAL_AVAILABILITY, here based on the plant and material we can find the availability of a particular material

Read only

Former Member
0 Likes
8,681

Hi, you can use also the FM:

- BF_READ_STOCK

- BF_READ_STOCK_E

- BF_READ_STOCK_Q