Purpose Let the user toggle between "simplified" and "standard" Simplifying a screen always runs the risk of removing an element that a user will need one day in a particular situation. By deactivating GuiXT in the SAP GUI options it is possible to revert the screen to SAP standard and to perform a special task, for example to enter additional selection criteria or parameters. In situations where you already expect that the SAP standard screen will be needed for certain tasks, you can add a "toggle" button that lets the user toggle between the 'simplified' and 'standard' screen view. |
Solution
Example We add a toolbar button "Show more selection criteria..." with an appropriate icon:
When the user clicks the button, the selection screen is shown in SAP standard mode and the toolbar button is now "Show less selection criteria...":
InputScript "toggle_rm06bkps_view.txt" return GuiXT Script if not V[rm06bkps_show_standard] // toolbar button to display standard viewPushbutton (toolbar) "@GU@Show more selection critera..." _ process="toggle_rm06bkps_view.txt"
// remove unused selections Set F[Scope of list] "ALV" del F[Scope of list] // remove horizontal line after "Project" del F[------.] // remove whole selection block at the end of the screen del F[Item category] F[Item category]+(30,80) // remove all empty lines from screen compress else // toolbar button to display simplified viewPushbutton (toolbar) "@2W@Show less selection critera..." _ process="toggle_rm06bkps_view.txt" endif
|
Components |