How are the function codes handled in flow logic ?
– When the user selects a function in a transaction, the system copies the function code into a specially designated work field called OK_CODE. This field is global in the ABAP/4 module pool. The OK_CODE can then be evaluated in the corresponding PAI module. The function code is always passed in exactly the same way, regardless of whether it comes from a screen’s pushbutton, a menu option, function key or other GUI element.