‎2006 Oct 10 11:57 AM
Hello
We have created a report with financial data by using method CL_GUI_ALV_GRID.
We want to print it by include a separator between each new value of the Account.
So I would like to print it in the same spool order but when there is a new value into the account to create a new spool using the last spool order.
I do not find any method to do it and I don't want to use forms to do it. There is someone can help me ?
thanks for your help.
Philippe
NB: is_print gives only information for the header of the document or page and it_special_group not permittes to do it.
‎2006 Oct 10 12:15 PM
You can do this by filling the IT_SORT parameter in set_table_for_first_display function.
data :
wa_sort type LVC_S_SORT,
it_sort type LVC_T_SORT
wa_sort-FIELDNAME = <Account field name>.
wa_sort-GROUP = '*' "New page is triggered
wa_sort-UP = 'X'.
append wa_sort to it_sort
This will trigger a new page for each new value of the account.
‎2006 Oct 10 12:15 PM
You can do this by filling the IT_SORT parameter in set_table_for_first_display function.
data :
wa_sort type LVC_S_SORT,
it_sort type LVC_T_SORT
wa_sort-FIELDNAME = <Account field name>.
wa_sort-GROUP = '*' "New page is triggered
wa_sort-UP = 'X'.
append wa_sort to it_sort
This will trigger a new page for each new value of the account.
‎2006 Oct 10 10:28 PM