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

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

$
0
0

Hi Suresh,

 

You need a unique record for the combination of f1, f2, f3, f4 and f5 right? The code I posted above does that. In the above code, as you said there are fields f1 to f9 and the tenth field called amount.

 

If the five fields f1, f2, f3, f4 and f5 matches, the amount adds up and only one record is appended to the final table. The contents of other fields is the same as the content of the last record having the same value in the combination f1, f2, f3, f4 and f5. (This can be changed according to requirement. )

 

This is the output.

 

(Sorry don't know why, the images are not being uploaded. )


Viewing all articles
Browse latest Browse all 9236

Trending Articles



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