01-31-2007 12:27 PM
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
01-31-2007 12:35 PM
Loof at your field, is it input-capable, are the values proposed compatible with the field (conversion exit)
Regards
01-31-2007 12:36 PM
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.
02-05-2007 8:03 AM
Hi,
Check this demo program:RSDEMO_DROPDOWN_LISTBOX
Regards,
Beejal
**Reward if this helps.