‎2008 Dec 08 8:56 PM
Hi Gurus,
I have an unique isse with ALV layout.
I have a report contains two different output. Say for example, a summary and detail report. I am using two different internal tables for summary and detail report. Now user is saving a layout for detail report and set that layout as his default layout.
When he run the report for summary, no field is displayed. As the fields he included in the default layout not having any of the fileds in the summary fieldcatalog... How can it be solved?
Murphy
‎2008 Dec 08 9:31 PM
Hi,
Give two different program names when you populate the program name (REPORT) in the variant structure..When you pass the variant to the summary report and detailed report pass a different program name (dummy program name) for each of them..
OR
Give the same program name and pass different values in the HANDLE...column of the variant structure..
This will make sure the layouts will be specific for each summary and details report..
Hope I am clear..
Thanks
Naren
‎2008 Dec 08 9:31 PM
Hi,
Give two different program names when you populate the program name (REPORT) in the variant structure..When you pass the variant to the summary report and detailed report pass a different program name (dummy program name) for each of them..
OR
Give the same program name and pass different values in the HANDLE...column of the variant structure..
This will make sure the layouts will be specific for each summary and details report..
Hope I am clear..
Thanks
Naren
‎2008 Dec 09 12:50 AM
Hello Naren,
First I tried the dummy program name, it didn't work..
The second option worked perfectly. I have maintained a different values in the HANDLE field in the DISVARIANT structure. Thanks a lot...
Murphy