Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Opening Stock and closing Stock

Hi Abapers ,

                  I have a requirement of opening stock and closing .

I have records in my internal table like this ,

                     material          doc.no          openingqty          closing qty

                     ------------------------------------------------------------------------------------

                      100-100          101               50                         70

                       100-100          102               60                         80

100-101      201            60                         90

                        100-101          202          40                              20

My requirement is the output should appear as follows that the closing qty  should be the opening qty of next doc no .

                   material               doc no               openingqty               closingqty

                 ------------------------------------------------------------------------------------------------------

                    100-100                 101                    50                         70   

                     100-100               102                   70                         80

                      100-101               201                    60                        90

                      100-101               202                   90                         20

Regards ,

Rocky

<thread locked by moderator, spoonfeeding is bad for health>

Message was edited by: Manish Kumar

Former Member
Not what you were looking for? View more on this topic or Ask a question