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.