cancel
Showing results for 
Search instead for 
Did you mean: 

Call Transaction & Maximize GUI

Former Member
0 Kudos

Hello Experts,

How Do I When "Call Transaction", the opened in new SAP GUI Transaction set it to be opened in MAXIMIZED window

even if the SAP GUI window is not MAXIMIZED

Thanks

Accepted Solutions (0)

Answers (1)

Answers (1)

manigandan_d2
Explorer
0 Kudos

Dear Jamil,

please try below code in any of the event:

 

DATA: l_shortcut TYPE string,

          lx_shortcut TYPE xstring.

 

CALL FUNCTION 'SWN_CREATE_SHORTCUT'
     EXPORTING
          i_transaction =
'SE11'
          i_sysid = sy-sysid
          i_client = sy-mandt
          i_user = sy-uname
          i_language = sy-langu
          i_windowsize =
'Maximized' "#EC NOTEXT

 

CALL METHOD cl_http_utility=>if_http_utility~encode_utf8
          EXPORTING
               unencoded = l_shortcut
          RECEIVING
               encoded = lx_shortcut
          EXCEPTIONS
               OTHERS = 1

.

 

CALL METHOD cl_wd_runtime_services=>attach_file_to_response
     EXPORTING
          i_filename =
'open_ta.sap'
          i_content = lx_shortcut
          i_mime_type =
'application/x-sapshortcut'

          i_in_new_window = abap_false.

it will call the T- code from Web dynpro.

Regards,

Manigandan