displaying alv output in different pages
I am creating a report which displays customer data based on company code.
The requirement is such that for each company code , all the customers data should come in one page in the ALV display.For another company code, yet another page should be displayed.
I am having an internal table having data for all customers of all the company code.
But don't know how to display it separately.
Any points in this regard would be helpful.
using SORT option you can do that.
sort-fieldname = 'BUKRS'. sort-up = 'X'. sort-group = '*'. " * is used for New page. append sort to it_sort.
pass this it_sort to the it_sort parameter of the ALV function.
The result can be viewed using the REUSE_ALV_LIST_DISPLAY function, rest of the cases you can see the effect only during print mode/preview.