‎2010 Mar 05 12:44 PM
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
‎2010 Mar 05 12:52 PM
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
‎2010 Mar 05 2:01 PM
Check what is written in MB5B.
Refer link:[http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=72977]
‎2010 Mar 05 2:07 PM
HI
Please check out BAPI_GOODSMVT_GETDETAIL.
Best regards,
Guido Koopmann