cancel
Showing results for 
Search instead for 
Did you mean: 

BSP App URL as Popup in a WD App?

Former Member
0 Kudos

Hello,

How can i integrate BSP Application URL display in a Popup window of a WD Application? Is there any example available that shows this scenario?

Thanks,

Vasu

Accepted Solutions (1)

Accepted Solutions (1)

mohammed_anzys
Contributor
0 Kudos

Hi

There are two solutions for your problem.

1. Create an external window and show your URL there.

2. Create a new window and view , and create an IFRAME in your view which points to the BSP URL.In this case you can show your URL as a pop up.

Thanks

Anzy

mohammed_anzys
Contributor
0 Kudos

Hi

Below code , explains how you can create a pop up window.I have used the code in the component controller method.If you are using this in the view , make necessary changes.

Thanks

Anzy

Data:l_cmp_api type ref to if_wd_component,

l_window_manager type ref to if_wd_window_manager,

l_comp_info type ref to IF_WD_RR_COMPONENT,

l_final_window type ref to IF_WD_WINDOW.

l_cmp_api = wd_this->wd_get_api( ).

CALL METHOD L_CMP_API->GET_COMPONENT_INFO

RECEIVING

COMPONENT_INFO = l_comp_info

.

l_window_manager = l_cmp_api->get_window_manager( ).

CALL METHOD L_WINDOW_MANAGER->CREATE_WINDOW

EXPORTING

  • MODAL = ABAP_TRUE

WINDOW_NAME = <WINDOW NAME>

  • TITLE =

  • CLOSE_BUTTON = ABAP_TRUE

  • BUTTON_KIND =

  • MESSAGE_TYPE = IF_WD_WINDOW=>CO_MSG_TYPE_NONE

  • CLOSE_IN_ANY_CASE = ABAP_TRUE

  • MESSAGE_DISPLAY_MODE =

  • DEFAULT_BUTTON =

RECEIVING

WINDOW = l_final_window

.

wd_this->LO_POP_UP = L_FINAL_WINDOW.

CALL METHOD L_FINAL_WINDOW->OPEN

.

Answers (0)