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

Finding availability stock

Former Member
0 Likes
483

Hi ABAP Gurus,

I have requirement to find real availability stock (status is not reserved nor in PO status).

I've tried using FM 'BAPI_MATERIAL_AVAILABILITY'. It gave me not only the real availability stock, but also stock that still in PO (committed qty).

Are there any FM or table to accommodate my requirement?

I'm not so sure about MARD table. It has Unrestricted stock field. Is that field can accommodate my requirement?

Thanks for the help.

Best Regards

::gaantz::

2 REPLIES 2
Read only

eduardo_hinojosa
Active Contributor
0 Likes
407

Hi,

Check the function module MD_STOCK_REQUIREMENT_LIST_API. It's the same that tcode MD04 uses. Filter the records that you want and build your own algorithm of availability.

Regards

Eduardo

Read only

brad_bohn
Active Contributor
0 Likes
407

It gave me not only the real availability stock, but also stock that still in PO (committed qty).

Then you need to use or configure a different checking rule to match. See the SD->Basic Functions section of the IMG.