Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Values in the drop down

Hi all,

I am using a dropdownbykey and all the values are getting fetched from a table in the dropdown. But apart from that values a want to add one more value by hard coding. And the value which I am inserting in the dropdown by hard coding it should come on the first position of the dropdown.

I am using following code to fetch values in drop down from table ZINSP.

node_info = wd_context->get_node_info( ).

node_info = node_info->get_child_node( 'CN_PROVIDER' ).

call method cl_wd_dynamic_tool=>get_table_data


tab_name = 'ZINSP'

row_count = 0


data = it_ZINSP.

loop at it_ZINSP assigning <TableZINSP> .

if <TableZINSP>-ZLAND1 eq lv_ca_destination.

value-key = <TableZINSP>-ZINSPCD.

value-value = <TableZINSP>-ZINSPDE .

insert value into table value_set.



node_info->set_attribute_value_set( name = 'CA_PROVIDER' value_set = value_set ).

  • How it is possible ??? *


Rohit Makkar

Not what you were looking for? View more on this topic or Ask a question