cancel
Showing results for 
Search instead for 
Did you mean: 

Call SAP ECC from web Aplication.

ronaldo_aparecido
Contributor
0 Kudos

Hi people.

It,s possible by on click event call standard transaction oppening without needing user and password?

EX:VA01.

Thanks .PEACE.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello Ronaldo,

1: Call below method to get  host, port and protocol

    cl_http_server=>if_http_server~get_location

2:  concatenate protocol  '://' host  ':' port  '/sap/bc/gui/sap/its/webgui/?sap-client=&~transaction='your tcode name' into url

3: get the window manager as we are opening t code in external window.

  DATA lo_window_manager TYPE REF TO if_wd_window_manager.

  DATA lo_api_component  TYPE REF TO if_wd_component.

  DATA lo_window         TYPE REF TO if_wd_window.

  lo_api_component  = wd_comp_controller->wd_get_api( ).

  lo_window_manager = lo_api_component->get_window_manager( ).

4: Call the url which we created above

  lo_window_manager->create_external_window(

     EXPORTING

       url    = url

     RECEIVING

       window = lo_window ).

The T code will be executed using the integrated ITS

Refer following link.It will give you an idea.

http://www.saptechnical.com/Tutorials/WebDynproABAP/TransactionCode/Index.htm

http://www.saptechnical.com/Tutorials/WebDynproABAP/SAPGUI/Index.htm

Thanks

Katrice

ronaldo_aparecido
Contributor
0 Kudos

Thanks!!!!

Answers (0)