cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the description from a selected dropdownbykey

Former Member
0 Kudos

Hi experts,

I have the following question :

I have in my view a dropdownbykey UI components, with some values  like :

Code description

A      Test1

B      Test2

.....

The list is diplayed correctly in the dropdown, but not i want in my onselect event to get the description of the selected value ... any suggestions/tips

Regards,,

Accepted Solutions (1)

Accepted Solutions (1)

former_member184578
Active Contributor
0 Kudos

Hi,

Use Function module RV_DOMAIN_VALUE_TEXTS or DD_DOMVALUE_TEXT_GET. Pass the domain key and you will get the domain value.

Hope this helps u.,

Regards,

Kiran

Answers (1)

Answers (1)

Former Member
0 Kudos

you can save your description in assistance class as text element

put check on domain value to get description from assisatence class example if domain value is 1 get text element of assiatnce class 8 using method 

  WD_ASSIST->IF_WD_COMPONENT_ASSISTANCE~GET_TEXT( '008' ).

or

you can query DD07t table to get domain description you need to pass domain name and domain key and language .

hope it helps