Skip to main content

SAP Invoice Detail Component

You can extend the SAP Invoice Detail Component to return values at the header and item levels in the following tabs within SAP: USER_DEFINED and ITEM_USER_DEFINED.

The SAP Invoice Detail Component calls BAdI /ENSXSFCI/SD_INVOICE_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 Invoice Detail Component logic is executed.

Example Implementation

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

In the ADDITIONAL_DATA method, the Sales District (BZIRT) is obtained for the header and the User that Created the Object (ERNAM) is obtained for the items.