Skip to Content
0
Former Member
Nov 13, 2007 at 02:50 PM

Basic Looping Help

13 Views

Hi all,

I have an internal table sorted by customer and business area

e.g.

kunnr gsber value value2

10000 aa001 30 50

10000 aa001 20 30

10000 aa001 30 90

10000 bb001 10 80

10000 bb001 40 30

10003 aa001 30 40

10005 bb001 80 60

10005 cc001 20 90

10005 cc001 40 20

etc......

Needs to add the value for kunnr and gsber

and select the highest for value2

like:-

10000 aa001 80 90

10000 bb001 50 80

10003 aa001 30 40

10005 bb001 80 60

10005 cc001 40 90

etc......

Can you please help me do this. I know i will need to loop through table checking highest value and adding it with some ATs.

Thanks