cancel
Showing results for 
Search instead for 
Did you mean: 

How the get the content of selected ALV cell??

Former Member
0 Kudos

hello expert,

after click one of the ALV lines, we want to get the cell content of this selected line? how to realize this? thanks/

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Thanks mahda, we realized this by using on_lead_select and get_lead_selection_index.

Madhu2004
Active Contributor
0 Kudos

hi,

it is pretty simple,

in the methosd u declare for the click we use the events of the ALV.

in that we have an attribute r_param.

do this to get the value:

FIELD-SYMBOLS:<l_value> TYPE ANY.

ASSIGN r_param->index TO <l_value>.

the clicked value will be in <l_value>.

madhu.

Former Member
0 Kudos

Thanks, r_param->index is showing the number of which line is selected.

but we want to get the all the field content of this selected line.

I found object r_param is reference to , could you please advice where can I found the other value?? thanks.

Madhu2004
Active Contributor
0 Kudos

i think u can get the value by this:

<b>

assign r_param->value to <l_value>.

</b>