cancel
Showing results for 
Search instead for 
Did you mean: 

Value and text in a dropdrowbykey

Former Member
0 Kudos

Hello SDN Members,

I want to know if there is an option to display the value and text in a dropdrowbykey. This dropdrowbykey is filled in a wddoinit method with a wd_context_attr_value_list.

I hope there is something to activate.

Thanks in advance

Regards,

Aurélien

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Found myself.

Put in the method of the view :WDDOMODIFYVIEW :

IF first_time ='X'.

DATA lr_dropdown TYPE REF TO cl_wd_dropdown_by_key.

DATA lr_ui_element TYPE REF TO if_wd_view_element.

CALL METHOD view->get_element

EXPORTING

id = 'DROPDOWN_DD'

RECEIVING

element = lr_ui_element.

lr_dropdown ?= lr_ui_element.

lr_dropdown->set_key_visible( abap_true ).

ENDIF.

Regards