cancel
Showing results for 
Search instead for 
Did you mean: 

How to read value of a first column of first row of ALV table abap dynpro

Former Member
0 Kudos

Hello,

I have dynpro application where data is displayed in ALV table using SALV_WD_TABLE. the view of this dynpro application has node 'operations' and operation node has around 36 attributes.

I want to read value of a first column of first row.

How can I achieve this.

Pl suggest... its bit urgent.

thanks,

Sharada

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

You can call get_element passing the index as 1, and read the attribute.

Data:

Node_Op type ref to if_wd_context_node,

Elem_Op type ref to if_wd_context_element.

Node_Op = wd_Context->get_child_node( 'Operations' ).

Elem_Op = Node_Op->get_Element( index = 1 ).

Elem_Op->get_attribute( name = 'attribute name' value = <value> ).

This would be the same irrespective of whether you are using ALV or table controls. I hope this is what you are looking for.

-nithya

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello Nithya,

Thanks for help.

It has solved my problem and have done some change in last

Elem_Op->get_attribute( exporting name = 'attribute name' importing value = <field which can hold the data>).

thanks,

Sharada