cancel
Showing results for 
Search instead for 
Did you mean: 

WDA Table with different values in dropdown per row

Former Member
0 Kudos

Hi,

I'm developing a table in a Web Dynpro ABAP.

One column has a DropDownByKey.

I want to have different value sets for the drop down per row for this column.

               | Column 1                                                                                                         | Column 2

Row1      | (drop down with "Cost Center" and "Order")                             | .....    

Row2      | (drop down with "Cost Center", "Order" and "Project")               | .....    

Which values are available in the drop down depends on the value in column 2.

I know that this is not possible by using the SET_ATTRIBUTE_VALUE_SET method.

How can I achieve this?

Regards,

Sven

Accepted Solutions (1)

Accepted Solutions (1)

amy_king
Active Contributor
0 Kudos

Hi Sven,

You can use cell variants to accomplish this. Take a look at the document below which does something similar, presenting either a cost center, order or WBS input field depending on the object type selected in another column of the same row.

You could apply the same approach to present DROPDOWN_1 with values for cost center and order or present DROPDOWN_2 with values for cost center, order and project depending on the value entered in column 2.

Cheers,

Amy

Answers (1)

Answers (1)

Former Member
0 Kudos

Do I have to use DropDownByIndex as cell editor instead of DropDownByKey?