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 Java and J2EE

PRO+

Content

Find more PRO+ content and other member only offers, here.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchManufacturingERP

SearchOracle

SearchDataManagement

SearchAWS

SearchBusinessAnalytics

SearchCRM

SearchContentManagement

SearchFinancialApplications

Close