Skip to Content
Former Member
May 04, 2010 at 06:17 AM

Help on displaying buttons within a table UI element.


Hi all,

I have a Webdynpro table UI Element in which the last column is a button ie. I've gone to the table Binding and set the Cell Editor of the last column to be of type button . The table selection mode is set to Auto and the context node for the table has cardinality 0..n and Selection of 0..1.

so far so good.

When I code the ACTION for the button, I want it to react specifically to the element/data in that row where the CLICKED button is.

So the code (just produced by the standard Wizard) looks like this :

DATA lo_nd_partner_details TYPE REF TO if_wd_context_node.

DATA lo_el_partner_details TYPE REF TO if_wd_context_element.

DATA ls_partner_details TYPE wd_this->element_partner_details.

  • navigate from <CONTEXT> to <PARTNER_DETAILS> via lead selection

lo_nd_partner_details = wd_context->get_child_node( name = wd_this->wdctx_partner_details ).

  • get element via lead selection

lo_el_partner_details = lo_nd_partner_details->get_element( ).

  • Fill up values in assistance class

  • get all declared attributes



static_attributes = ls_partner_details ).

However after executing the get_element() method, there's nothing in lo_el_partner_details ie. Clicking on the button in the row does not cause SAP to recognize the row as selected. So my question is , how do I retrieve the contents of the particular row for which I've clicked that button ??