Skip to Content
0
Former Member
Jul 14, 2008 at 04:09 PM

Logic in updating a internal table...

18 Views

Hello,

I have a internal table having values as follows:

I_TAB[]:

Doc-num..........Item-num.........amount........Doc-type

456..............01................4.26.................................

456..............02...............345.89..............................

456..............03..............-45.39................................

763...........and so on

After I loop at I_TAB[] is the sum of total amount > 0, the value in doc-type should get updated with 'PX' and if negative the, Doc-type should get updated with 'NX' for all the three records in internal table for whose amount were used in calculating net amount.

How can I achieve this ?

Regards,

Rajesh.