cancel
Showing results for 
Search instead for 
Did you mean: 

ALV page break

Former Member
0 Kudos

is there anyway to set a page break in ALV,

Like if I was sorting and totaling my alv by cost center

I would like to have a page break after the total.

is this possible from a programming aspect.

thanks

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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.

Courtesy: Search

Rgds,

Mano Sri

Former Member
0 Kudos

hi,

how do you create a group so the program knows when to page break.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi...

In the It_SOET internal table write:

IT_SORT-Group = 'X'.

It will give a page break...