SAP Knowledge Base Article - Public

2044247 - Error Message "Template variant cannot be deleted; it has been used to output a document"

Symptom

When you try to delete the Dunning Letter template, system throws below error message:

Template variant cannot be deleted; it has been used to output a document

Reproducing the Issue

  1. Go to the Application and User Management work center.
  2. Go to Form Template Maintenance view.
  3. Search for the Dunning Letter group .
  4. Select the Dunning Letter template and select Delete button

Cause

The reason that you are not able to delete the template is that this template was already used in the Output of Dunning Letters. This can be verified as follows,

Step 1:

1. Go to Application and User Management work center
2. Select Form template selection.
3. Search for Dunning letter
4. Here the template is used for Dunning Level X

Step 2:

1. Go to Receivables work center
2. Select Dunning view
3. Select All Dunning
4. Preview a Dunning which has Highest Dunning Level as X.
5. Here the Dunning Letter X is being used for output.

Resolution

Hence, it is not possible to delete the Template once it is used in output document.

Note: This behavior is same for all the Form Templates.

Keywords

KBA , AP-CI , Customer Invoice Processing , How To

Product

SAP BUSINESS BYDESIGN 1705 ; SAP BUSINESS BYDESIGN 1708 ; SAP Business ByDesign 1711