cancel
Showing results for 
Search instead for 
Did you mean: 

Open a New Browser window in WD ABAP by specifying a window name

Former Member
0 Kudos

Hi,

Is there any method in Web dynpro ABAP that allows you to create a new browser window with the import of a Web dynpro Window name, not URL. Currently I only found

methods which input is the URL not Window name.

thanks

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

no you can not open new browser, only option in WD4A is POPUP..

you can create popup view and then embed it into window...

regards,

vikram..

abhimanyu_lagishetti7
Active Contributor
0 Kudos

Hi

If you want to specify the window name you can open it as a popup not as a seperate browser instance.

I think you are using Link to URL control which always takes URL as input.

To Avoid the Hardcoded URL you can use this method which takes the Application Name and gives the absolute url

CL_WD_UTILITIES->CONSTRUCT_WD_URL( exporting APPLICATION_NAME = <App_name>

importing OUT_ABSOLUTE_URL = <url> ).

Regards

Abhimanyu L

SergioFerrari
Active Contributor
0 Kudos

I agree with you. There is no way to open a new browser window pointing to a window name.

I think you have some options:

1. define another application pointing to the required window and point to this new application

2. open the new windows adding a parameter that you will manage in the inbound plug of the default window

3. use Web Dynpro pop-up (I like it so much). In this case you'll have a new modal window within the main one

Sergio

mohammed_anzys
Contributor
0 Kudos

Hi

Accessing an application with the window name is not possible.The other possibility is accessing it using the application name.Follow the code...It will be

useful for you.

Thanks

Anzy

Data: lo_cmp_api TYPE REF TO if_wd_component,

lo_window_manager TYPE REF TO if_wd_window_manager,

lo_ext_win TYPE REF TO if_wd_window,

lv_url type string.

lo_cmp_api = wd_comp_controller->wd_get_api( ).

lo_window_manager = lo_cmp_api->get_window_manager( ).

CALL METHOD cl_wd_utilities=>construct_wd_url

EXPORTING

application_name = 'MYAPPLICATION'

IMPORTING

out_absolute_url = lv_url.

lo_ext_win = lo_window_manager->create_external_window(

url = lv_url

title = 'My Application' ).

Former Member
0 Kudos

Hello,

I have a similar requirement currently as mentioned in your 3rd point (modal popup).

On click on the link in the parent component, it should pop up a window which calls the view from a different component.

can you please tell me what are the steps to be followed .

Thanks and Regards,

Saujanya

Edited by: Saujanya GN on Jan 11, 2008 8:38 AM

Former Member
0 Kudos

using this i am not even able to open an external window.

Former Member
0 Kudos

Hi,

You need to add this last method at the end of the above code so that it actually "opens" the window:

lo_ext_win->open( ).

Cheers,

Adi