10-20-2011 5:52 AM
Hi,
I am using this FM for populating drop down values for my screen field in module pool program, and the property of this input field is set to 'List Box'.
i have fileds in the internal table which i am passing to this FM like below
key Text
ABC first text
BCD BCD
CDE last text
and if i see the drop down values, it is being displayed as
ABC first text
BCD
CDE last text
the problem here is if key and text are same, the text is not displayed in the drop down.
any suggestions why it is behaving like this.
Thanks,
Kranthi.
10-20-2011 6:05 AM
Hi ,
No there is no such problem :
name = 'T_ERFME'.
value-key = 'ABC'.
value-text = 'first text'.
append value to list1.
value-key = 'BDC'.
value-text = 'BDC'.
append value to list1.
value-key = 'CDE'.
value-text = 'lAST TEXT'.
append value to list1.
call function 'VRM_SET_VALUES'
exporting
id = name
values = list1
exceptions
id_illegal_name = 1
others = 2.
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
clear name.
refresh list1[].
REGARDS
dEEPAK.
10-20-2011 7:15 AM
Hi,
i was expecting the same behavior as you have given here, however it is not working the intended way.
did i miss anything with properites of input field in the module pool program, not sure because for other keys texts are coming.
thanks,
Kranthi.
10-20-2011 7:18 AM
Hi ,
Select list Box with key .
property of this input field is set to 'List Box with Key'.
regards
Deepak.
Edited by: Deepak Dhamat on Oct 20, 2011 8:19 AM