on 12-21-2009 8:54 AM
Hi,
I have an application in which I am showing the output in the alv. Now I want to make the values in one column of the alv table a hyperlink, so that on clicking of that further details can be opened. Please suggest how do I do that.
Code to make the require column a link
DATA: LR_CMP_USAGE TYPE REF TO IF_WD_COMPONENT_USAGE.
DATA: LR_INTF_CTRL TYPE REF TO IWCI_SALV_WD_TABLE.
DATA: LR_MODEL TYPE REF TO CL_SALV_WD_CONFIG_TABLE.
DATA: LR_COLUMN TYPE REF TO CL_SALV_WD_COLUMN.
DATA: LR_LINK TYPE REF TO CL_SALV_WD_UIE_LINK_TO_ACTION.
LR_CMP_USAGE = WD_THIS->WD_CPUSE_ALV( ).
IF LR_CMP_USAGE->HAS_ACTIVE_COMPONENT( ) IS INITIAL.
LR_CMP_USAGE->CREATE_COMPONENT( ).
ENDIF.
LR_INTF_CTRL = WD_THIS->WD_CPIFC_ALV( ).
LR_MODEL = LR_INTF_CTRL->GET_MODEL( ).
LR_COLUMN = LR_MODEL->IF_SALV_WD_COLUMN_SETTINGS~GET_COLUMN(
ID = '<Column field name>' ).
CREATE OBJECT LR_LINK.
LR_LINK->SET_TEXT_FIELDNAME( 'RRNUM' ).
Subscribe ON_CLICK event of ALV Interface Controller and handle the event.
Abhi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
10 | |
10 | |
8 | |
7 | |
7 | |
7 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.