Showing results for 
Search instead for 
Did you mean: 

How to reuse window when clicking link at ALV

0 Kudos

Hello all,

I don't think it should be a tough question for some of you, but It's weird why it doesn't take effect.

Please take a look at this article:

Here it says explicitly:

A new window is always opened with _blank. When you specify a window and one with this name does not exist, a new window is opened. If this window already exists, the existing content is rejected and the new URL is loaded in. In this case the window is not placed in the foreground.

And following is my coding:

Data: lr_link type ref to cl_salv_wd_uie_link_to_url.

CREATE object lr_link.

lr_link->set_target( '_self' ).

lr_link->set_text_fieldname( 'OBJECT_ID' ).

lr_link->set_reference_fieldname( 'ZZS_ORDER_URL' ).

<ls_col_ref>-r_column->set_cell_editor( lr_link ).

But it always opens a new window. Please help.



Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Felix,

I have tried with the window names like 'sapwd_main_window' but got no success.

We need the exact name with which it refers the first window.

Suggest you to go to SAP for the answer if critical.