cancel
Showing results for 
Search instead for 
Did you mean: 

WDA HAP_DOCUMENT_BODY for PMS

Former Member
0 Kudos

Hi,

How can we add UI elements for HAP_DOCUMENT_BODY view VW_BODY_DYN ?

Adding in the layout screen does not help as it gets overwritten by the dynamic layout generation as per standard.

I want to add a table above the KRAs/KPIs

Please Suggest

Regards,

Abhishek.

Accepted Solutions (0)

Answers (1)

Answers (1)

j_schnatz
Explorer
0 Kudos

Hi Abhishek,

you will have to create an enhancement for Web Dynpro Component HAP_DOCUMENT_BODY and create a post-exit for method WDDOMODIFYVIEW in view VW_BODY_DYN. In the post-exit you will have to add your UI-elements dynamically via coding.


Please be very careful here though as this is a significant enhancement to the SAP standard.


Cheers,

Johannes

Former Member
0 Kudos

Hi Johannes,

Thanks for the Reply.

I tried to add UI Elements in the post exit of method WDDOMODIFYVIEW but it goes for Dump.

Error analysis (ST22)

    An exception has occurred which is explained in more detail below. The

    exception, which is assigned to class 'CX_WDR_ADAPTER_EXCEPTION' was not

     caught and

    therefore caused a runtime error. The reason for the exception is:

    Error in  MATRIX_LAYOUT "_5E" of view "HAP_DOCUMENT_BODY.VW_BODY_DYN":

    LayoutData type "FLOW_DATA" for child element "TRY_BLK_1" is not permitted

Regards,

Abhishek