cancel
Showing results for 
Search instead for 
Did you mean: 

How to Get the value In Table UI element

former_member226225
Contributor
0 Kudos

Hi Friends,

   

               I Prepared one node vbak_node with vbeln , erdat ,erzet , ernam as attributes.  when i am creating table UI element vbeln SALES DOC is taking as a

Button and I am preparing ONACTION for button. So when i click on VBELN SALES DOC . I have to get the sales doc value.based on the selected value i have to get the Item Details.

Thanks,

Raghunadh.K

Accepted Solutions (1)

Accepted Solutions (1)

chengalarayulu
Active Contributor
0 Kudos

Raghu,

try below,

data: lo_nd_node type ref to if_wd_context_node,

         lo_context_element type ref to if_wd_context_element.

lo_context_element = wdevent->get_context_element( name = 'CONTEXT_ELEMENT' ).

lo_context_element->get_static_attributes(

          importing

               static_attributes = <ls_static_attributes> ).

Now your selected(button clicked) row is in <ls_static_attributes>.

you can use now.

former_member226225
Contributor
0 Kudos

Hi ,

      Actually i  Tried Your code  but it is not getting it is getting only index with 1 . If we click on the next

any other button it is not getting the value.

Thanks,

Raghunadh.K

chengalarayulu
Active Contributor
0 Kudos

No way, it should work, same i've written in my codings, please go into debugging, and check again.

Answers (0)