Hello,
I would like to know how to call a specific transaction/program (Z *) with parameters in a new session and skip the selection screen.
I tried with the function 'SAPGUI_SET_FUNCTIONCODE' by putting '/ o' before the name of the transaction, it works but I cannot pass parameters and skip the selection screen.
I tried with Submit report, it works the passage of parameter setting, but I cannot make jump the screen of selection and I cannot open it in a new session.
Here are my two codes:
CALL FUNCTION 'SAPGUI_SET_FUNCTIONCODE' EXPORTING FUNCTIONCODE = '/OZxxxx'. IF SY-SUBRC <> 0. ENDIF.
Submit Zxxxxx VIA SELECTION-SCREEN
WITH S_WERKS = xxxx
WITH S_REFER = xxxx
and Return
.
If sy-subrc = 0.
ENDIF.
Thanks.