DATA:lv_url TYPE string.
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.
* Get the URL of the called application
CALL METHOD cl_wd_utilities=>construct_wd_url
EXPORTING
application_name = 'Name of WD application'
IMPORTING
out_absolute_url = lv_url.
* Attach the parameters and its value with the URL that have to be passed to the 2nd application
CALL METHOD cl_http_server=>append_field_url
EXPORTING
name = 'Name of field'
value = 'Value of that field'
CHANGING
url = lv_url.
* generate a popup window for the 2nd application with the above URL
lo_api_component = wd_this->wd_get_api( ).
lo_window_manager = lo_api_component->get_window_manager( ).
lo_window = lo_window_manager->create_external_window(url = lv_url ).
*Set the window size/ pop up window size
lo_window->set_window_size( width = '1000' height = '600' ).
*Open the WD application
lo_window->open( ).
0 comments:
Post a Comment