cancel
Showing results for 
Search instead for 
Did you mean: 

Employee Data Delta Replication

Former Member
0 Kudos

We are using OTM_TRIGGER_EMPL_REPL_CE program to replicate active employee records from our ERP system and we do not replicate intern and temporary employees. For the delta replication like new employees or employee data changes in the ERP, we know that we need to schedule a job to run BD21 for message type OTM_EMPL. Change pointer is also activated. But how does the program would know that we only want to track the changes for NON intern/temporary employees and replicate in TOD? We are afraid that once we schedule BD21 job for employee delta replication, the system will also send changes for intern and temporary employees.

Please help!

Thanks,

Ferdie

Accepted Solutions (1)

Accepted Solutions (1)

sudmeier
Advisor
Advisor
0 Kudos

Hi Ferdie,

one way to achieve this is to implement BAdI OTM_EMPL_ORGANIZATION_FILTER of enhancement spot OTM_EMPLOYEE_REPLICATION in the ERP system. One importing parameter is PERNR, the personnel number, and one exporting parameter is EV_IS_SKIP_EMPLOYEE, which skips the employee during replication, if it is set. Of course the prerequisite is that you can decide by coding if an employee should be replicated to Travel.

Tip: Do not forget to copy IT_EMPLOYMENT_TIMESLICES to ET_PERIODS in the BAdI in case you do not want to skip the employee.

As far as I can see with several other BAdIs of the same enhancement spot you also can skip the employee, but it will lead to error messages in the protocol.

Best regards, Reinhard

Former Member
0 Kudos

Hi Reinhard,

Thanks for your response!

So,  BAdI OTM_EMPL_ORGANIZATION_FILTER will be triggered by “RBDMIDOC” program for message type “OTM_EMPL”? If yes, then we need to build the logic to check every employee group and skip employee with 2 or 3 employee group so they won’t get replicated in TOD.

Please confirm!

Regards,

Ferdie

Former Member
0 Kudos

My other question is, will the newly hire employees be part of the delta replication? Or we need to manually run OTM_TRIGGER_EMPL_REPL_CE program for new employees?

Regards,

Ferdie

sudmeier
Advisor
Advisor
0 Kudos

Hi Fergie,

yes that's the way you should do it.

Regards, Reinhard

sudmeier
Advisor
Advisor
0 Kudos

Hi Ferdie,

by the delta logic all employees are replicated for which change pointers were written and which are not sorted out by the BAdI above and do not have any further errors. My colleague Lorenzo Felloni confirmed that also newly created employees are replicated by the delta logic if they fit to the criteria above.

Best regards, Reinhard

Former Member
0 Kudos

hI Reinhard,

While i am running the report OTM_TRIGGER_EMPL_REPL_CE program to replicate active employee records from our ERP system to SAP Cloud for Travel and expenses, I could see the message ' No messages are created' (I did not implement the BADI' s of as now for employee, and Reporting line units). firstly, i must check whether the IDOC-XML messages are transferred to Target system. Please do needful

sudmeier
Advisor
Advisor
0 Kudos

Hi Ganesh,

this will not work out. You can test the selection of data without the technical communication data by using the test mode or the csv file download function, but you cannot create an IDOC without having valid test data. So please implememnt the BAdIs as required and/or create fitting test data, so that at least one employee / rlu can be replicated.

Best regards, Reinhard

Answers (0)