Application Development and Automation 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: 
Read only

ALV Reporting

Former Member
0 Likes
521

How do everyone,

Can anyone tell me if I have to reset or clear anything when displaying

two ALV reports one after another.

I display an ALV grid which is fine. When the back button is pressed the

second ALV report is displayed but is mixed up with some of the columns

from the first report????

Thanks

Andy

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
499

Hi Andy,

Before displaying the 2nd ALV refresh the fieldcatalog table and the move the 2nd internal table(which is having data) to the fieldcatalog internal table and then display it.

4 REPLIES 4
Read only

Former Member
0 Likes
500

Hi Andy,

Before displaying the 2nd ALV refresh the fieldcatalog table and the move the 2nd internal table(which is having data) to the fieldcatalog internal table and then display it.

Read only

0 Likes
499

Thanks mate

Read only

George_Lioumis
Active Participant
0 Likes
499

Hello Andy,

In case that you have 2 <u>different</u> internal tables for two ALVs and you want to display the first one and then (after pressing the back button) the second one, then you don't need to clear anything. Just call the the function module REUSE_ALV_FIELDCATALOG_MERGE and provide it with the second table. In fact, you just call the second ALV exactly AS IF it was the first one.

I have seen a program that calls 4 (!!) ALVs this way and it works fine. However, you will need different fieldcatalog variables.

Please reward if this post helped.

George

Message was edited by:

George Lioumis

Read only

0 Likes
499

Cheers George, very useful.