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

Function Module to find Opening & Beginning stock

Former Member
0 Likes
1,567

Hello All,

Is there any function module to get Opening & Beginning stock for a particular material, Plant, storage loc, year and period.

Plant and storage location are multiple entries.

Year and Period are single entries on selection screen.

I need to develop a report which should show the opening and end stock for a given period.

I know the table where in we can get the stock from MARD and MARDH tables.

I know that MB5B is to find the stock.

- Vinod

3 REPLIES 3
Read only

Former Member
0 Likes
713

Vinod,

Unfortunately there is no direct FM to get the opening and closing stocku2026

For calculating stock, for given period, you need to use the Material documents posted in that particular period (you also need to use mseg and mkpf table for document stock) and also consider the movement type for the posted documentu2026 and sum up all the documents and finally you will get the Stock on the periodu2026

Regards,

Sreenu Valeti

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
713

Check what is written in MB5B.

Refer link:[http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=72977]

Read only

Former Member
0 Likes
713

HI

Please check out BAPI_GOODSMVT_GETDETAIL.

Best regards,

Guido Koopmann