Skip to Content
0
Former Member
Sep 28, 2010 at 11:37 AM

open link in the same Window

50 Views

Hello,

i want to open a link from a WDA Action Method, in order to open a bsp applikation. The new page should appear in the same window (no popup, no new window). Here the code which i have at the moment, but the BSP Applikation starts always in a new window. What can i do ?

data:

lt_parameters TYPE TIHTTPNVP,

ls_url type string,

lo_window_manager type ref to if_wd_window_manager,

lo_api_component type ref to if_wd_component,

lo_window type ref to if_wd_window.

CALL METHOD cl_http_ext_webapp=>create_url_for_bsp_application

EXPORTING

bsp_application = 'ZHRMPBA004'

bsp_start_page = 'ZHRMPBPTI006.htm'

bsp_start_parameters = lt_parameters

IMPORTING

abs_url = ls_url.

lo_api_component = wd_comp_controller->wd_get_api( ).

lo_window_manager = lo_api_component->get_window_manager( ).

CALL METHOD lo_window_manager->CREATE_external_WINDOW

EXPORTING URL = ls_url

RECEIVING WINDOW = lo_window.

lo_window->open( ).

thanks for replays