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: 

ALV report that changes depending on Top-of-page info.

0 Kudos

Hi,

The requirement is to create an ALV Grid Report that has a one of its field (say company code) in top-of-page. The values in ALV grid should be grouped for the company code. When the values for one company code end, the report should go to next page and have a next company code in top-of-page with its corresponding data.

While I know this can be done in classical report, I have not seen any example of ALV report for it. The solution to this could be just to have company code as one of the fields in ALV Grid and sort. But the client is unrelenting.

Please suggest.

Edited by: siddhesh kandalgaonkar on Jun 23, 2010 2:00 PM

2 REPLIES 2

Former Member
0 Kudos

Siddhesh,

You could define buttons / controls ... called 'next comp code' and 'prev comp code', and then in the events for these controls you could re-populate the alv data table with the data for each company code each time a button is pressed.

Hope this helps ...

Duane

Former Member
0 Kudos

hi Siddhesh,

Go through the gicen below Link, May be hhelpful for u...

www.saptechnical=>Tutorials=>ALV=>PageNumbers=>Demo.htm

Best regards

Shelly Malik