cancel
Showing results for 
Search instead for 
Did you mean: 

How to enable a LABEL text on WEBDYNPRO application

Former Member
0 Kudos

Requirement:

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:

code:

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

output:

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

amy_king
Active Contributor
0 Kudos

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.

Cheers.

Amy