Skip to Content

How to enable a LABEL text on WEBDYNPRO application

Apr 13 at 10:59 AM


avatar image
Former Member


We have a webdynpro application where we need to enable label text and disable the label(Input) value.

Issue:Currently both label and it's value are getting disabled.

Properties for label:

Properties for input field:


lv_input ?= view->get_element('INP_UNIT').
lv_input->set_enabled( abap_false ).


Only UNIT should be enable.

What to achieve:

We need only label as enable and its value should be disable.

(Need to enable the label(UNIT)).

Attached the reference screenshots.

Any help should be much appreciated.

Thank you,

Yamini M.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Amy King Apr 13 at 12:20 PM

Hi Yamini,

UI element Label is linked to its InputField, so you cannot disable the InputField while keeping its Label enabled (not grayed out). What you can do though is set the InputField as read-only rather than disabled. That setting will keep its Label enabled.

BTW, Web Dynpro ABAP questions should be directed to the UI Web Dynpro ABAP forum.



capture.jpg (11.1 kB)
10 |10000 characters needed characters left characters exceeded