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.
cancel
Showing results for 
Search instead for 
Did you mean: 

page break in ALV reports

Former Member
0 Kudos

How to achieve <b>page break in ALV reports</b>?

My requirement is suppose if we are printing sales order details for each sals order items page break should be triggered.

3 REPLIES 3

Former Member
0 Kudos

Hi,

You can use the option of Grouping to achieve this.

For more details, read the documentation of the data element SLIS_CTRLS, which is used for the structure field slis_sortinfo_alv-group.

slis_sortinfo_alv is the line type of the parameter IT_SORT of the FM REUSE_ALV_GRID_DISPLAY.

If you use '*' as the value for slis_sortinfo_alv-group, it will initiate a page break and if you use 'UL', the ALV will use Underline to differentiate between the group.

Example:

sort-spos = '10'.

SORT-FIELDNAME = 'Years'.

SORT-TABNAME = 'DATA_TAB2'.

sort-UP = 'X'.

sort-subtot = 'X'.

SORT-GROUP = '* '.

APPEND SORT. CLEAR SORT.

But you need to take Print out only then you can see the difference.

Regards,

Ram

Pls reward points if helpful

0 Kudos

See the below thread for ALV GRID Example for page break/b]

Former Member
0 Kudos

hi check: