Skip to Content
avatar image
Former Member

Open appraisal document with expanded notes as default

I am using the column layout for appraisal documents self service view. I would like all Notes boxes to be expanded as default in all appraisal documents as the customer is not happy with having to click "Expand - All notes" every time they open an appraisal document or switch between appraisal document tabs.

Is it possible to achieve this via customizing? Are there any enhancements which can allow me to do this?

Thanks in advance

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    May 08, 2017 at 10:13 AM

    Hi Andreas,

    This is possible by enhancing web dynpro component HAP_DOCUMENT_BODY.

    Create an overwrite exit for method UPDATE_NOTE_IMAGES of view VW_BODY_DYN. Copy the code from method and paste in overwrite method. Append the following code to expand the note field by default in appraisal document.

    lv_attribute_name = cl_hap_wd_config_ui=>GC_ATTRIBUTE_TGL_NOTE && ls_attribute_row-row_iid.
    IF lo_tab_node_info->has_attribute( lv_attribute_name ) = abap_true.
    lo_el_dyn->set_attribute(
    EXPORTING
    value = abap_true
    name = lv_attribute_name
    ).
    ENDIF.

    ENDIF.
    ENDLOOP.

    Rgrds,

    Sravan

    Add comment
    10|10000 characters needed characters exceeded