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

Hide key in dropdown list

Former Member
0 Likes
2,724

Hi,

I have a dropdown list in a screen that I fill with the FM VRM_SET_VALUES.

Because the key of the values is a GUID, I want to hide this key in the dropdown list and show only the text.

Is this possible?

Thx!

5 REPLIES 5
Read only

former_member226519
Active Contributor
0 Likes
1,584

you can show/hide keys in drop down lists: options (alt F12)-> Expert

Read only

Former Member
0 Likes
1,584

I'm not following...

This is a user setting?? Or can we program this in the code that we only show the vrm text in the dropdown?

Thx!

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,584

>

> Or can we program this in the code that we only show the vrm text in the dropdown?

Depends on what values you have passed to VRM_SET_VALUES ?

Read only

0 Likes
1,584

lt_vrm_values1-key = ls_categorie_1-cat_guid.

lt_vrm_values1-text = ls_categorie_1-cat_desc.

APPEND lt_vrm_values1.

I cannot leave the key field blank, because my second dropdown depends on the value of the first dropdown...

Or is there another method to do this?

Regards,

Hans

Read only

roberto_vacca2
Active Contributor
0 Likes
1,584

Hi..

The only solution, if you don't want to set the parameter from gui's options  or  by using a listbox without key, is to set the KEY and the TEXT with the same value. In this way you'll see only one column that is the text column.

Hope to help

Bye