Application Development 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: 

displaying alv output in different pages

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

former_member188685
Active Contributor
0 Kudos

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.

5 REPLIES 5

Former Member
0 Kudos

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?

0 Kudos

hi,

The idea is good.

But i cann't change the requirements .

former_member188685
Active Contributor
0 Kudos

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.

KK07
Contributor
0 Kudos

hi,

U can use the control break statement 'AT NEW <> '.

Former Member
0 Kudos

hi purnima,

you can use control break statements at new field or at end of field.