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

Re: Trimming internal table based on criteria

$
0
0

Hi ,

 

There are multiple ways we can achieve that .

 

One of them being :

 

 

Sort itab1 by f1 .

 

Clear Gv_counter.

Loop at Itab1 .

Wa = itab1

Gv counter = gv_counter +1 .

At end of f1 .

If gv_counter > 1

Append wa to itab2 .

Endif .

Clear gv_counter.

Endat.

Endloop .

 

At the end of the loop run an entry will be created in the itab2 table for every duplicated f1 In  itab1.

 

Hope this helps

Amarpeeet .


Viewing all articles
Browse latest Browse all 8578

Trending Articles



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