Ansicht
Dokumentation

HRSFI_EXT_PERNR_MAP - BAdI: Mapping External Personnel Numbers

HRSFI_EXT_PERNR_MAP - BAdI: Mapping External Personnel Numbers

Addresses (Business Address Services)   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 the SAP ERP system and SuccessFactors Employee Central. In this BAdI, you define which Employee Central field is used to determine the personnel number.

You implement the BAdI if you want Employee Central to specify the personnel numbers used in the SAP ERP system.

Method: IF_PAOCF_EC_EXT_PERNR_MAP~MAP_EXT_PERNR

Your SAP ERP system is configured for the external assignment of personnel numbers. You can configure this under Personnel Management > Personnel Administration > Basic Settings > Maintain Number Range Intervals for Personnel Numbers.

Ensure the following:

  • The personnel numbers used by Employee Central must not already be assigned in the SAP ERP system.
  • If there is more than one number range, you need to ensure that the personnel numbers in Employee Central are within the relevant number range.
  • The personnel number must be numerical and have 8 digits.

There is no standard implementation for this BAdI.

For more information about the standard settings (filters, single, or multiple uses), see the Enh. Spot Element Definitionstab in the BAdI Builder (transaction SE18).

The prerequisite for this sample implementation to function is that all employees for whom Employee Central is to assign the personnel number have an EMPLOYEE_ID_EXTERNAL. There must be no change of companies. This would result in a new number assignment. This field exists only once for each employee and is therefore not suitable for assigning multiple personnel numbers.

FIELD-SYMBOLS               TYPE paocf_ec_employee_v2.

  ASSIGN  is_employee TO .

  IF sy-subrc <> 0.

    RAISE EXCEPTION TYPE

      cx_paocf_ec_services

    EXPORTING

      textid =  cx_paocf_ec_services=>structure_name_unknown

      structure_name = 'paocf_ec_employee_v2'.

  ENDIF.

  ev_pernr_external = -employee_id_external.

For more information about how to implement BAdIs in the Enhancement Framework, see SAP NetWeaver Library and choose Function-Oriented View -> Application Server -> Application Server ABAP -> Application Development in AS ABAP -> ABAP Customer Development -> Enhancement Framework.






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

Length: 3192 Date: 20240523 Time: 215302     sap01-206 ( 56 ms )