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 layout issue

Former Member
0 Likes
423

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
387

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

2 REPLIES 2
Read only

Former Member
0 Likes
388

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

Read only

Former Member
0 Likes
387

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