cancel
Showing results for 
Search instead for 
Did you mean: 

How to reuse window when clicking link at ALV

felix_yan
Employee
Employee
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:

http://help.sap.com/saphelp_nw70/helpdata/en/25/e2f0416ab6da6fe10000000a1550b0/frameset.htm

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.

Thanks,

Felix

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.

Regards,

Sumit