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 first published in February 2004

Dig deeper on SAP Java and J2EE

Pro+

Features

Enjoy the benefits of Pro+ membership, learn more and join.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchManufacturingERP

SearchOracle

SearchDataManagement

SearchAWS

SearchBusinessAnalytics

SearchCRM

SearchContentManagement

SearchFinancialApplications

Close