2008 Sep 30 10:38 AM
hi experts,
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.
2008 Sep 30 10:53 AM
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.
2008 Sep 30 10:48 AM
Hi,
You can do one thing, first display all your company code in an ALV.
On clicking a particular company code, you can create an event, to display that particular customers in another ALV.
Good or bad idea?
2008 Sep 30 10:51 AM
2008 Sep 30 10:53 AM
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.
2008 Sep 30 10:54 AM
2008 Sep 30 11:00 AM
hi purnima,
you can use control break statements at new field or at end of field.