SAP Knowledge Base Article - Public

2183487 - How to Handle Error Message: Expense Arrangement Cannot be Deleted

Symptom

The key user/system administrator is trying to replicate an employee and the error message below is showing:

 "Expense arrangement cannot be deleted: referencing expense reports exist"

 

Reproducing the Issue

  1. Go to Cockpit WoC
  2. Go to Failed/Not Started Employees link under Master Data Replication
  3. Check Failed/Not Started list
  4. Choose the employee that you want to replicate and click in Edit button
  5. Click in Replicate button

or

  1. Go to Master Data Replication WoC
  2. Go to Employees view under Import
  3. Check Failed/Not Started list
  4. Choose the employee that you want to replicate and click in Edit button
  5. Click in Replicate button

The error message "Expense arrangement cannot be deleted: referencing expense reports exist" is shown after clicking on replicate.

Cause

The key user/system administrator is replicating the employee with different information from the last replication request.

The problem is related to the data that goes in the last tab of the replication request at Expense Reimbursement Groups.

Which the same reflects also in the tabs Organizational Assignment and Employment of the replication request.

It would be necessary check the last successful replication and the current replication request that it is failing. Check the number of lines or validity in the each tab Organizational Assignment, Employment and Expense Reimbursement Groups.

Usually in the new (failed) replication request, there will be less lines or difference in the previous lines that were replicated in the past. This is not a problem when no Expense Report is created to this employee, but where there are Expense Reports created (independent of the status) the new replication request is trying to delete one of the lines which are nodes in the backend. These nodes are linked to the Expense Reports previous created. It is not possible to change this.

Resolution

It is required that the key user/system administrator replicate the employee again with the same layout as it was replicated before. Assignments in the past cannot be changed, only the data in the future can be changed.

The only exception that it is possible to change this assignment, it is when there are only Expenses Reports with the status Not Submitted (which were never posted – Expenses Reports posted should not be deleted).

The expenses line items need to be removed (e.g credit card expenses) and the Expenses Reports need to be deleted in order to the replication request be able to go through.

Keywords

KBA , LOD-TEM-ICD , Travel Credit Card Integration , How To

Product

SAP Cloud for Travel and Expense all versions