cancel
Showing results for 
Search instead for 
Did you mean: 

handle standard dropdown by key field dynamically.

Former Member
0 Kudos

Hi Experts ,

I'm enhancing dropdown by key field in web-dynpro from editable to read only state.

The default value is already set in init method.

but i am not able to handle it dynamically, purpose is that user can not change the drop down in create/edit mode.

Already tried below code but getting errors:

data: lo_inp type ref to cl_wd_DROPDOWN_BY_KEY.

lo_inp ?= view->get_element( 'FOLLOW_ON_DOC_KEY' ).

call method lo_inp->set_read_only( exporting  value abap_true ).

please help.

Accepted Solutions (0)

Answers (1)

Answers (1)

ramakrishnappa
Active Contributor
0 Kudos

Hi Purushottam,

You code looks okay.

What kind of error are you getting? Please share the details.

Regards,

Rama