Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

problem in dropdown list display in module pool

former_member196299
Active Contributor
0 Kudos

Hi All,

One of the fields of my module pool program is a drop down list. I am able to populate the values to the list but when i select any value, it doesnot come to the field.

Can any one help me out in this ?

Thanks in advanve ...

Ranjita

3 REPLIES 3

raymond_giuseppi
Active Contributor
0 Kudos

Loof at your field, is it input-capable, are the values proposed compatible with the field (conversion exit)

Regards

Former Member
0 Kudos

hi Ranjitha,

Ensure that you are doing the following activities:

1-> in the field attributes, you have mentioned FCODE.

2-> use function module DYNP_VALUES_UPDATE to set the selected value to the field.

sample code:

put selected value into a dynpro field--


     IF dy_field-fieldvalue NE l_seark.

       REFRESH dy_field.
       APPEND  dy_field.

       CALL FUNCTION 'DYNP_VALUES_UPDATE'
            EXPORTING
                 dyname               = sy-cprog
                 dynumb               = sy-dynnr
            TABLES
                 dynpfields           = dy_field
            EXCEPTIONS
                 invalid_abapworkarea = 1
                 invalid_request      = 2
                 no_fielddescription  = 3
                 undefind_error       = 4
                 others               = 99.

Hope this helps,

Sajan Joseph.

Former Member
0 Kudos

Hi,

Check this demo program:RSDEMO_DROPDOWN_LISTBOX

Regards,

Beejal

**Reward if this helps.