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

addition

Former Member
0 Likes
289

Hi to exprts.

Doc no amt1 amt2

01 20 40

01 30 40

-


50 80

For that can I used this coding

At end of doc no.

Sum.

Writ : amt1,

Amt2.

endat.

OR

Collect statement. For adding both rows as mentioned.

Thanks in advance and reward also.

Regard : deep.

1 REPLY 1
Read only

Former Member
0 Likes
264

You can use either AT END OF or COLLECT statement for this.

LOOP AT itab.
  COLLECT itab INTO itab2.
ENDLOOP.

itab2 will have your desired output.

Please mark points if the solution was useful.

Regards,

Manoj