Skip to Content
avatar image
Former Member

How to enable a LABEL text on WEBDYNPRO application

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • 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.

    Cheers.

    Amy

    Add comment
    10|10000 characters needed characters exceeded