SAP Customer Detail Component
You can extend the SAP Customer Detail Component to return additional data at the header, company, and sales levels in the following tabs within SAP: USER_DEFINED, COMPANY_USER_DEFINED, and SALES_USER_DEFINED.
The SAP Customer Detail Component calls BAdI /ENSXSFCI/SD_CUSTOMER_DETAIL.
The BAdI contains the method: ADDITIONAL_DATA.
Method ADDITIONAL_DATA
The ADDITIONAL_DATA method receives the CT_DATASET results and lets you add values in the USER_DEFINED tab. This method is called after all the SAP Customer Detail Component logic is executed.
Example Implementation
We provide an example implementation class: /ENSXSFCI/CL_CUST_DETAIL_BADI. You can copy the example implementation and add/replace it with your own logic and fields.
In the ADDITIONAL_DATA method, the user that created the object (ERNAM) is obtained for the header, the company, and the sales data. Then that user information (ERNAM) is added to the CT_DATASET structure.