Skip to Content
0
Former Member
May 12, 2009 at 06:10 AM

logic

13 Views

Please use a meaningful subject in future

hi all,

i need to display the output in ALV format, the problem is

now the output is displaying as

MATERIAL PLANT DESCRITPTION

10001 99 SAMPLE DATA

10001 99 TESTING

10001 99 TEST DATA

10002 99 DATA

10002 99 TESTED

but the output should be as

MATERIAL PLANT DESCRITPTION

10001 99 SAMPLE DATA

TESTING

TEST DATA

10002 99 DATA

TESTED

for the above output i have kept sorting code on Material, but the problem is even i need to display the plant only once for that material as above . if i keep the sorting code for plant then it is displaying as below

MATERIAL PLANT DESCRITPTION

10001 99 SAMPLE DATA

TESTING

TEST DATA

10002 DATA

TESTED

for second material, plant is not displaying if it is same as above plant.plase see my code as below

lt_sort-fieldname = 'MATNR'.

lt_sort-tabname = 'GT_FINAL'.

  • lt_sort-spos = 1.

lt_sort-up = 'X'.

lt_sort-subtot = 'X'.

APPEND lt_sort TO gt_sort

thanks in advance.

Edited by: Matt on May 12, 2009 9:22 AM