Hi,
I have an alv layout like following:
ZZZ 300100089 1050
ZZZ 300100089 1050
subtoal 2100
90256243 300100000 193410
90256242 300100000 173250
90256241 300100000 173250
90256240 300100000 173250
90256239 300100000 173250
90256238 300100000 173250
90256237 300100000 173250
subtotal 1232910
when the second numbers are the same,
I need to sum up as
300100089 2100
300100000 1232910
I write the coding as the following, but it did not work, Please
help and correct it!!
-
the coding:
data: it_sortcat type slis_sortinfo_alv occurs 1,
wa_sort like line of it_sortcat.
sort gt_outalv.
wa_sort-fieldname = 'wrbtr'.
wa_sort-SUBTOT = 'X'.
APPEND wa_sort TO it_sortcat.
In FM
it_sort = it_sortcat
-
I got dump and it did not work .
Please correct my coding !!
Thank you in advance,