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: 

Function Module/BAPI to check if material is available in the warehouse

Former Member
0 Kudos

Hi all,

I have a requirement where i get the input as material number and i need to check if the material is available in stock and return the quantity of stock available. Do we have a Function Module/BAPI that takes the input as material number and tells if the material is available in stock or not.

The material can be a simple finished product, raw material or BOM. The function module should take the input as material number and should return if it is available in stock and the quantity that is available.

I donu2019t know if this is called ATP. Do we have a standard function module available for that?

Kindly help.

Regards,

Jessica Sam.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hello,

You may use BAPI_MATERIAL_AVAILABILITY for availability check. You will get stock in export parameter AV_QTY_PLT.

Thanks,

Venu

3 REPLIES 3

Former Member
0 Kudos

Hello,

You may use BAPI_MATERIAL_AVAILABILITY for availability check. You will get stock in export parameter AV_QTY_PLT.

Thanks,

Venu

0 Kudos

Thanks Venu for immediate reply,

I saw the BAPI and unable to figure out what paramters I should fill.

Plant, Material and Quantity I know. But rest of them like

Check Rule, STGE_LOC, batch, Doc_number, WBS_ELEM, STOCK_IND,

DEC_FOR_ROUNDING, DEC_FOR_ROUNDING_X, READ_ATP_LOCK, READ_ATP_LOC_X & MATERIAL_EVG.

In the BAPI documentation I dint find how to fill these paramters. Can you help me with hat I need to fill in the input paramters.

Regards,

Jessica Sam

0 Kudos