2007 Jul 19 5:42 PM
Hi Guys,
I have a list of KUNNR (cust nos) and a classification group attached to each of them Now i have display a report in which the header should contain Classification group and list should be separated for every classification group.Following is the way i want to display.
In the internal table i have :
KUNNR CLASS SIZE
1256 class1 12cm
1234 class1 23cm
4555 class2 56cm
4557 class2 58cm
i have to display :
<b>Date : somedate
Classification : CLASS1</b>
KUNNR SIZE
1256 12cm
1234 23cm
<b>Date : somedate
Classification : CLASS2</b>
KUNNR SIZE
4555 56cm
4557 58cm
PLEASE HELP.
regards,
Santosh Kotra.
2007 Jul 19 5:45 PM
2007 Jul 19 6:06 PM
Hi Santosh,
I dont think you will be able to achive this using ALV.. Go with Classical Reporting........
Cheer's
Mahesh
2007 Jul 19 5:46 PM
HI,
You can use the control break statment to do this.
sort by itab by class
loop at itab.
at net class.
write : date,
'classification' , itab-class.
write : 'Kunnr',
'size'.
end at.
write : itab-kunnar,
itab-size.
endloop.
2007 Jul 19 5:49 PM
Hi,
fill the IT_SORT of the fm REUSE* fill up with classification group.
aRs
2007 Jul 19 6:04 PM
hi,
that works fine but its doesnt give me the header, even if i give a TOP_OF_PAGE in REUSE_ALV_LIST_DISPLAY. i am getting a constant TOP_OF_PAGE like below.
<b>Date : somedate
Classification : CLASS1</b>
KUNNR SIZE
1256 12cm
1234 23cm
<b>Date : somedate
Classification : CLASS1</b> "Class grp not changing
KUNNR SIZE
4555 56cm
4557 58cm
but i need
<b>Date : somedate
Classification : CLASS1</b>
KUNNR SIZE
1256 12cm
1234 23cm
<b>Date : somedate
Classification : CLASS2</b> "class grp change
KUNNR SIZE
4555 56cm
4557 58cm