‎2008 Feb 21 2:11 PM
Hi friends,
after execution of a certain function in a subscreen, I want to set an OK-CODE (BACK) which i defined as an exit code in the STATUS.
I tried METHOD cl_gui_cfw=>set_new_ok_code with 'BACK', also FUNCTION 'SAPGUI_SET_FUNCTIONCODE' with '=BACK', nothing seems to work.
any idea?
TIA and Regards,
Clemens
‎2008 Feb 21 2:16 PM
‎2008 Jul 24 9:34 AM
Sorry, I don't remeber the solution - it was not the one recommended.
Issue resolved.
Regards,
Clemens
‎2011 Feb 23 10:03 AM
How can this thread be closed as answered, as there is no solution?
Please reopen and i would be happy if someone could provide an answer.
‎2012 Oct 15 9:32 AM
Today I was experiencing the same problem. While searching for a solution, I found this rather old post, which is still not answered. That's why I think sharing this snippet might be useful to others, too.
CALL FUNCTION 'SAPGUI_SET_FUNCTIONCODE'
EXPORTING
functioncode = '/ETEST'
EXCEPTIONS
function_not_supported = 1
OTHERS = 2.
This will trigger PAI, fill sy-ucomm with TEST and treat it as an exit-command. It is not necessary to define the function code in a GUI status.
Best Regards,
Sascha