Skip to Content
0

ALV OO dropdown list with domain values without using SET_DROP_DOWN_TABLE

Apr 06, 2017 at 10:17 AM

476

avatar image

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.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

avatar image
Former Member Apr 06, 2017 at 11:09 AM
-1

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

Show 2 Share
10 |10000 characters needed characters left characters exceeded

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
Former Member
Oliver AM

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

0
avatar image
Former Member Apr 07, 2017 at 03:55 PM
-1

Unless you are on HANA and that should enable fuzzy search

Share
10 |10000 characters needed characters left characters exceeded
Sandra Rossi Apr 07, 2017 at 03:09 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded