SAP Screen Personas
Create: Clemens Gantert
Last Update: Regina Sheynblat
Flavor Editing and Scripting of F4 Input Help Popups
SAP SCREEN PERSONAS KNOWLEDGE BASE - by Clemens Gantert , Regina Sheynblat
Explain the different modes or types of F4 Input Helps and how these are supported in the flavor editor and scripting.
Modal vs. Amodal F4-Helps and How to Switch Between the Two
There are two types of F4 helps: modal and amodal.
Both types provide the same functionality. The difference is in the user interface, where the most noticable difference is in the fact that the result list of the amodal F4 help is an ALV whereas the modal version shows an ABAP list.
A user can set which type of F4 to see in Menu->Help->Settings->F4 Help Tab:
Note: Changed settings only take effect after you start a new session (log out and back in).
F4-Help Support in the Flavor Editor
SAP Screen Personas allows the editing of modal F4 helps. Amodal F4 helps can and will not be editable in the forseeable future. A user whose settings are for amodal F4 helps will just not see the flavor changes made to the corresponding modal F4 help in this flavor.
F4-Help Support in Scripting
Scripting is or will be supported for modal F4 helps only. Scripting support for modal F4 helps includes script recording and the use of the property inspector.
From SAP Screen Personas Service Pack 3, the user's settings will be ignored and only modal F4 helps will be rendered during script execution and script recording. This means that if a script opens an F4 help (via showF4Help()) it will always be opened as modal, thus ensuring that a script will work correctly.
For pre-SP3 systems, the user's F4 help setting is taken into account causing scripts developed for modal F4 helps to fail when executed by users whose settings are for amodal F4 helps. For these systems, SAP's recommended workaound is: Set your user to modal F4 helps during script development and ask the consumers of the affected flavors to do the same. A script author could also check if a modal or amodal F4 help was opened and issuing a warning or alert to the user to change his or her settings to modal F4 helps. Such a test could be created by "session.idExists('id of control in modal help')" because the control IDs are very different for modal and amodal mode.
SAP Screen Personas, modal, amodal, F4 helps, input helps, F4