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: 

Is it normal behaviour of FM VRM_SET_VALUES

former_member450736
Active Participant
0 Kudos

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.

3 REPLIES 3

deepak_dhamat
Active Contributor
0 Kudos

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.

0 Kudos

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.

deepak_dhamat
Active Contributor
0 Kudos

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