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: 

BAPI for material stock at batch level

LMA
Discoverer
0 Kudos

Hi,

I need to know the stock (quantity) of any given combination of a material code, plant, location, and batch number.

I tried BAPI_MATERIAL_GETBATCHES and BAPI_BATCH_GET_DETAIL, but in both BAPI there is no information regarding the stock.  

With the MB52, I can get the information of the stock.

Which BAPI can I use to get the stock from a batch number?

TIA

Best Regards

 

 

  • SAP Managed Tags:
2 REPLIES 2

raymond_giuseppi
Active Contributor

AFAIK there are no such BAPI, you could try a call of RFC_READ_TABLE on table MCHB from data returned by BAPI_MATERIAL_GETBATCHES. 

  • SAP Managed Tags:

0 Kudos

Hi Raymond,

Thant for you reply.

Is there a BAPI equivalent to MB52? or any BAPI that return material, plant, location, batch, and stock? 

Best Regards,

 

 

  • SAP Managed Tags: