cancel
Showing results for 
Search instead for 
Did you mean: 

HTTP POST to external application from ABAP WD

0 Kudos

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 ).

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

you have a BSP application that needs to be showin in WDA application is that so....

0 Kudos

Hi Lekha

I want to start a *.bsp page in a new external window and POST Parameters to this *.bsp page.

So it is not actually showing a bsp in a ABAP WD.

Kind regards

Paul

PS: create_external_window is alway a GET Method and I do not want to show Parameters in the URL.