Skip to Content
0
Sep 22, 2005 at 07:29 AM

count registers in loop

27 Views

Hi,

i´ve got the following internal table:

DATA: BEGIN OF ITAB OCCURS 0.

RSNUM TYPE MSEG-RSNUM,

RSPOS TYPE MSEG-RSPOS,

CHARG TYPE MSEG-CHARG.

DATA: END OF ITAB.

i can have several CHARG within the same RSNUM RSPOS.

How can i know the number of RSNUM RSPOS?

e.g.

RSNUM RSPOS CHARG

7000000182 0001 C000000548

7000000182 0001 C000000549

7000000182 0002 C000000550

in a LOOP with AT NEW RSNUM i would get the number of RSNUM but i need the combination of RSNUM RSPOS.

How can i do like AT NEW but for both RSNUM and RSPOS?

Best regards.