Quantcast
Channel: SCN: Message List - ABAP Development
Viewing all articles
Browse latest Browse all 10425

Re: How to add amount of 2 records with same Key fields in an internal table?

$
0
0

Hi,

 

you can do this in no.of ways.

 

lets try in this way

 

for instance you have data in itab_1 and the result that you needed will come in itab_2

 

Loop at itab_1 into wa_1.

 

wa_2-f1 = wa_1-f1.

wa_2-f2 = wa_1-f2.

wa_2-f3 = wa_1-f3.

wa_2-f4 = wa_1-f4.

wa_2-f5 = wa_1-f5.

 

collect wa_2 into itab_2.

clear : wa_1,wa_2.

 

endloop.

 

Let me know if you have any doubts or questions

 

Thanks

SaiKrishna


Viewing all articles
Browse latest Browse all 10425

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>