cancel
Showing results for 
Search instead for 
Did you mean: 

Call a custom SAP transaction in WD application ?

Former Member
0 Kudos

Hi all,

I am able to run the standard SAP transactions in my WD component but can we call WebGUI for windows instead of webGUI for HTML ? Also can we call a custom transaction which displays a simple write statement as a result?

E.g.

The transaction contains a report code as above;

parameters: p_test type char20.

write p_test.

*Note:-*In my case it's not working, only the selection screen appears but I am not able to view the write statement screen in the case of WebGUI for HTML. I also tried out a SAP transaction iView but in that iView I am also facing the same issue.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

*--------------*
*-Call WebGUI -*
*--------------*
  data: iv_url type string value 'http://<server>:<port>/sap/bc/gui/sap/its/webgui?~transaction=*se38 RS38M-PROGRAMM=rsparam;DYNP_OKCODE=SHOP'.

  data: api_component  type ref to if_wd_component,
          window_manager type ref to if_wd_window_manager,
          window type ref to if_wd_window.

  api_component = wd_comp_controller->wd_get_api( ).
  window_manager = api_component->get_window_manager( ).
  window = window_manager->create_external_window(
                 url = iv_url
                 modal = abap_false ).

  window->open( ).

Former Member
0 Kudos

Hi Erik,

I am able to run a standard SAP TCODE in a new window but can we run a custom transaction in this window? Please explain if possible.

Please check the position where I want to add a Z* transaction.

'http://<server>:<port>/sap/bc/gui/sap/its/webgui?~transaction=*se38 RS38M-PROGRAMM=rsparam;DYNP_OKCODE=SHOP'

Former Member
0 Kudos

Please advice if it is possible.