09-19-2008 4:01 AM
hi all,
i'm doing a webdynpro program.
i've already list the data in alv layout. now i want to get the value where my cursor points. i wonder which function can realise this?
thanks very much.
09-19-2008 4:20 AM
First get the column in the init method.
using the class CL_SALV_WD_CONFIG_TABLE
get the column using the method
IF_SALV_WD_COLUMN_SETTINGS~GET_COLUMN
it return the object of the type
CL_SALV_WD_COLUMN
create a input field. and for that input field set the tool tip and input as false.
using the method
SET_CELL_EDITOR pass the inputfield.
so when you point the cell, it shows the value what ever you set in the above step.
09-19-2008 4:36 AM
hi vijay,
could you please tell me the details on this?
it's my first time to do the WDA..
thanks very much 😛
09-19-2008 4:43 AM
i thought you know WDA, so i just mentioned the steps. Did you finish the ALV part. after that suppose if you want to change any columns functionality like editable, link, button etc, then in that case we have to use the above approach.
using the configuration table we can achive that..
check the sample application
SALV_WD_TEST_TABLE_EVENTS
09-19-2008 6:11 AM
hi vijay,
i've done the below codes to make the column as link.
LO_CMP_USAGE = WD_THIS->WD_CPUSE_ALV( ).
IF LO_CMP_USAGE->HAS_ACTIVE_COMPONENT( ) IS INITIAL.
LO_CMP_USAGE->CREATE_COMPONENT( ).
ENDIF.
LO_INTERFACECONTROLLER = WD_THIS->WD_CPIFC_ALV( ).
LV_VALUE = LO_INTERFACECONTROLLER->GET_MODEL( ).
LR_COLUMN = LV_VALUE->IF_SALV_WD_COLUMN_SETTINGS~GET_COLUMN( 'VBELN').
CREATE OBJECT LR_LINK.
LR_LINK->SET_TEXT_FIELDNAME( 'VBELN' ).
LR_COLUMN->SET_CELL_EDITOR( LR_LINK ).
but what i want is to get the value and display in a popup.. how can i change the codes?
09-19-2008 9:54 AM