on 12-28-2011 9:39 AM
Hi Experts,
What I would like to do:
Open an *.BSP page in a new window and POST parameters to this application from within ABAP WD.
Is it possible from ABAP WD? Or can it only be done through Portal?
Thanks a lot for your response.
Kind regards
Paul
PS: I tried to rebuild the window->open() but the POST parameters did not arrive in BSP Page
DATA: lo_api_component TYPE REF TO if_wd_component,
lo_portal_manager TYPE REF TO if_wd_portal_integration,
lo_window_manager type ref to IF_WD_WINDOW_MANAGER,
lo_window type ref to IF_WD_WINDOW,
lo_window_event type ref to CL_WDR_EXT_URL_WINDOW_OPEN_EVT,
lo_external_window type ref to cl_wdr_window.
data: lt_parameters type WDR_NAME_VALUE_LIST,
ls_parameter type WDR_NAME_VALUE.
lo_api_component = wd_comp_controller->wd_get_api( ).
lo_window_manager = lo_api_component->get_window_manager( ).
lo_window_manager->create_external_window( exporting url = 'https://xxxx/sap/bc/bsp/sap/zfop_redirect/redirect.do'
MODAL = ABAP_FALSE
HAS_MENUBAR = ABAP_TRUE
IS_RESIZABLE = ABAP_TRUE
HAS_SCROLLBARS = ABAP_TRUE
HAS_STATUSBAR = ABAP_TRUE
HAS_TOOLBAR = ABAP_TRUE
HAS_LOCATION = ABAP_TRUE
RECEIVING
WINDOW = lo_window ).
*lo_window->open( ).
*
ls_parameter-NAME = 'login'.
ls_parameter-value = xxxxxx.
append ls_parameter to lt_parameters.
lo_external_window ?= lo_window.
create object lo_window_event
exporting
window_id = lo_external_window->WINDOW_ID
parent_window_id = lo_external_window->parent->window_id
TITLE = 'Hi'
url = 'https://sap-wdd.ethz.ch:11443/sap/bc/bsp/sap/zfop_redirect/redirect.do'.
lo_window_event->add_parameters( pars = lt_parameters ).
wdr_task=>application->application_window->add_external_window( lo_external_window ).
wdr_task=>client_window->client->update_client_peer->send_event( lo_window_event ).
wdr_task=>client_window->client->update_client_peer->on_window_opened( lo_external_window ).
you have a BSP application that needs to be showin in WDA application is that so....
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.