Hi experts,
I need to get the default value in my drop down. i am using drop down by key. I am using the below code to populate the drop down.
DATA : node_info TYPE REF TO if_wd_context_node_info.
DATA : value TYPE wdr_context_attr_value,
value_set TYPE TABLE OF wdr_context_attr_value.
node_info = wd_context->get_node_info( ).
node_info = node_info->get_child_node( 'VE_MASTER_DATA' ).
value-value = 'IN'.
value-text = 'India'.
INSERT value INTO TABLE value_set.
value-value = 'US'.
value-text = 'USA'.
INSERT value INTO TABLE value_set.
value-value = 'O'.
value-text = 'Others'.
INSERT value INTO TABLE value_set.
node_info->set_attribute_value_set(
name = `COUNTRY`
value_set = value_set ).
I am requirement here is i want to make India as the default value in the drop down when the page is loaded.
Regards,
Vinod