Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8937

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

$
0
0

sort your IT by f1 f2 f3 f4 f5 then

loop at it into wa.

 

if(wa-f1 = lv_f1 and wa-f2 = lv_f2 and wa-f3 = lv_f3 and wa-f4 =lv_f4 and wa-f5 = lv_f5).

here you add amount.

endif.

 

lv_f1 = wa-f1.

lv_f2 = wa-f2.

lv_f3 = wa-f3.

lv_f4 = wa-f4.

lv_f5 = wa-f5.

 

endloop.


Viewing all articles
Browse latest Browse all 8937

Trending Articles



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