Application Development and Automation 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: 
Read only

Question regarding drop-down list

former_member202335
Participant
0 Likes
372

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

3 REPLIES 3
Read only

ThomasZloch
Active Contributor
0 Likes
350

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

Read only

0 Likes
350

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

Read only

0 Likes
350

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