We can get the material stock by using the BAPI FM- BAPI_MATERIAL_AVAILABILITY.
Go to Tx- CO09. Provide the material name, plant and check rule. Enter.
The available stock is as highlighted below.
Let’s check the stock availability in by using the BAPI FM. Open the FM- BAPI_MATERIAL_AVAILABILITY in Tx- SE37. Test.
Provide the plant, material, unit, check rule and storage location and execute.
Here is the available stock.