SAP Customer Partners Search Component
You can extend the SAP Customer Partners Search Component by adding up to 10 fields at the end of the search result table. You can also replace the standard search with a custom selection.
The SAP Customer Partners Search Component calls BAdI /ENSXSFCI/SD_CUSTOMER_PARTNER_SEARCH.
The BAdI contains the following methods: GET_CUSTOMERS_AS_PARTNER, GET_VENDORS_AS_PARTNER, GET_CONTACTPERSONS_AS_PARTNER, GET_EMPLOYEES_AS_PARTNER, and ADDITIONAL_FIELDS.
Method GET_CUSTOMERS_AS_PARTNER
The GET_CUSTOMERS_AS_PARTNER method lets you search for customers by partner information (in this case, the partner is the customer). GET_CUSTOMERS_AS_PARTNER receives IS_CHDATE (Changed Date), IV_VKORG (Sales Organization), IV_VTWEG (Distribution Channel), and IV_SPART (Division) and returns the T_KNVP structure (it contains the Customer Partners). The CV_IMPLEMENTED flag should be set if this method is implemented.
The SAP Customer Partners Search Component logic checks the CV_IMPLEMENTED flag and ignores the standard search if it's set.
Method GET_VENDORS_AS_PARTNER
The GET_VENDORS_AS_PARTNER method lets you search for customers by partner information (in this case, the partner is the vendor). GET_VENDORS_AS_PARTNER receives IS_CHDATE (Changed Date), IV_VKORG (Sales Organization), IV_VTWEG (Distribution Channel), and IV_SPART (Division) and returns the T_KNVP structure (it contains the Customer Partners). The CV_IMPLEMENTED flag should be set if this method is implemented.
Method GET_CONTACTPERSONS_AS_PARTNER
The GET_CONTACTPERSONS_AS_PARTNER method lets you search for customers by partner information (in this case, the partner is the contact person). GET_CONTACTPERSONS_AS_PARTNER receives IS_CHDATE (Changed Date), IV_VKORG (Sales Organization), IV_VTWEG (Distribution Channel), and IV_SPART (Division) and returns the T_KNVP structure (it contains the Customer Partners). The CV_IMPLEMENTED flag should be set if this method is implemented.
Method GET_EMPLOYEES_AS_PARTNER
The GET_EMPLOYEES_AS_PARTNER method lets you search for customers by partner information (in this case, the partner is the employee). GET_EMPLOYEES_AS_PARTNER receives IS_CHDATE (Changed Date), IV_VKORG (Sales Organization), IV_VTWEG (Distribution Channel), and IV_SPART (Division) and returns the T_KNVP structure (it contains the Customer Partners). The CV_IMPLEMENTED flag should be set if this method is implemented.
Method ADDITIONAL_FIELDS
The ADDITIONAL_FIELDS method receives the CT_DATASET search result table and lets you add values to the CUSTOM01 - CUSTOM10 fields in the table. This method is called after all the SAP Customer Partners Search Component logic is executed.