function

Tools: Editors, Painters, Modelers (BC-DWB-TOO)

Process triggered when the user chooses a menu option, function key, or pushbutton.

You link these user interface elements to the ABAP program in the Menu Painter by assigning a unique function code to each function. At runtime (that is, when the user selects a function), the function code is passed either to the system field SY-UCOMM (for a report program) or to the OK code field (for a dialog program) and can then be interpreted by the ABAP program.