cancel
Showing results for 
Search instead for 
Did you mean: 

Opening an external url in the same browser

Former Member
0 Kudos

Hi all,

I need to open an external URL (for instance,www.google.com) from my WDA application by 'linktoaction' or 'button' event and this should be happen in the same parent window and not as a external window.

Please suggest me steps with example codes to perform this.

Regards,

Dinesh

Accepted Solutions (0)

Answers (1)

Answers (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

Why use a linktoaction? Just use a linkToURL.

[http://help.sap.com/saphelp_nw70/helpdata/EN/49/e8884118aa1709e10000000a155106/frameset.htm|http://help.sap.com/saphelp_nw70/helpdata/EN/49/e8884118aa1709e10000000a155106/frameset.htm]

You can use the target property to control how the link opens.

If you must use a button or linkToAction, the you will have to use an Exit Plug:

[http://help.sap.com/saphelp_nw70/helpdata/EN/45/1bc575ba064574e10000000a114a6b/frameset.htm|http://help.sap.com/saphelp_nw70/helpdata/EN/45/1bc575ba064574e10000000a114a6b/frameset.htm]

Former Member
0 Kudos

Hi,

Thanks for your reply.

In have added these lines..

data: L_REF_MAIN_WINDOW type ref to IG_zws_wda .

L_REF_MAIN_WINDOW = WD_THIS->GET_Zws_wda_CTR( ).

L_REF_MAIN_WINDOW->FIRE_OUT_PLG(

URL = 'http://www.google.com' " String

).

It throws an error that

" Method GET_Zws_wda_CTR is unknown or PROTECTED or PRIVATE"

can u pls suggest any solution...