Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9110

Re: adding data to field

$
0
0

Hi Vamsi,

 

If the UI element is Dropdownbyindex, u need to update the internal table with new values and rebind it to the UI element.

 

You just check the below code. Here i have taken 'ND_COUNTRY' node with country name.

and i m trying to add 'NEW_FIELD' value to that node .Then re-binded.

 

 

  DATA lo_nd_nd_country TYPE REF TO if_wd_context_node.

  DATA lo_el_nd_country TYPE REF TO if_wd_context_element.

  DATA ls_nd_country TYPE wd_this->Element_nd_country.

  DATA lt_nd_country TYPE wd_this->Elements_nd_country.

 

*   navigate from <CONTEXT> to <ND_COUNTRY> via lead selection

  lo_nd_nd_country = wd_context->get_child_node( name = wd_this->wdctx_nd_country ).

*   get element via lead selection

  lo_el_nd_country = lo_nd_nd_country->get_element( ).

 

  CALL METHOD lo_nd_nd_country->GET_STATIC_ATTRIBUTES_TABLE

    IMPORTING

      TABLE = lt_nd_country.

 

  ls_nd_country-landx50 = 'NEW_FIELD'.

  APPEND ls_nd_country to lt_nd_country.

 

 

  lo_nd_nd_country->bind_table( lt_nd_country ).

 

 

 

Best regards,
Rao.


Viewing all articles
Browse latest Browse all 9110

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>