set_new_ok_code 
You may only use this method in the handler method of a system event. It sets an OK_CODE that triggers PAI processing. This means that data is transferred from the screen to the program, and you can take control of the program in your PAI modules.
Syntax
CALL METHOD cl_gui_cfw=>set_new_ok_code EXPORTING new_code = new_code IMPORTING rc = rc.
Parameters |
Description |
|---|---|
new_code |
Function code that you want to place in the OK_CODE field (SY-UCOMM). |
return_code |
|