cancel
Showing results for 
Search instead for 
Did you mean: 

synchronization between employee and business partner, when CP is related to 2 different pernr

0 Kudos
98

S/4Hana, synchronization between employees and business partners, when employee has 2 different personnel numbers one inactive and one active, a new business partner was not created. When running program /SHCM/RH_SYNC_BUPA_EMPL_SINGLE with the new pernr the message is: pernr was successfully synchronized , however no new business partner has been created, and no change has occurred to the previous business partner.

Accepted Solutions (0)

Answers (1)

Answers (1)

fran_h
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello,

When an employee has two or more personnel numbers, the first BP is always created with role BUP003 (employee) for the first personnel number.

For creating an additional BP for the second personnel number, the second personnel number must have a bank account maintained in infotype 9 and maintain a reference BP (with vendor) for the company code of the second personnel in view PTRV_VENDOR_SYNC.

There are some fields which are mandatory at vendor side, such as as the reconciliation account, that do not exist in HR, so the value of this fields is copied from the reference BP from view PTRV_VENDOR_SYNC.

 

0 Kudos

Hi , thank you for your reply.  However in the current scope , no data is maintained for a person in infotype 0009. Is there another way to provide a solution to this issue?

fran_h
Product and Topic Expert
Product and Topic Expert
0 Kudos

 

Hi, welcome!

The additional Business Partners (BPs) are mainly created for supplier purposes, such as paying travel expenses or payroll posting, and these processes require the employee's bank details. One option could be to implement the BADI_FITV_VENDOR_SYNC method MODIFY_BANKING_DATA and add the bank details there. It is still necessary to have the employee's bank details. However, if obtaining the employee's bank details is not possible, you could use some default bank data.

Another option would be to use the MODIFY_COMPLETE_DATA method of the same BADI. This method receives a table as a parameter, which contains all the data that will be sent to the Business Partner API and later saved in the database. You can add a new row corresponding to the additional BP that you wish to create. In this case, you will need to create the necessary custom code to fill all the main/mandatory BP fields as the BP will be created with zero.