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: 

ALV OO dropdown list with domain values without using SET_DROP_DOWN_TABLE

oliver_am
Participant
0 Kudos

Hi all,


I have an ALV OO.

One of the field have a domain with fixed values. I want to display a dropdown list with this values.

I know I can do it using the method SET_DROP_DOWN_TABLE

But I'm wondering if its is possible to create the dropdown list automatically with the domain values without put the call to this method.

If I use the fields ref_table and ref_field a search help is displayed, but I want a drop down list.

The problem using the method set_drop_down_table is that I need to do a SELECT to select all the values of the domain, then concatenate the key and description and pass the data to an auxiliar internal table because the field has 1 char length and the description is long.


So I need to pass the data from the original internal table to the auxiliar table used in the ALV and then when the user press SAVE I need to do the opposite.

Is there a way to display a dropdown list with the values automatically?

Thanks in advance,
Regards.

5 REPLIES 5

Former Member
0 Kudos

Hi Oliver,

Other than OO, You may try these FMs in squence :

1. DD_DOMA_GET

2. Manipulate the values, and pass them to FM - VRM_SET_VALUES

0 Kudos

Hi, thanks for your answer.

I'm used to use the FM VRM_SET_VALUES for normal dynpro input fields. But I don't know how can I use it with an ALV OO.

0 Kudos

aahh.... yes, you are on ALV... will chek out and let you know, if I turn up

Sandra_Rossi
Active Contributor
0 Kudos

I think you have to do it as you explained (with possible variants but same issue globally), and there's no standard solution.

former_member156446
Active Contributor
0 Kudos

Unless you are on HANA and that should enable fuzzy search