Skip to Content
Former Member
Apr 19, 2011 at 02:41 PM

drop down field retaining only the last value


Hello everyone,

I am working on a web dynpro application, I have field on the screen "customer number"which I am filing as below:

loop at t_temp into w_temp.
          DATA lo_nd_cust_num TYPE REF TO if_wd_context_node.

          DATA lo_el_cust_num TYPE REF TO if_wd_context_element.
          DATA ls_cust_num TYPE wd_this->element_cust_num.
          DATA lv_customer_num TYPE wd_this->element_customer_num-customer_num.

          lo_nd_alt_payee = wd_context->get_child_node( name = wd_this->wdctx_cus_num ).
          lo_el_customer_num = lo_nd_customer_num->get_element( ).
            name =  `CUSTOMER_NUMBER`
            value = w_temp-num ).


T_temp has the following records:

1. 101234

2. 203456

3. 304567

but when I run the application the field "customer number" only shows 304567. I have declared field customer number as a "Dropdownbykey" type.

Can you please tell what am I missing here?

Thank you.

Edited by: goel.rahul2238 on Apr 19, 2011 4:47 PM