cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI for Material storage location wise stock check

hossain_rajib55
Participant
0 Kudos
297

 

I need a BAPI in which i can check material storage location & plant wise current stock.

Right now i am using "BAPI_MATERIAL_AVAILABILITY" but here its give total stock but i need storage location wise stock.

Regards-

Rajib

Accepted Solutions (0)

Answers (2)

Answers (2)

raymond_giuseppi
Active Contributor

You can try calling BAPI_MATERIAL_AVAILABILITY and then reading MARD directly from a function module such as MARD_ARRAY_READ or RFC_READ_TABLE.

(But feel free to search your system for a mapping FM with a name such as MAP2E_MARD_TO_BAPI*, then locate the corresponding BAPI, usually in the same function group or referenced with the use case).

DominikTylczyn
Active Contributor
0 Kudos
MARD will give storage location stock, but not stock available at storage location according to ATP logic.
hossain_rajib55
Participant
0 Kudos
@raymond_giuseppi @DominikTylczyn i need stock data as like MB52 where stock given as per storage location wise.I need to use BAPI to do the job coz using this BAPI thirdparty app shows the result.
md_wasim_akhtar
Explorer
0 Kudos

If you need stock information (such as quantities at different storage locations for a given material), you would need to use different function modules, such as:

  • BAPI_MATERIAL_STOCK_REQ_LIST (if you need stock requirement data).
  • Direct table access to MARD (Material Master Storage Location) for actual stock quantities by plant and storage location.

ran out of option too 🤔.

DominikTylczyn
Active Contributor
0 Kudos
Please, don't confuse ATP (BAPI_MATERIAL_AVAILABILITY) with stock/requirements list (BAPI_MATERIAL_STOCK_REQ_LIST) or storage location stock (MARD).