Ansicht
Dokumentation
SAPGUI_SET_FUNCTIONCODE - Set a function code and continue processing
Fill RESBD Structure from EBP Component Structure ABAP Short ReferenceThis documentation is copyright by SAP AG.
Functionality
This module simulates user input in the command field. This enables you to run screen sequences without user input.
Example
A screen contains a single output field:
Counter ____
with the field reference "count".
This field is changed in the single flow logic module:
process before output.
module pbo.
and the default function code "=" is processed:
module pbo output. add 1 to count. if count > 20.
leave to screen 0.
endif.
call function 'SAPGUI_SET_FUNCTIONCODE'.
endmodule.
Notes
Since the function SAPGUI_SET_FUNCTIONCODE is not implemented for all front end platforms, you may need to use a substitute solution. For example:
call function 'SAPGUI_SET_FUNCTIONCODE' exporting functioncode = 'ABCD'
exceptions function_not_supported = 1.
if sy-subrc <> 0. suppress dialog. endif. "For Motif etc.
Further information
Parameters
FUNCTIONCODEExceptions
FUNCTION_NOT_SUPPORTEDFunction Group
SGUICPI1466 during Backup General Material Data
This documentation is copyright by SAP AG.
Length: 1403 Date: 20240523 Time: 075523 sap01-206 ( 20 ms )