Skip to Content
0

Open appraisal document with expanded notes as default

Apr 20, 2017 at 09:20 AM

53

avatar image

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

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

1 Answer

Sravan Savvana May 08, 2017 at 10:13 AM
0

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

Share
10 |10000 characters needed characters left characters exceeded