10-14-2008 10:27 AM
Hi all,
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,
Jens Brehmen
10-16-2008 11:48 AM
Dear Jens,
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
Underline IF_SALV_C_SORT=>GROUP_UNDERLINE
Good luck
Uwe
10-16-2008 11:48 AM
Dear Jens,
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
Underline IF_SALV_C_SORT=>GROUP_UNDERLINE
Good luck
Uwe
10-31-2008 12:17 PM
Hi Uwe,
thank you, it is working.
The result is slightly different to what we had before:
With the old FM, I've just set the group_edit_change-attribute and afterwards the user could define his own page breaks.
Now I have to add a page break first, and then the user can define his own. But the result is OK.
Regards,
Jens