04-06-2017 11:17 AM
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.
04-06-2017 12:09 PM
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
04-06-2017 12:13 PM
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.
04-06-2017 12:16 PM
aahh.... yes, you are on ALV... will chek out and let you know, if I turn up
04-07-2017 4:09 PM
I think you have to do it as you explained (with possible variants but same issue globally), and there's no standard solution.
04-07-2017 4:55 PM