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

ALV List Display

Former Member
0 Likes
433

Hi,

How to implement the page breaks after every N lines ?

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
410

<a href="http://www.saptechies.com/achieving-page-breaks-using-alv-grid/">Achieving Page Breaks using ALV Grid</a>

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’. “ Sort order position

FS_SORT-FIELDNAME = ‘CARRID’. “ Field name on which page break need to be triggered. Whenever this field changes, page break will trigger

FS_SORT-GROUP = ‘’. “ This has 2 options. ‘’ for page breaks and ‘U’ 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.

However, in ALV grid, you will not be able to see the page breaks on the screen. Once you convert the ALV grid to “List Output”, you could see the page breaks or during print from the ALV grid.

Regards

Hi,

How to implement the page breaks after every N lines ?

1 REPLY 1
Read only

RaymondGiuseppi
Active Contributor
0 Likes
411

<a href="http://www.saptechies.com/achieving-page-breaks-using-alv-grid/">Achieving Page Breaks using ALV Grid</a>

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’. “ Sort order position

FS_SORT-FIELDNAME = ‘CARRID’. “ Field name on which page break need to be triggered. Whenever this field changes, page break will trigger

FS_SORT-GROUP = ‘’. “ This has 2 options. ‘’ for page breaks and ‘U’ 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.

However, in ALV grid, you will not be able to see the page breaks on the screen. Once you convert the ALV grid to “List Output”, you could see the page breaks or during print from the ALV grid.

Regards