Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

how to get value from webdynpro alv grid

Former Member
0 Kudos

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.

5 REPLIES 5

former_member188685
Active Contributor
0 Kudos

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.

0 Kudos

hi vijay,

could you please tell me the details on this?

it's my first time to do the WDA..

thanks very much 😛

0 Kudos

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

0 Kudos

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?

Former Member
0 Kudos

hi all,

problem solved by using the r_param.

thanks all.