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: 

Forcing a new page in ALV depending on a particular value of internal table

Former Member
0 Kudos

Hello,

Is there any way that i can force a page break in an ALV list display depending on the value of the internal table for the function maodule REUSE_ALV_LIST_DISPLAY?

e.g for a change of MTART in MARA i need to display MATNR and MAKT in different pages.

Thanks

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Look at the option GROUPLEVEL in Sort attribute of function module REUSE_ALV_LIST_DISPLAY.

Assign the value * to GROUPLEVEL, for the field on whose change, you want a new page.


for eg: it_sort-fieldname = 'MTART'.
        it_sort-grouplevel = '*'.
        append it_sort.

Regards,

Subramanian V.

2 REPLIES 2

Former Member
0 Kudos

Hi,

Not sure about ALV List, you can take a look at a similar post using ALV Grid at .

See if this helps.

Regards

Former Member
0 Kudos

Look at the option GROUPLEVEL in Sort attribute of function module REUSE_ALV_LIST_DISPLAY.

Assign the value * to GROUPLEVEL, for the field on whose change, you want a new page.


for eg: it_sort-fieldname = 'MTART'.
        it_sort-grouplevel = '*'.
        append it_sort.

Regards,

Subramanian V.