Purpose | With On an InputScript can be processed if the user presses Enter or a function key. On is used in a GuiXT script. |
Examples |
On
"Enter"
process="nextproduct.txt"
On "/11" fCode="/0" process="update.txt" |
Format |
On
"fc"
process="script"
On "fc" process="script" fCode="newfc" "fc" can be one of the following strings:
fCode="newfc" the code newfc is invoked. This can be a code from the menu, e.g. SCMP, or a transaction code like /NFB01 or /OMM02. Please note: If fCode= is not specified, the original function is retained, but with On "=fcode" and pushbuttons within the screen, only Enter is triggered. It is therefore recommended to always specify fCode=. |
Special Controls |
On control="controlname"
item="itemid"
event="eventno"
fCode="newfc"
process="script"
Handles simple events in special controls (button click, menu item selection), e.g. in "Object services". Please use the "Input Recording" to create the control, item and event . They are identical with the specifications in "Enter". The notation item="*" handles a control action for all items, e.g. a click on any node in the tree view. Following system variables are set: V[_control_name] Name,
e.g. "TableTreeControl" <?xml version= 1.0 encoding= sap* ?> <DATAMANAGER> <EVENTS> <EVENT EVENTID = 21 SHELLID = 122 > <PARAM PID = 0 VALUE = 000008 /> </EVENT> </EVENTS> <CONTROLS> <CONTROL SHELLID = 122 > <PROPERTY VALUE = 000008 NAME = ABAPSelNodeKey /> </CONTROL> </CONTROLS> </DATAMANAGER> |
Tips &Tricks |
A combination of function keys with the Ctrl and Shift keys can be represented by a number between 13 and 48
The Enter key can be represented by /0. Shift+F1
/13
Ctrlt+F1 /25
Shift+Ctrl+F1 /37 Example: On "/39" fCode="/0" process="warning.txt" Result: When the user presses Ctrl+Shift+F3, the Enter key is simulated and the script warning.txt is processed. |
Components | GuiXT + InputAssistant |