Integration en
Integration en
You can run SAP E-Recruiting as a standalone scenario on one instance or in an integrated scenario on different instances. In the integrated scenario, SAP E-Recruiting runs on the same system and client as SAP ERP Central Component (SAP ECC). (Software runs on one instance.) In the standalone scenario, only SAP E-Recruiting is active in the system; other active ERP components are installed on another system, separate from the SAP E-Recruiting system. This scenario also includes the case where SAP E-Recruiting runs on the same system as the ERP components, but in a different client. (Software runs on different instances.) The following documents describe the integration of SAP E-Recruiting and SAP ERP for these installation options: ERP Integration (Software Runs on One Instance) ERP Integration (Software Runs on Different Instances)
If Concurrent Employment (CE) is active, SAP E-Recruiting creates a Candidate (NA) for each Central Person (CP). Several Personnel Numbers can be assigned to a Central Person. The following graphic shows the object relationships between the relevant Personnel Management objects and SAP E-Recruiting objects. Object Relationships
User (US)
Person (P)
B207 (2)
Candidate (NA)
-
The HR master data for the personnel numbers is saved in PA infotypes. The data can be accessed using the classic or the decoupled infotype framework.
For decoupled infotypes, there is a strict distinction made between the business logic and the user interface-relevant elements. Classic Infotype Framework for HR Master Data Infotypes The following prerequisites must be filled if you want to run SAP E-Recruiting and Personnel Management on an integrated system and you use the classic infotype framework: In the system table T77S0, you must set the following parameters: Parameter in Table T77S0 Group HRALX RECFA Semantic Abbreviation HRAC DTCBA Value X Logical system (self-referring), not required when using XI technology for the data transfer Logical system (self-referring), not required when using XI technology for the data transfer but definitely required for integration in Organizational Management Specifies whether Concurrent Employment is active in the ERecruiting system.
RECFA
HRRFC
RECFA
RECCE
You must activate the following sample implementations of the BAdIs listed below or the corresponding third-party implementations: BAdI Implementations BAdI HRSYNC_P HRALX_HRALXSYNC_BADI HRPAD00INFTY HRPAD00INFTY HRBAS00INFTY Sample Implementation CONV_HR_DATA_TO_EREC CHECK_INTER_NA_EXIST HR_INTEGRATION_TO_B HR_INTEGRAT_TO_EREC HRRCF00_STORE_HRQUAL
Decoupled Infotype Framework for HR Master Data Infotypes The following prerequisites must be filled if you want to run SAP E-Recruiting and Personnel Management on an integrated system and you use the decoupled infotype framework: In the system table T77S0, you must set the following parameters:
Parameter in Table T77S0 Group HRALX RECFA Semantic Abbreviation HRAC DTCBA Value X Logical system (self-referring), not required when using XI technology for the data transfer Logical system (self-referring), not required when using XI technology for the data transfer but definitely required for integration in Organizational Management
RECFA
HRRCF
You must activate the following sample implementations of the BAdIs listed below or the corresponding third-party implementations: BAdI Implementations BAdI HRSYNC_P HRALX_HRALXSYNC_BADI HRPAD00INFTY HRPAD00INFTYBL HRBAS00INFTY Sample Implementation CONV_HR_DATA_TO_EREC CHECK_INTER_NA_EXIST HR_INTEGRATION_TO_BP HRRCF00_HR2EREC_NEW_IFRMWK HRRCF00_STORE_HRQUAL
In the Object Overview view, the system displays a table with the available personnel numbers and the existing business partners. If a business partner exists for a personnel number, the system displays the Business Partner Number and Internal Candidate columns. In the latter column, a red icon means that there is no candidate assigned; a green icon indicates a candidate is assigned.
A green icon does not necessarily indicate that the SAP E-Recruiting data is synchronized with the Personnel Management data. If no business partner exists for a personnel number, this is represented by a red icon in the Basic Data column and by the lack of an icon in the Internal Candidate column.
The columns in this table are dependent on the active implementations of the BAdI HRALX_HRALXSYNC_BADI. You select the personnel numbers for which no candidates were created yet and choose the Repair function. The report first changes or creates the assigned business partners. The report then creates the missing candidates. To do this, the report calls the implementations of the BAdI HRSYNC_P. The following activities are executed within the DO_POST_PROCESSING method if no candidate has been created yet for the personnel number: The method reads the user name and the e-mail address from the data in infotype 0105. The method uses the business partner number to create an Internal Candidate (NA) and links this with the Central Person (CP). The method also creates a record in the infotype 5102 for the candidate and sets the IS_INACTIVE indicator (FALSE if IT0000-STAT2 = 3 (employee is active in the company), otherwise TRUE).
If you use Concurrent Employment (CE), at least one of the personnel assignments must be active in order for SAP E-Recruiting to be able to recognize the employee as an active employee. If records for infotype 0000 exist that lie in the future (BEGDA > SY-DATUM), the method writes the activity information in the indicator table T77RCF_P_STAT.
For information about the table T77RCF_P_STAT, see also the Changes to the Activity Status in the Future section further down in this document. If the user who is assigned to the personnel number in infotype 0105 does not exist, then the user is created. The user is assigned the reference user that corresponds to his or her role (internal candidate) according to table T77RCF_ROLE.
If the user already exists (transaction SU01), the method assigns the reference user according to table T77RCF_ROLE. If a reference user is already assigned there, the method adds the roles that are assigned to the reference user according to table T77RCF_ROLE (internal candidate).
Only one reference user can be assigned at any one time. If the infotype 0105 does not exist, no user is assigned to the candidate.
If the selected personnel number is no longer active, the system creates an external candidate for the internal candidate. In doing so, an alias is assigned to the associated user. If possible, the alias is the same as the user name. If qualifications were assigned via infotype 1001 to the Personnel Number (P) (for example, through data entered via ESS scenarios or using the transaction PPPM), these qualifications are saved in infotype 5105 for the Candidate (NA).
If you use Concurrent Employment (CE), at least one of the personnel assignments must be active in order for SAP E-Recruiting to be able to recognize the employee as an active employee. If records for infotype 0000 exist that lie in the future (BEGDA > SY-DATUM), the report writes the activity information in the indicator table T77RCF_P_STAT. When the report is run for repair purposes, it does not process the infotypes 0001 and 0002 as this information was already adjusted for the Business Partner (BP) in the initial step by the same HRALXSYNC report. The infotype 0006 (Addresses) is synchronized with the Business Partner (BP) outside the BAdI implementation CONVHR_DATA_TO_EREC for SAP E-Recruiting. To ensure that the addresses are still available in SAP E-Recruiting, the infotype 5110 (subtype 0000) must also be synchronized. The report then adjusts the user according to the infotypes 0105 and 0000. For internal candidates, the report writes the e-mail address from infotype 0105 to the address-
independent part of the Business Partner (BP) and adjusts the data record in infotype 5110 (subtype 0003).
If you use Concurrent Employment (CE), different users and e-mail addresses can be stored for different personnel assignments. In this case, the system uses the e-mail address and the user of the oldest active personnel assignment. If qualifications were assigned via infotype 1001 to the Personnel Number (P) (for example, through data entered via ESS scenarios or using the transaction PPPM), these qualifications are saved in infotype 5105 for the Candidate (NA).
In normal operations, you should schedule the HRALXSYNC report to run periodically (see the Changes to the Activity Status in the Future section). The hiring date is in the past or is today. The system creates the infotypes for a person within the framework of a hiring action (PA40). Each time these infotypes are changed, the system calls the implementations of the BAdI HRPAD00INFTY.
As long as there is no candidate for the personnel number, the BAdI implementations have no effect. Once the system has created the infotypes 0000, 0001, and 0002, the system calls the BAdI implementation for the business partner integration and creates a Business Partner (BP). The system then calls the implementations of the BAdI HRSYNC_P. The system uses the SAP E-Recruiting sample implementation to create an internal candidate using the business partner number and the personnel number. In addition, the system creates the infotype 5102 and sets the indicator IS_INACTIVE according to the attribute of the field STAT2 of the current infotype record 0000.
If you use Concurrent Employment (CE), at least one of the personnel assignments must be active in order for SAP E-Recruiting to be able to recognize the employee as an active employee. In the case of future infotype records 0000, the system fills the table T77RCF_P_STAT accordingly.
If other infotypes relevant for SAP E-Recruiting (0000, 0001, 0002, 0006, 0105) are created within the framework of a hiring action, the system processes them using the BAdI implementation HR_INTEGRAT_TO_EREC. For changes to the infotype 0105 according to the criteria as described in the Initial Step After Installation section, the system creates a user and/or enhances the profile of an existing user. In addition, the system adjusts the e-mail address in the address-independent part of the Business Partner (BP) (including infotype 5110 (subtype 0003)). For changes to the infotype 0000 according to the criteria as described in the Initial Step After Installation section, the system sets the IS_INACTIVE indicator in infotype 5102 for a current infotype record. For a future infotype record, the system makes an entry in the indicator table T77RCF_P_STAT. The system also changes the profile of the user (SU01). For changes to the infotype 0006 according to the criteria as described in the Initial Step After Installation section, the system synchronizes the infotype 5110 (subtype 0000). The infotypes 0001 and 0002 influence only the Business Partner (BP) in SAP E-Recruiting.
SAP does not deliver any implementations for these infotypes as it is assumed that the synchronization with the business partner was already performed before the BAdI implementation HR_INTEGRAT_TO_EREC is executed. If qualifications were assigned via the infotype 1001 to the Personnel Number (P) (for example, through data entered via ESS scenarios or using the transaction PPPM), these qualifications are saved in infotype 5105 for the Candidate (NA) (according to the setting of the RECFA HRQUA switch in table T77SO).
US2
US1
CP2
CP1
NA2
The hiring date of an external candidate is in the future When hiring an external candidate as of a date in the future, the system does not create a Business Partner (BP) for the Personnel Number (P) and Central Person (CP). This means that an internal candidate is not created in SAP E-Recruiting. The system stores the information about the future assignment of the personnel number to the candidate ID in the table T77RCF_EMPL_CAND (function module HR_RCF_ASSIGN_EE_TO_CANDIDATE). The system then creates the business partner on the hiring day or later using the HRALXSYNC report. The sample implementation of the BAdI HRSYNC_P recognizes that no candidates have existed up to now for the personnel number, but that the personnel number was created as the result of hiring an external candidate. The system then deletes the Central Person object (CP1) for the external candidate (NA1) (with its relationships (infotype 1001)) and writes the relationship (infotype 1001) from the external candidate (NA1) to the new Central Person (CP2). The system then locks the user of the external candidate.
The following graphic displays the object relationships: Object Relationships for a Hiring in the Future
The system performs the following steps: No changes when calling the function module Entry in the indicator table T77RCF_EMPL_CAND The HRALXSYNC report makes the following changes on the hiring date Creation of BP2, assignment to CP2 Reassignment of NA1 Deletion of CP1 and the relationships from CP1 to BP1 and US1
US2
NA1
The hiring date of an external candidate is not in the future When an external candidate (NA1) is hired on a date that is not in the future, the Personnel Number (P) and the Central Person (CP2) exist. The system creates a Business Partner (BP2) and a new candidate (NA2) (see also the Hiring Without Referring to Candidates section). When a new candidate is created, the system (hiring action) does not recognize that an external candidate already exists. The system then deletes the Central Person object (CP1) for the external candidate (NA1) and the new internal candidate (with all relationships in each case (infotype 1001)) and writes the relationship from the external candidate (NA1) to the newly created Central Person (CP2). The system locks the old User (US1) of the external candidate. If a User (US2) is assigned to the new Central Person (CP2), the system uses the CHANGE_USER_ROLE method of the CL_HRRCF_CANDIDATE class to assign the reference user of the internal candidate to this user.
The following graphic displays the object relationships: Object Relationships for a Hiring in the Past or Today
The system performs the following steps: Changes when calling the function module No entry in the indicator table T77RCF_EMPL_CAND Reassignment of NA1, deletion of NA2 Deletion of CP1 and the relationships from CP1 to BP1 and US1 Deactivation of US1
We recommend that you do not change an existing user assignment to the personnel number.
The system uses the sample implementation HRRCF00_STORE_HRQUAL of the BAdI HRBAS00INFTY to make changes to PD infotypes (Qualifications). To do so, the system processes the records of the Qualification object type (Q) that are assigned to the personnel number via the relationship B032. If a Candidate (NA) exists, the system synchronizes the infotype 5105 for the candidate with the qualifications (according to the setting of the RECFA HRQUA switch in table T77SO).
SAP ERP
SAP E-Recruiting
In scenario I2-B, SAP E-Recruiting runs on one system (client) integrated in an SAP ERP system in which only SAP E-Recruiting is active. Personnel Management is active on another ERP system or client, independent of the SAP E-Recruiting system.
SAP ERP
SAP ERP
SAP E-Recruiting
If Concurrent Employment (CE) is in use, SAP E-Recruiting creates a Candidate (NA) for each Central Person (CP). Several Personnel Numbers can be assigned to a Central Person. The following graphic shows the object relationships between the relevant Personnel Management objects and SAP E-Recruiting objects.
Object Relationships
User (US)
0..n
Candidate (NA)
Customizing Settings
In the system table T77S0, you must set the following parameters: Parameter in Table T77S0 Group HRALX HRALX HRALX RECFA Semantic Abbreviation HRAC PBPHR USRAC HRRFC Value X ON X Logical system, not required when using XI technology for the data transfer but definitely required for integration in Organizational Management Specifies whether Concurrent Employment (CE) is active in the SAP ERecruiting system. Logical system (required on the HR system side) , not required when using XI technology for the data transfer Description Activates HR integration Distributes employees from connected HR system Creates relationship to user Logical system of the coupled HR system
RECFA
RECCE
Concurrent Employment is active in the SAP E-Recruiting system (parameter is relevant as of Release 604) RFC connection to the SAP ERecruiting system
RECFA
DTCBA
You must activate the following sample implementations of the BAdIs listed below or the corresponding third-party implementations. BAdI Implementations BAdI HRSYNC_P HRALX_HRALXSYNC_BADI HRALE00INBOUND_IDOC HRALE00SPLIT_INBOUND HRALE00INBOUND_IDOC HRALE00SPLIT_INBOUND HRALE00INBOUND_IDOC Sample Implementation CONV_HR_DATA_TO_EREC (active as of Release 604) CHECK_INTER_NA_EXIST (inactive) HRRCF00_INBD_NEWMOD (active as of Release 604) HR_INB_PROCESS_IDOC (inactive as of Release 604) HRRCF00_DELETE_SPREL (inactive as of Release 604) HR_INB_PROCESS_IDOC (active up to Release 603) HRRCF00_DELETE_SPREL (active up to Release 603)
Best Practices After Installation of SAP E-Recruiting (ALE Distribution) up to Release 603
This section is relevant only for releases up to 603 and describes the initial distribution of the Personnel Number (P) und Position (S) objects. Prerequisites You already use Personnel Management in your HR system. You have installed SAP E-Recruiting as described in the I2 scenarios. You want to perform an initial distribution of HR master data (object type P) and of the organizational structure (object types O, S) or of other object types. Procedure You use the program RHALEINI to create all initial candidate objects (NA objects) in SAP E-Recruiting. In an I2 scenario, SAP E-Recruiting exchanges the P relationship in infotype 1001. S relationship for a CP S
If you perform the initial distribution of the objects P and S in Insert Mode (an IDoc with two segments, one for the object P and another for the object S), it can occur that the relationship CP S is created first during the inbound process for the segment of the object P. However, this relationship is then deleted again by the Insert Mode when the second IDoc segment with the object S is processed. For this reason, we recommend the following initial distribution strategy:
This is just a recommendation; other procedures are also possible. Distribute all objects of the type Organizational Unit (O) using the program
RHALEINI. Make sure that all objects of the type O are created in the SAP ERecruiting system by using the Update Mode as Transfer Mode and specifying the infotype 1000. Repeat the previous step for the object type S.
Redistribute all objects of the object type O again using the program RHALEINI. Make sure that all objects of the type O and the relationships between the objects are created in the SAP E-Recruiting system by using the Insert Mode as Transfer Mode.
The infotype 1000 is not redistributed again in this case. Repeat the previous step for the object type S. Distribute all objects of the object type P using the program RHALEINI. Make sure that all objects of the type P and the relationships between the objects are created in SAP E-Recruiting by using the Insert Mode as Transfer Mode. In addition, the system creates the objects of the type Candidate (NA).
SAP E-Recruiting
BAdI HRALE00SPLIT_INBOUND
Personnel Administration
process_selected_data
ALE
SAP E-Recruiting Inbound Processing
PA SAP NetWeaver
CP
BP
NA
The inbound process calls the implementation of the BAdI HRALE00SPLIT_INBOUND. The system performs the following activities using the method HRRCF_CAND_FROM_EE_ALE of the class CL_HRRCF_EMPLOYEE_INBOUND. The method reads the user name and the e-mail address from the IDoc data in infotype 0105.
The method creates a Business Partner (BP) and a Central Person (CP), which are required to create an internal candidate. The method then links this candidate (infotype 1001) with the Central Person. The method also creates a data record in infotype 5102 for the candidate and sets the indicator IS_INACTIVE (FALSE if the IDoc data from IT0000-STAT2 = 3 (employee is active employee), otherwise TRUE). If the user who is assigned to the personnel number in infotype 0105 does not exist in the IDoc, the method creates the user by using the template EEXXXXXXXX (where XXXXXXXX is the eight characters from his or her personnel number). The system then assigns to the user the reference user that corresponds to his or her role (internal candidate) according to table T77RCF_ROLE. If qualifications are distributed via the IDoc from infotype 1001 to Personnel Number (P), the system saves these qualifications in infotype 5105 of the Candidate (NA). The relationship P S of the original IDoc changes to a relationship of the type CP Hiring Without Referring to Candidates (Transaction PA40) up to Release 603 This case describes a hiring whereby a candidate did not already exist in SAP E-Recruiting. If the hiring date for a Personnel Number lies in the future, the inbound process creates an entry in the table T77RCF_P_STAT with the hiring date on which the periodic service PROCESS_CAND_STATUS_CHANGE reclassifies the candidate from an external candidate to an internal candidate. The integration then occurs as described in the Inbound Process up to Release 603 section (BP, NA, and so on are created). Inbound Process as of Release 604 S.
SAP E-Recruiting
Standard ALE Inbound Processing for HR Master Data
Personnel Administration
ALE
SAP E-Recruiting Inbound Processing
PA SAP NetWeaver
CP
BP
NA
The inbound process calls the implementation of the BAdI HRALE00INBOUND_IDOC. This enables the execution of the standard ALE inbound processing for HR master data. The infotype framework used for this (IT5580 to IT5588) lies in the basis layer (SAP_ABA).
As of Release 604, SAP E-Recruiting uses the standard ALE inbound processing for HR master data and creates only the SAP E-Recruiting objects. The standard ALE inbound processing for HR master data creates all other objects, such as BP, CP, and so on, and links the HR master data with the infotype framework. The SAP E-Recruiting-specific part of the inbound processing lies in the method POST_PROCESS_IDOC of the implementation of the BAdI. The method DO_ALE_POST_PROCESSING of the class CL_HRRCF_ALE_EE_INBOUND performs the following activities:
Concurrent Employment (CE) supports only this implementation for the inbound processing. The method reads the e-mail address from the data of the Business Partner (BP). The standard ALE inbound processing for HR master data links the IDoc data of the infotype 0105 with that of the infotype 5585. The infotype 5585 then contains the user for SAP E-Recruiting. The method uses the Business Partner (BP) and the Central Person (CP) (that were created by the standard ALE inbound processing for HR master data) to create an internal Candidate (NA). The method then links the Candidate with the Central Person. The method also creates an entry in infotype 5102 for the candidate and sets the indicator IS_INACTIVE to FALSE if the IDoc data from IT0000-STAT2 = 3 (employee is active employee), otherwise to TRUE. If Concurrent Employment (CE) is in use, at least one staff assignment must be an active assignment so that SAP ERecruiting can recognize the employee as an active employee. If the user who is assigned to the personnel number in infotype 5585 does not exist in the IDoc, the method creates the user by using the template EEXXXXXXXX (where XXXXXXXX is the eight characters from his or her personnel number). The system then assigns to the user the reference user that corresponds to his or her role (internal candidate) according to table T77RCF_ROLE. If qualifications are distributed via the IDoc from infotype 1001 to Personnel Number (P), these qualifications are saved in infotype 5586 by the standard ALE inbound processing for HR master data. SAP E-Recruiting then copies them from there to the infotype 5105 of the Candidate (NA). SAP E-Recruiting copies the address of the candidate from the Business Partner. Note that the standard ALE inbound processing for HR master data saves the relationship S as a CP S relationship in infotype 5586 and in infotype 1001. SAP E-Recruiting does not make any changes to the assignments.
The system does not create the candidate until you run the report HRALESYNC in repair mode on the hiring day or later. The report repairs the data by creating the corresponding Business Partner (BP) and the entries in the infotype 1001. The BAdI implementation CONV_HR_DATA_TO_EREC of the BAdI HRSYC_P then calls the SAP E-Recruiting inbound processing DO_ALE_POST_PROCESSING and the integration proceeds as described in the section Inbound Process as of Release 604.
In normal operations, you should schedule the HRALESYNC report to run periodically.
Only the Personnel Number (P) was assigned to the Candidate (NA). The candidate remains an external candidate until the ALE inbound processing is performed.
Dismissal
In the case of a dismissal, the STAT2 attribute in infotype 0000 is given a value other than 3. The inbound processing sets the indicator IS_INACTIVE in infotype 5102 to TRUE (dismissal not in the future) and updates the user profile. For a dismissal in the future, the
system makes a corresponding entry in the indicator table T77RCF_P_STAT (see also the Changes to the Activity Status in the Future section).
If you use Concurrent Employment (CE), all of the personnel assignments of an employee must be inactive in order for SAP E-Recruiting to be able to recognize the employee as an inactive employee.
Rehire
In the case of a rehire, the STAT2 attribute in infotype 0000 is given the value 3 again. The inbound processing sets the IS_INACTIVE indicator in infotype 5102 to FALSE (rehire not in the future) or ensures that the system makes a corresponding entry in the indicator table T77RCF_P_STAT (see the Changes to the Activity Status in the Future section). The system changes the profile of the assigned user according to the IS_INACTIVE indicator.
An I1 scenario describes the case where SAP E-Recruiting and HCM are live and integrated on the same system.