cancel
Showing results for 
Search instead for 
Did you mean: 

Open new browser with suspend / resume plugs?

Former Member
0 Kudos

Hi,

I am using suspend and resume plugs to open a new WD in the same browser. I would like to open the called WD in a new browser as a pop up.

Any suggestion or sample code will be appreciated.

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Check this document regarding the Suspend and Exit plugs.

http://help.sap.com/SAPHELP_NW04S/helpdata/EN/45/19bf8c16f25d7ae10000000a11466f/content.htm

Thanks

Suman

Former Member
0 Kudos

Hi,

Thanks for the link. I went over the document, but it does not talk about how i will open the second WD in a pop up instead of opening the WD in the same broswer.

I am able to complete the suspend and resume process. The only issue is to open the second WD in a new broswer as pop up.

Thanks

Former Member
0 Kudos

Hi,

check this code for pop up.

    • Data Declarations

DATA:

lr_ref TYPE REF TO ig_yh1108_app10,

str TYPE string.

*Get the URL of the Application

CALL METHOD cl_wd_utilities=>construct_wd_url

EXPORTING

application_name = '<APP2>'

IMPORTING

out_absolute_url = str.

data:l_window1 type ref to if_wd_window_manager,

result type ref to if_wd_window,

l_cmp_api type ref to if_wd_component.

l_cmp_api = wd_comp_controller->wd_get_api( ).

l_window1 = l_cmp_api->get_window_manager( ).

result = l_window1->create_external_window(

url = str

  • TITLE = TITLE

  • 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

).

result->open( ).

Thanks

Suman

Former Member
0 Kudos

Thanks for the sample code.

But remember i am calling the second WD from suspend plug and not directly. Here is the code i have in a button event.

Data: l_url TYPE string,

l_ref_main_window TYPE REF TO ig_SOKARBEIDSAVTALE .

CALL METHOD cl_wd_utilities=>construct_wd_url

EXPORTING

application_name = '/digoff/hr01_stillingsgruppe'

IMPORTING

out_absolute_url = l_url.

l_ref_main_window = wd_this->get_SOKARBEIDSAVTALE_ctr( ).

l_ref_main_window->fire_go_suspend_plg( url = l_url ).

How will i specify in this case that url needs to be open in a pop up?

Former Member
0 Kudos

Hi,

I already mentioned the same in my code.

use create_external_window method to open the application as a pop up or you can use create_window also.

l_ref_main_window->fire_go_suspend_plg( url = l_url ).

write this code instead of above one

result = l_window1->create_external_window(

url = str

).

result->open( ).

Thanks

Suman

Former Member
0 Kudos

Yes your code works and it will give me a pop up. But the issue is that it is not using the suspend plug hence my logic of suspend and resume does not work not. I will need to keep the logic of suspend and resume as i need to pass the value back and keep the first WD greyed out once i reach the second WD.

In your code, once i get the pop up, the first WD is editable which it should not be.

Thanks

Answers (0)