09-08-2006 11:30 AM
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.
09-08-2006 11:31 AM
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
09-08-2006 11:32 AM
09-08-2006 11:34 AM