cancel
Showing results for 
Search instead for 
Did you mean: 

Web dynpro abap : Call an application from another with parameters

Former Member
0 Kudos

Hi ,

Could you please tell me how to call an application from another with parameters?

Thanks a lot

Karim

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos
* Construct the URL
      call method cl_wd_utilities=>construct_wd_url
        exporting
        application_name              = 'APPLICATIION_NAME'
      importing
        out_absolute_url              = g_url.

* Append parameters to URL
  data: g_par1 = lv_value. " value of your parameter

  call method cl_http_server=>append_field_url
    exporting
      name  = 'PAR1' " Parameter name
      value = g_par1
    changing
      url   = g_url.

* Call the Application
  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( ).
  lo_window         = lo_window_manager->create_external_window(
                   url = g_url ).
  lo_window->open( ).
Former Member
0 Kudos

Hi.

Refer this :

https://wiki.sdn.sap.com/wiki/display/WDABAP/ExampleforpassingvaluesfromoneApplicationtoanotherApplicationinWebDynproABAP.

I hope this helps.