Ansicht
Dokumentation

HRSFI_BADI_REPL_ENHC - BAdI: Enhance the Replication of Employee Data

HRSFI_BADI_REPL_ENHC - BAdI: Enhance the Replication of Employee Data

CL_GUI_FRONTEND_SERVICES - Frontend Services   ABAP Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

This Business Add-In (BAdI) is used for the integration add-on for SAP ERP HCM and SuccessFactors BizX.

You implement this BAdI if you use middleware for the integration and want to enhance the extraction of employee data with customer-specific fields. You only need an implementation if the field names that were generated by the proxy generation are different from the field names that you have added to the structure HRSFI_S_TRANSFER_DATA as a customer-specific append structure.

For more information, see Enhancing the Extraction of Employee Data with Customer-Specific Fields.

The BAdI uses the following methods:

  • MAP_INT_NAME_TO_PROXY_NAME
You can use this method to map field names. You use this method for the integration using middleware.
  • MAP_INT_VALUE_TO_PROXY_VALUE
You can use this method to map field content. You use this method for the integration using middleware.
  • MAP_INT_NAME_TO_FILE_NAME
You can use this method to map field names. You use this method for the integration using file download.

You have used a customer-specific append structure to enhance the following structures with the customer-specific fields of your choice:

  • Integration using middleware: HRSFI_S_TRANSFER_DATA
  • Integration using file download: HRSFI_S_TRANSFER_DATA and HRSFI_S_TRANSFER_DATA_LABEL

You have created a corresponding implementation of the BAdI Replication of Employee Data (HRSFI_B_EMPL_DATA_REPLICATION) to define the data retrieval for your customer-specific fields. For this, use the method GET_VALUE_FOR_ENHANCED_FIELD. For more information, see BAdI: Replication of Employee Data.

There is no standard implementation for this BAdI.

By default, the BAdI uses the fallback class CL_HRSFI_FB_ENH_EMPL_DATA_REP. This class represents the situation that the field names are identical. You can use this fallback class as a sample class for a customer-specific implementation of the BAdI and modify it accordingly.

You use the integration using middleware. In SuccessFactors BizX, you have added the field NewFieldto the business object User. You have also added this field with the same field name to the Enterprise Services Repository (ESR). The proxy generation has added the field with the field name NEWFIELD to the proxy SFI_SE_SFOBJECT. However, you have added the field NEW_FIELD to the structure HRSFI_S_TRANSFER_DATA. Since this field name is not identical to the field name NEWFIELD used in the proxy SFI_SE_SFOBJECT, the system cannot automatically map the fields and their content.

Therefore, create an implementation of this BAdI. You implement the methods as follows:

  • MAP_INT_NAME_TO_PROXY_NAME
  • Import parameter IV_INT_NAME: Field name as defined in the customer-specific append structure (NEW_FIELD)

  • Return parameter RV_PROXY_NAME: Field name as defined in the proxy (NEWFIELD)

  • MAP_INT_VALUE_TO_PROXY_VALUE
  • Import parameter IS_TRANSFER_DATA: Append structure (IS_TRANSFER_DATA-NEW_FIELD)

  • Change parameter CS_PROXY_DATA: Proxy structure (CS_PROXY_DATA-NEWFIELD)






Addresses (Business Address Services)   Vendor Master (General Section)  
This documentation is copyright by SAP AG.

Length: 3941 Date: 20240523 Time: 185944     sap01-206 ( 67 ms )