‎2008 May 20 9:44 AM
Hi,
I have a question regarding drop-down lists. I have a drop down list with 3 values - 1, 2 and 3. Depending on certain conditions, I want to change the value in the drop-down list to either 1, 2 or 3. How can I achieve this. Is there any function module that I can utilized to achieve this?
Regards,
Divyaman
‎2008 May 20 9:55 AM
Hi,
with function VRM_SET_VALUES you can set the values of drop down lists. Have a look at the documentation of this function.
Cheers
Thomas
‎2008 May 20 10:23 AM
Hi,
I have known about this FM. But, as far as I understand, it is used to populate a drop-down list with values. My requirement is to programatically select a particular value in that drop-down list.
Regards,
Divyaman
‎2008 May 20 11:27 AM
From the docu of VRM_SET_VALUES:
Data: Entryfield(4).
* The field "Entryfield" will be displayed on the screen
* ...
Possible_Values_Id = 'ENTRYFIELD'.
* ...
Call Function 'VRM_SET_VALUES'
Exporting Id = Possible_Values_Id
Values = Possible_Values[]
Exceptions ...
* ...
Entryfield = 'KEY2'.
* The entry for KEY2 (2nd item) appears as the selected item in the
* dropdown-list.
Regards, Karsten