Ansicht
Dokumentation

HRSFI_BADI_PERS_ONB - BAdI: Determination of SAP ERP Personnel Number and SuccessFactors User ID

HRSFI_BADI_PERS_ONB - BAdI: Determination of SAP ERP Personnel Number and SuccessFactors User ID

BAL Application Log Documentation   Vendor Master (General Section)  
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 HCM Suite.

You can use this BAdI to derive the personnel number used in SAP ERP and the user ID used in SuccessFactors from data that you transfer from SuccessFactors. When importing data from SuccessFactors, the SAP ERP system runs through the implementation of this BAdI and attempts to determine the personnel number and the user ID from the transferred SuccessFactors field contents. If the SAP ERP system can determine the chosen information, it uses it to map the field contents transferred from SuccessFactors to infotype fields in SAP ERP.

Additionally, you can use the BAdI to derive a user ID for SuccessFactors from the personnel number used in SAP ERP after you have adopted a candidate transferred from SuccessFactors as a new employee in SAP ERP Personnel Administration. The user ID is transferred to SuccessFactors. SuccessFactors stores the user ID in the Candidate object and thereby establishes a connection between the data of the external candidate who applied via SuccessFactors and the new employee who has been hired using Personnel Administration in SAP ERP.

Recommendation
For this function, use the standard implementation of this BAdI. You only need your own implementation if you have a very specific request for transferring the user ID to SuccessFactors.

The BAdI uses the following methods:

  • PROVIDE_PERNR with the following parameters:
Import Parameter
  • IT_SFSF_FIELDS

Table with all fields and field values transferred from SuccessFactors
Return Parameter
  • RV_PERNR

Personnel number used in SAP ERP HCM
You can use this method to determine the personnel number from the transferred data.
Example
Determining the personnel number can be useful for checking for duplicates in SAP ERP. The system displays the personnel number, for example, in the application for the further processing of imported applications (transaction HRSFI_RCT_HIRE). The HR administrator can then check whether the employee is the same and is therefore not a new hire. If this is the case, the HR administrator may need to perform the personnel actions for a re-entry to the enterprise or an organizational reassignment.
  • PROVIDE_USERID with the following parameters:
Import Parameter
  • IT_SFSF_FIELDS

Table with all fields and field values transferred from SuccessFactors
Return Parameter
  • RV_USER_ID

User ID used in SuccessFactors
You can use this method to determine the user ID from the transferred data. You use this method when you store the user ID in SuccessFactors in a field other than the default field USERID and want to make this available in SAP ERP. You can then run the method PROVIDE_PERNR, for example, to derive the personnel number using the user ID determined in this way.
  • DETERMINE_USERID_FOR_PERNR with the following parameters:
Import Parameters
  • IV_PERNR

Personnel number used in SAP ERP HCM
Return Parameter
  • RV_USER_ID

User ID for SuccessFactors
You can use this method to derive the SuccessFactors user ID from the SAP ERP personnel number.

  • HRSFI_RCT_PERNR_USERID
This implementation provides the following information:
  • It uses method PROVIDE_PERNR to determine the personnel number from the data transferred from SuccessFactors. To do so, it checks whether the table SuccessFactors: Log Table for Delta Handling (HRSFI_D_EXTR_LOG) already contains a personnel number for the transferred data record. This is the case if employee data has already been transferred from SAP ERP HCM to SuccessFactors for the employee concerned.

  • It uses method PROVIDE_USERID to determine the user ID from the data transferred from SuccessFactors.

  • It uses method DETERMINE_USERID_FOR_PERNR to derive a user ID from the SAP ERP personnel number. To do so, it first determines the ID of the central person who is assigned to the personnel number and checks whether this is stored in table HRSFI_D_EXTR_LOG. This is the case if employee data has already been transferred from SAP ERP HCM to SuccessFactors for the employee concerned. If the ID of the central person is not stored in table HRSFI_D_EXTR_LOG, the person is a new employee or an employee for whom no employee data has yet been transferred from SAP ERP HCM to SuccessFactors. In this case, the method checks which option is stored in Customizing under Choose Option for Deriving SuccessFactors BizX User ID from SAP ERP, and determines the user ID in this way.

If you want to determine information other than that which is provided as standard, create a customer-specific implementation of this BAdI.






PERFORM Short Reference   BAL_S_LOG - Application Log: Log header data  
This documentation is copyright by SAP AG.

Length: 6007 Date: 20240523 Time: 203510     sap01-206 ( 130 ms )