Skip to Content
0
Former Member
Mar 17, 2009 at 08:19 AM

Dynamic dropdown by key values for ALV

862 Views

Hello,

I have an ALV table in which one field is a dropdown by key. This automatically takes the values of its underlying domain. But I do not have fixed domain values. Instead these values are determined only at runtime. After I asked in SDN, it seems that I cannot tamper with domain values dynamically. Please suggest if you know a way to do it.

The other option would be to bind this DDByKey context attribute with a table that I can keep modifying at runtime. How to do this ?

I already tried out an option that I define a data element for this context attribute, This data element is a table type of an underlying table that I modify at runtime. But unfortunately, with this kind of a data element attached , the attribute itself is not captured with get_columns() method and hence I cannot do anything with it while configuring my ALV. Please suggest if there is another way out.

Regards

Sukanya