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

Dynamic ALV Layout - Immediate help required

Former Member
0 Likes
464

I have a Summary and a Detailed ALV layout screen. Now when i get to detailed screen from summary screen; I choose a layout say L1 here. Then I press F3(back) this would get me back to the summary screen.Now my requirement is when i click on detailed view from here now; the previously chosen layout L1 needs to be used for the report output. Can this be done?

Note : This needs to be done without choosing layout from selection screen.

Require help urgently on this.

Regards

Swamy

I have a Summary and a Detailed ALV layout screen. Now when i get to detailed screen from summary screen; I choose a layout say L1 here. Then I press F3(back) this would get me back to the summary screen.Now my requirement is when i click on detailed view from here now; the previously chosen layout L1 needs to be used for the report output. Can this be done?

Note : This needs to be done without choosing layout from selection screen.

Require help urgently on this.

Regards

Swamy

2 REPLIES 2
Read only

Former Member
0 Likes
426

Yes you can do that.

When you are backing out of detailed screen, store the name of the layout in a variable. When you are coming in the detailed screen again, pass this layout name in the IS_VARIANT-LAYOUT variable along with other values.

Before backing out of the detailed screen you can get the layout chosen using the function REUSE_ALV_GRID_LAYOUT_INFO_GET or calling the method GET_FRONTEND_LAYOUT of the class CL_GUI_ALV_GRID, depending on how you are displaying the report.

Regards,

Ravi

Note - Please mark all the helpful answers

Read only

0 Likes
426

when backing out you mean by saying when pressing F3?

How can i do that.. coz it takes the standard functionality of F3; when debugging the code returns to the sy-subrc check after the FM call REUSE_ALV_GRID_DISPLAY for the report.. and all processing is done here how can i capture the F3 key event and how to store this variant.