Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

problem on ALV

Former Member
0 Likes
543

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

3 REPLIES 3
Read only

Former Member
0 Likes
490

Hi...

Check the standard tcode

FBL5N.....

Read only

Former Member
0 Likes
490

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.

Read only

Former Member
0 Likes
490

<<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