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

Page Break in ALV List display

Former Member
0 Kudos

Dear Community,

I have a requirement wherein we have group account number ,under which there are 'n'sub group account numbers.Each sub group account number has credit,debit,cumulative(credit-debit) values.whenever group account number changes automatically a new page should be triggered.Now the problem sub account number is running into pages but same page number is displayed even it runs into several pages.I need to restrict this ,at the end of the page(std is 65 lines/page)page break has to be applied,along with the subtotals of the credit,debit,cumulative respectively and page number has to be displayed and the process should continue with the remaining sub group account number values.

Please do the needfull.

Thanks & Regards,



Active Contributor
0 Kudos


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

Hope this helps you.

Enjoy SAP.

Pankaj Singh.

Former Member
0 Kudos

Hi Pankaj,

Thanks for your reply,

If u have come across this,if you have worked on this can you pass on the entire code if possible so that it will become easy to analyse