Skip to main content

SAP Sales Document Detail Component

You can extend the SAP Sales Document Detail Component to return additional data at the header and item levels in the following tabs within SAP: USER_DEFINED and ITEM_USER_DEFINED.

The SAP Sales Document Detail Component calls BAdI /ENSXSFCI/SD_SALESDOC_DETAIL.

The BAdI contains the method: ADDITIONAL_DATA.

Method ADDITIONAL_DATA

The ADDITIONAL_DATA method receives the CT_DATASET result and lets you add values in the USER_DEFINED tab. This method is called after all the SAP Sales Document Detail Component logic is executed.

Example Implementation

We provide an example implementation class: /ENSXSFCI/CL_SDOC_DETAIL_BADI. You can copy the example implementation and add/replace it with your own logic and fields.

In the ADDITIONAL_DATA method, the Statistic Currency (STWAE) is obtained for the header and the user that created the item (ERNAM) is obtained for the items.