Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ALV method and spool method

philippe_gauthier
Participant
0 Likes
488

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
454

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.

2 REPLIES 2
Read only

Former Member
0 Likes
455

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.

Read only

0 Likes
454

Thanks my problem is solved

Philippe