Skip to Content
0
Oct 12, 2009 at 02:36 AM

How to reuse window when clicking link at ALV

42 Views

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