Skip to Content

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

control / sort / default values in a drop down box by index

Hey guys,

I have a drop down box by index which i populated using a select statement.

my requirement is that i want to be able set the first value to be any value i want to,

but every time i try to insert my own value after the select statement i always get that value

AT THE END OF THE drop down list.

please let me know if you have any thoughts or you know how to solve that problem ???


how can I control the data within my table itab any way i want to ( moving values up and down)??

Here is an example of what i am talking about

data : it_table type STANDARD TABLE OF sflight.

DATA lo_nd_cn_drpindex TYPE REF TO if_wd_context_node.

DATA lo_el_cn_drpindex TYPE REF TO if_wd_context_element.

DATA ls_cn_drpindex TYPE wd_this->element_cn_drpindex.

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

lo_nd_cn_drpindex = wd_context->get_child_node( name = wd_this->wdctx_cn_drpindex ).

select carrid from sflight into CORRESPONDING FIELDS OF TABLE it_table.

ls_test-carrid = 'default'.

append ls_test to it_table.

lo_nd_cn_drpindex->bind_table( it_table ).



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