cancel
Showing results for 
Search instead for 
Did you mean: 

Guys I have some issue with Dropdown list box..

0 Kudos

In the layout I want to display a dropdown list box having fields of a single column from table T1.
I want that the user should be allowed to select only one value from the list box..
can you help me out??
Regards Akansha

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

1) Create a child node  under main node of for which your table has been binded.

2) Child node  Cardinality should be 0..n and selecction should be 0..1

3) code for the values which needs to be displayed in Dropdown. and bind them to child node

4)  change the property of table column to dropdown by key

5) bind the child node values.

For ref : Example to use drop down by key and drop down by index In WDA

regards,

Kranthi

ramakrishnappa
Active Contributor
0 Kudos

Hi Akansha,

Are you using DropDownByKey or DropDownByIndex ui element for drop down list box.

Please refer the below links

Drop down by index in Table in WDA…

Table with drop down | Team ABAP

SAP Web Dynpro ABAP - DropDownByKey value set setting

Hope this helps you.

Regards,

Rama

Former Member
0 Kudos

Hi Akansha,

After creation of table in layout, Swap the element definition to which field u want drop down in the table. then automatically it'll appear in the output.

Right click on table cell and select  "Swap element definiton".  Then select Dropdown by Key.

hope it'll help.

Regards,

Jack.

Former Member
0 Kudos

Bind the drop down to an context node of cardinality 0..1.

Thanks

KH

Former Member
0 Kudos

Cardinality should be 0..n and selection should be 0..1 .