Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

drop down list in web-dynpro abap

Hi friend,

i want to drop down list in WEB-DYNPRO abap kindly give me one example .



Former Member

Hi Vikash,

You can actually use 2 different kind of drop down by keys within WDA. One is by using DropDownByKey & the other is by using DropDownByIndex. The values displayed by the drop down can be stored in the context, or they can by related to the type to which the UI element is referring. The first approach of binding the drop down to an context node of cardinality 0..n or 1..n is called Index Binding. Before the view (containing the

value selector) can be rendered, the collection has to be populated. This means all values to be displayed in the value selector are to be stored in the context as attribute values of the collection elements.

The second possibility to define a value set displayed by the value selector is to relate the value set to the type to which the UI element is referring. In this case, the UI element has to be bound to a context attribute, which is typed as follows:

1) The attribute is an ABAP Dictionary type, which is based on a domain with fixed values. The short texts related to the fixed values are displayed by the value selector.

2) The attribute is a Web Dynpro runtime type with fixed values. These fixed values are displayed by the value selector.

3) The attribute's type is arbitrary. The value set is assigned dynamically by changing the attribute's metadata at runtime.

If you want to find an example of how you can implement the drop downs in WDA then you can try go through section [3.3.1 from Ulli Hoffman's Web Dynpro for ABAP|].



If you want to implement the drop downs within the cells of a table then go through this thread ([Thread|Binding an Internal Table to a Context Node;)where I have explained the same.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question