onUIEvents

The onUIEvents command is used to trigger processes or function codes.

The onUIEvents command is used to trigger processes or function codes. It is applicable to any action a user will perform in a SAP screen with the sole exception of pushbutton clicks. There are a number of possible ways of writing this command, as shown in the examples below. The possible syntaxes are as follows:

Syntax Definition
onUIEvents["action"]=process_name;
Launches a process upon the specified user action.
onUIEvents["action"]={
"process":function_name};
				
Launches a process upon the specified user action.
onUIEvents["action"]={ 
fcode:"fcode", "process":function_name};
				
Transports the user to the specified transaction, where the process will then execute.
onUIEvents["action"]={ fcode:"fcode", "process":function_name, "using":{
parameter:"Parameter_value"}};
				
Transports the user to the specified transaction, executes the specified process using the previously specified parameters.

Options

The onUIEvents event handler command takes the following options.

fcode

This option is used to send a function code. The code can be either a SAP transaction code or a function key code. The syntax is as follows:

{"fcode":"functionCode"}
process

This option is used to specify a process that will be triggered. The syntax is as follows:

{"process":function_Name}
using

This specifies a parameter that will be employed in the designated process. It is very useful to send a value to the process function, which can then be passed to SAP. The syntax is as shown in the two examples below:

"using":{parameter:"stringValue"} 
"using":{param:numericalValue}