cancel
Showing results for 
Search instead for 
Did you mean: 

dropdown

Former Member
0 Kudos

Hi All,

I am new to WebDynpro ABAP.

I am using dropdown by key as inputfield.

I want to fetch values from the table based on the selected value.

I could retrieve the selected key.How to retrieve the value ?

Regards,

Mythili

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Mythili,

If you are already able to get the selected value then you can simply put the code of reading the table based on selected value in event ONSELECT of this UI element.

Hope it helps.

Thanks,

Amit

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Amit,

thank u.

I have written code in ONSELECT .

Using get attribute method i could retrieve the key of the selcted value.

but is there any possibility to get the value itself.

for eg table contains,

key value

1 A

2 B

if i select A in the dropdown box, i want to get that value A (not the key 1) in some variable for further processing.

Regards,

Mythili

abhimanyu_lagishetti7
Active Contributor
0 Kudos

what is the use of Key,

I hope you are using DropDownByKey

while filling the dropdown itself fill like this

A A

B B

Abhi