Skip to Content
avatar image
Former Member

AT END OF event

Hi,

i have a problem with at end of event.

suppose i have a internal table with the following data:

field1(A,B) , field2(numeric value)

A - 5

A - 5

A - 3

B - 8

B - 9

now i want to show the output as:

A - 13

B - 17

Can you tell be how that can be done using at end of event.

Reagrds,

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Jun 23, 2010 at 04:36 PM

    Pretty basic LOOP question...Have you looked at ABAP help? I don't use this construct (I like to write my own controls inside oops) but HELP shows how to do inside a loop:

    loop at...
    
     AT END OF fieldname
        SUM. 
    write:/, etc....
    endloop.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 23, 2010 at 04:57 PM

    prasenjit!!!

    what problem you are facing?? care to explain.. post your code so that we can check..

    either you try the above code.. or you try using COLLECT inplace of append in the place where you are adding entries into the internal table..

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 23, 2010 at 05:18 PM

    Moderator message - Please do not ask or answer basic questions - thread locked Rob

    Add comment
    10|10000 characters needed characters exceeded