Skip to Content
Product Information
Author's profile photo Nicole Schwalm

External Workforce and Customer Role in New Employee Business Partner Data Model

*********************************************************************************************

Update July 2023:

New Cookbook: Employee Business Partner Integration as of SAP S/4HANA 2020 with new data model

*********************************************************************************************

As an addition to the SAP Blog New Employee Business Partner Data Model in SAP S/4HANA 2020OP, let’s take a closer look here on the External Workforce and the role Customer within the New Employee Business Partner Data Model. Both functionalities require the active Business Function /SHCM/EE_BP_1. Furthermore, the focus in this SAP Blog is on SAP S/4HANA on premise and SAP S/4HANA Cloud, private edition.

External Workforce

In the first part we will focus on the External Workforce and the integration to the corresponding business partner objects. In general, there exist several ways how the External Workforce data can be created and maintained in a SAP system landscape:

Creation%20of%20External%20Workforce%20for%20new%20employee%20business%20partner%20model

Creation of External Workforce for new employee business partner model

 

Possible scenarios for creation of an external worker from outside a SAP S/4HANA system are shown on the left side of the graphic above with SAP Fieldglass, SAP SuccessFactors, SAP HCM on a separate instance or a 3rd party system. The right side of the graphic shows the local creation scenario with a SAP S/4HANA system running SAP HCM embedded on the same instance.

For our integration scenario with the new employee business partner model, the External Workforce data is stored in the end in the corresponding HCM tables/infotypes of the SAP S/4HANA system and synchronized from there into the Business Partner data model. Usually, an external employee is differentiated in infotype 0001 (Organizational Assignment) with a special Employee Group (field PERSG) from an internal employee. In a standard implementation, Employee Group “9” (External Employee) is used to determine the external employee.
In case the customer business processes differentiate here, SAP provides BAdI /SHCM/B_EXTERNAL_EMPLOYEE to distinguish external from internal employees. Method SET_PERNR_AS_EXTERNAL provides the option to override the standard Employee Group and IS_PERNR_EXTERNAL determines if a personnel number is an external one.
To support the business processes around the External Workforce, infotype 3435 (Supplier) stores the supplier which is the external worker’s employer. Furthermore, newly introduced infotype 3406 (Service Cost Level) can be used to locally store the service cost level and is enabled for maintenance via transaction PA30.

During the BP synchronization process the role Service Performer (BBP005) is added to the BP representing the external employee and a separate Business Partner instance is created with role External Employment (BUP011) for each external contract. The external employment BP is linked to the leading BP instance via BUT050/HCM002 (External Employment) association. Therefore, it is handled like the synchronization process of internal employees.
Every external employment instance will reflect the external supplier’s belonging to that contract, associated via a newly introduced BUT050/HCM003 (Service Performer Contract) relationship.
The relationship category Service Performer (BUR025) links the external employee BP to the Business Partner of the external supplier. This ensures the compatibility as every consumer can access the data as before, and new consumers can access the external supplier in an improved way, using the new external employment object.

External%20Worker%20in%20new%20employee%20business%20partner%20model

External Worker in new employee business partner model

 

During the employee lifecycle it could be that an external becomes an internal employee and vice versa. Depending on the business processes on the customer side, an existing BP instance with role BUP010 could also be reused to assign role External Employment. This is the case if for example, the employee keeps the personnel number over the employee lifecycle.

External Workforce in employee lifecycle

 

Concluding, with the external worker functionality available as of SAP S/4HANA 2021 FPS0, a Business Partner employment instance can reflect

  • Only internal employment with role BUP010
  • Only external employment with role BUP011
  • Or both, then the instance carries both roles BUP010 and BUP011 but sequentially without overlaps.

 

Business Partner Role Customer

Now, let’s focus in the second part on the functionality automatically assigning the role Customer to the employment Business Partner. This option is relevant for scenarios where goods and services are sold and/or delivered to employees. The customer information such as name, address, bank details, tax details and delivery/billing preferences is used in the context of sales orders, deliveries, and invoices.
This functionality is available as of SAP S/4HANA 2022 FPS0.

The assignment of role Customer during the Business Partner synchronization process is very similar to the functionality of assigning role Vendor. Role Customer is also assigned to the employment Business Partner object representing the contract. The main tables used for this are KNA1 (General Data in Customer Master) and KNB1 (Customer Master (Company Code)). During the synchronization process KNB1-PERNR will be filled with the personnel number of the employment.

Role%20Customer%20in%20new%20employee%20Business%20Partner%20data%20model

Role Customer in new employee Business Partner data model

In the figure above you can see the new employee Business Partner data model including the role Customer (FLCU00) which is assigned to the employment Business Partner. The Business Partner carrying the Employment role can also have both roles – Vendor and Customer.

To provide the option of automatically assigning the role Customer to the employment Business Partner, the customizing was enhanced. Customizing view PTRV_VENDOR_SYNC (Synchronize HR data to supplier) contains now also the option to add role Customer as well as both roles Customer and Vendor.

New%20interface%20for%20customizing%20view%20PTRV_VENDOR_SYNC

New interface for customizing view PTRV_VENDOR_SYNC

The detailed interface of customizing view PTRV_VENDOR_SYNC (accessible also via transaction BUPASYNC) was changed to provide the possibility of assigning role Customer in a similar way as role Vendor.

New%20detailed%20interface%20for%20customizing%20view%20_PTRV_VENDOR_SYNC%20-%20Customer%20role

New detailed interface for customizing view _PTRV_VENDOR_SYNC – Customer role

New%20detailed%20interface%20for%20customizing%20view%20PTRV_VENDOR_SYNC%20-%20Customer%20and%20Vendor%20role

New detailed interface for customizing view PTRV_VENDOR_SYNC – Customer and Vendor role

Using a reference Business Partner as template for each company code helps passing the relevant customer and/or vendor information which cannot be provided by HR such as company code specific data like reconciliation account, dunning information, withholding tax data, general customer/vendor data, delivery and billing preferences, Business Partner group and Business Partner roles.

Also, the additional customizing table /SHCM/RECON_CUST for Reconciliation Accounts for Customer per Company codes was introduced.

The role assignment to employment Business Partners is then handled in reports /SHCM/R_EMPL_HANDLE_BPROLES (Assignment of Additional Roles to “Employment” Business Partners) for initial role generation and /SHCM/R_EMPL_HDLE_BPRLES_DELTA (Update of Roles of “Employment” Business Partners) for updates as a daily job.
These reports are executed after the initial synchronization of employee data to the Business Partner objects via /SHCM/RH_SYNC_BUPA_EMPL_SINGLE (S/4HANA BP Synchronization) and /SHCM/RH_SYNC_BUPA_FROM_EMPL for the delta synchronization as daily job.
Via new BAdI /SHCM/B_EE_BP_SYNC (Mapping of Employee to BP fields) it is possible to influence the to be synchronized employee data such as communication data, bank information and address data.

Definition%20of%20BAdI%20/SHCM/B_EP_BP_ROLE_SYNC

Definition of BAdI /SHCM/B_EP_BP_ROLE_SYNC

In addition, new BAdI /SHCM/B_EP_BP_ROLE_SYNC (Sync of roles ( customer, vendor, …)) was introduced to modify the vendor and/or customer data including general data, company code and group number, modify roles and tax numbers, as well as creating vendors/customers for employment Business Partners based on customer specific logic.
The existing BAdI BADI_FITV_VENDOR_SYNC cannot be used at the same time with this new BAdI. In case a customer is already using the old BAdI there is usually no need to switch to the new one as the old one still works and most methods are still supported.

Definition%20of%20BAdI%20/SHCM/B_EP_BP_ROLE_SYNC

Definition of BAdI /SHCM/B_EP_BP_ROLE_SYNC

Conclusion

The new employee Business Partner model covers the whole employee life cycle including the external workforce. Considering the external workforce in the synchronization process lowers the administrative tasks to distinguish manually between external and internal workforce as the different roles are assigned automatically via the report. The external workforce is considered with SAP S/4HANA 2021 FPS0 for employment Business Partners in the new data model.

Role Customer assignment during the employee Business Partner synchronization for the new data model supports additional business scenarios where goods and services are sold and/or delivered to employees. This functionality is available as of SAP S/4HANA 2022 FPS0.
Like the Vendor role assignment to the employment Business Partner, assigning role Customer is optional.

 

Additional Information

For additional information please refer to the following sources

External Workforce

New Employee Business Partner Model in SAP S/4HANA OP

 

Assigned Tags

      6 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Mauritz Von Krusenstierna
      Mauritz Von Krusenstierna

      Hi Nicole.

      Good news about Customer now supported.

      One issue though with this object model - it is the actual person (employee BP) that has the debt, not the employment. Other debt an emplyee may have to employer is salary. In case all employments has ended and a salary debt has occured for one or several of the employments it’s the person that shall be invoiced the sum of debts = a customer needs to be assigned to the employee-BP.

      Is there support for/possible to change the sync-behaviour in for example /SCHM/R_EMPL_HANDLE_BPROLES?

      Or - is SAP soon to deliver a BAdI/enhancement to assign BP-Customer with BP-Employee?

      BR

      Mauritz

      Author's profile photo Nicole Schwalm
      Nicole Schwalm
      Blog Post Author

      Hi Mauritz,

      the new data model (active BF SHCM/EE_BP_1) only supports vendor and customer attached to the employment BP (role BUP010) and with PERNR maintained in the master data of vendor/customer (LFB1/KNB1). Vendor and customer are therefore sharing the BP with role Employment.

      The only exception to vendor/customer attached to Employee BP is that a legacy data model for the business partners was used before (VMODE1). Then the fallback scenario applies with an improved legacy data model.

      But it is not possible to switch from the new data model back to VMODE1/improved legacy data model. If the vendor/customer is attached to the BP carrying role Employee it will lead to errors.

      Best regards

      Nicole

      Author's profile photo Mauritz Von Krusenstierna
      Mauritz Von Krusenstierna

      Hi.
      Thx.
      Of course this new model is very unfortunate for us as we now need to, in some un-known way, re-assign all customers from the Employee-BP to the Employment-BP both in ECC productive environment and in S/4 development environment.

      Do you have any suggested approach for this?

       

      BR

      /Mauritz

      Author's profile photo Nicole Schwalm
      Nicole Schwalm
      Blog Post Author

      Hi Mauritz

      it is an option but not necessary to execute a re-assignment/migration of the objects and roles in your scenario.
      Please refer to the mail correspondence for your scenario including the relevant details and the available options.

      Best regards
      Nicole

      Author's profile photo Rico Stoll
      Rico Stoll

      Hello,

      I wonder if it possible to assign a Service Provider (BBP005) to several suppliers?

      The system shows me diverant rsponse.

      In APP F3505A we find only one vendor field.

      Within BP I can't maintain the relations within the BP of the external ressource, cause HR integration is activ.

      If I use PA30 to add Infotype 3435 the current vendor relation end date will set by system.

      The only way I found to maintain several service provider to vendor relations is, using BP, opening the Vendor BP and maintiain the relation to the service provider that way.

      Now I wonder if we using a bug or a feature.

      Is SAP supporting multiple valid vendor assignments to one service provider in any way?

      Author's profile photo Nicole Schwalm
      Nicole Schwalm
      Blog Post Author

      Hi Rico,

      Yes, an external employee can have multiple contracts and therefore multiple suppliers.

      External Workforce in the new employee business partner data model is automatically created and updated based on the HR master data maintained in the system. Therefore the objects and relations as described in the blog above are automatically build by the synchronization reports. Additional information can also be found in the Integration Guide for SAP S/4HANA 2022, Chapter 4.1 (External Resource in the New Target Model) which also includes an example with multiple external assignments.

      A manual creation of the relationship between Service Performer BP and the Supplier is not intended and should not be used. The BP with the role Service Provider (BBP005) represents the External Employee. If an external employee has multiple contracts (external employments represented by a PERNR) this results in multiple BPs with role External Employment. The supplier, who is represented by an additional BP (with role vendor) and who is the actual employer for this contract, is linked to the BP with role External Employment. The link between those two objects is based on supplier maintenance in infotype Supplier (3435) for the corresponding external employment PERNR.

      Best regards
      Nicole