Skip to Content
0
Former Member
Feb 22, 2011 at 02:32 AM

HAP_DOCUMENT_HEADER

37 Views

Dear Experts.

In component WebDynpro HAP_DOCUMENT_HEADER have a View with several fields. One of this fields is: INPUT_APPRAISER.

I want that this field is as field Disable.

I created a enhancement in the POST-EXIT:

 
    DATA lo_nd_appraiser TYPE REF TO if_wd_context_node.
    DATA lo_el_appraiser TYPE REF TO if_wd_context_element.
    DATA ls_appraiser TYPE wd_this->Element_appraiser.
    DATA lv_visibility_input TYPE wd_this->Element_appraiser-visibility_input.

*   navigate from <CONTEXT> to <APPRAISER> via lead selection
    lo_nd_appraiser = wd_context->path_get_node( path = 'UI_VISIBILITY.APPRAISER' ).

*   get element via lead selection
    lo_el_appraiser = lo_nd_appraiser->get_element( ).

*   @TODO handle not set lead selection
    IF lo_el_appraiser IS INITIAL.
    ENDIF.

*   set single attribute
    lo_el_appraiser->set_attribute(
      name =  'VISIBILITY_INPUT'
      value = lv_visibility_input ).

But with this code the Button is hided, but my requierement is show this field but disabled.

I checked the Method set_attribute_property

CALL METHOD lo_el_appraiser->set_attribute_property

EXPORTING

attribute_name = 'VISIBILITY_INPUT'

property = 3

value = ' '.

But this not work fine.

How can solve my issue?

Thanks in advance,

Regards