‎2008 Dec 23 6:18 AM
hi,
i have a requirment where i have to put page breaks in th ALV Grid output...
Pleas help me..
Thanks and Regards
shanto aloor
‎2008 Dec 23 6:22 AM
‎2008 Dec 23 6:22 AM
HI,
In order to achieve the Page Breaks, we need to fill in the sort catalog structure, LVC_S_SORT, as follows:
FS_SORT-SPOS = '1'. u201C Sort order position
FS_SORT-FIELDNAME = 'CARRID'. u201C Field name on which page break need to be triggered. Whenever this field changes, page break will trigger
FS_SORT-GROUP = ''. u201C This has 2 options. u2018u2019 for page breaks and u2018Uu2019 for underlines.
FS_SORT-OBLIGATORY = 'UL'. u201C If you need to retail these page breaks through out, we need to set this as obligatory. Otherwise, if the end user selects any other field and presses SORT, then page breaks would disappear.
APPEND FS_SORT TO T_SORT.
However, in ALV grid, you will not be able to see the page breaks on the screen. Once you convert the ALV grid to u201CList Outputu201D, you could see the page breaks or during print from the ALV grid.
‎2008 Dec 23 6:32 AM
<<Cut and pasted answer - points removed>>
Hi Shanto,
To set the Page Breaks, yot need to fill in the sort catalog structure, LVC_S_SORT:
FS_SORT-SPOS = '1'. u201C Sort order position
FS_SORT-FIELDNAME = 'CARRID'. "The field name where the page break should trigger. Whenever the field changes, the page break will trigger.
FS_SORT-GROUP = ''. u201C This has 2 options. u2018u2019 for page breaks and u2018Uu2019 for underlines.
FS_SORT-OBLIGATORY = 'UL'. "If you need to retail these page breaks through out, we need to set this as obligatory. Otherwise, if the end user selects any other field and presses SORT, then page breaks would disappear.
APPEND FS_SORT TO T_SORT.
Note: In ALV grid, you will not be able to see the page breaks on the screen. Once you convert the ALV grid to u201CList Outputu201D, you could see the page breaks or during print from the ALV grid.
Regards,
John Mani
Edited by: Matt on Dec 23, 2008 12:23 PM