‎2007 Sep 26 11:16 AM
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
‎2007 Sep 26 11:21 AM
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.
‎2007 Sep 26 11:21 AM
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.
‎2007 Sep 26 11:23 AM
‎2007 Sep 26 11:25 AM
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
‎2007 Sep 26 11:40 AM