User-defined page breaks in ALV table using CL_SALV_TABLE
we've changed a report from the old function module REUSE_ALV_TABLE to the new CL_SALV_TABLE-class.
Unfortunately, we've lost a functionality: In the old report, the users could define a page break in the report. We just had to set the group_change_edit-field in the layout structure.
I don't find the corresponding functionality in the CL_SALV_TABLE-class. We call the set_all-method on the cl_salv_functions_list-attribute of the table, but this doesn't help.
Is there any chance to get this old functionality with the new class?
Many thanks and kind regards,
Uwe Fetzer replied
I did not checked, whether it works.
Try to use the SORT-Object of the SALV_TABLE. Within the SORT-Object you have the method ADD_SORT with parameter GROUP:
Set this parameter to
No grouping IF_SALV_C_SORT=>GROUP_NONE
Page change IF_SALV_C_SORT=>GROUP_NEWPAGE