Problem solve Get help with specific problems with your technologies, process and projects.

Set a function code by program and not by user

To set a function code by program (without user action), you can use the function module SAPGUI_SET_FUNCTIONCODE. Learn more in this tip.

To set a function code by program (without user action), you can use the function module SAPGUI_SET_FUNCTIONCODE. this function sets the code and executes it. eg. in the program the HELLO WORLD is shown and afterwards the program returns to the selection screen.
REPORT ztestjcr.
PARAMETERS: p.
START-OF-SELECTION.
WRITE: 'Hello world'.
CALL FUNCTION 'SAPGUI_SET_FUNCTIONCODE'
EXPORTING   
functioncode  = 'BACK'
EXCEPTIONS
function_not_supported = 1
OTHERS                 = 2.
This was last published in February 2004

Dig Deeper on SAP development and programming languages

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchERP

SearchOracle

SearchDataManagement

SearchAWS

SearchBusinessAnalytics

SearchContentManagement

SearchHRSoftware

Close