|
|
Call URL from SAP Webdynpro for ABAP ACTION
It is a simple process to create a LinktoURL UI element on one of your wdp views which points to a website URL but what if you want to use and ABAP web dynpro action to perform some
ABAP functionality first and then call the URL. The simple answer is add the following code to your ACTION method and it will call display your desired URL link either in the current
web page or call a new page / popup and display it in that.
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.
data: ld_url type string.
lo_api_component = wd_comp_controller->wd_get_api( ).
lo_window_manager = lo_api_component->get_window_manager( ).
ld_url = 'http://www.sapdev.co.uk'.
CALL METHOD lo_window_manager->CREATE_EXTERNAL_WINDOW
EXPORTING
URL = ld_url "'http://www.sapdev.co.uk'
RECEIVING
WINDOW = lo_window.
lo_window->open( ).
Website Navigation to related information
|