on 2005 Jun 06 4:00 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi...
In the It_SOET internal table write:
IT_SORT-Group = 'X'.
It will give a page break...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
70 | |
10 | |
10 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.