2007 Jan 05 7:54 AM
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
2007 Jan 05 8:01 AM
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
2007 Jan 05 8:49 AM
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.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |