cancel
Showing results for 
Search instead for 
Did you mean: 

LinkToURL with _self doesn't work

Former Member
0 Kudos

Hi experts,

I have tried using _self in the "target" property in my LinkToURL UI element to call up another ABAP web dynpro application, but the browser keep calling the new application in a separated browser. How can I call up the new application in the same window?

Thanks.

Accepted Solutions (0)

Answers (1)

Answers (1)

uday_gubbala2
Active Contributor
0 Kudos

Hi Mandy,

By starting a new application in the same browser window, the current application has to stop. There are two methods of achieving what you want. The first one is to use an exit plug and to specify the new URL there. The second option is to use the suspend/resume functionality.

Here in this example I am saying like IG_MAIN_WINDOW coz my window name is MAIN_WINDOW. Just replace the main_window with the name of your window. So if you window is called WIN1, the name will be IG_WIN1

method ONACTIONGO_SUSPENDING .
  data: L_REF_MAIN_WINDOW type ref to IG_MAIN_WINDOW .
  L_REF_MAIN_WINDOW = WD_THIS->GET_MAIN_WINDOW_CTR( ).
  L_REF_MAIN_WINDOW->FIRE_GO_SUSPENDING_PLG(
  URL = 'http://…………/webdynpro/sap/my_secondary_wda' ).
endmethod..

Regards,

Uday