SAP Knowledge Base Article - Public

2982572 - Error: 'Form template is mandatory' or 'There's no Template Code in the Predefined Output Determination Rule'

Symptom

Once or both of the following error occurs when triggering the Output of any Sales or Purchase Document:

  • "There's no template code in the predefined output determination rule"
  • "Form template is mandatory"

For example:

While accepting purchase order acknowledgment, ordering or previewing a purchase order, or while creating purchase order through migration template, one or both of below errors occur:

  • "There's no template code in the predefined output determination rule"
  • "Form template is mandatory"

or

When you try to release a Customer Invoice, the system displays an error: There's no template code in the predefined output determination rule.

Environment

SAP Business ByDesign

Reproducing the Issue

The error might be seen in different views and after different actions, e.g. after clicking on Preview or while ordering or after migrating the purchasing orders.

Examples:

  1. Go to Purchase Orders work center
  2. Go to Purchase Orders view
  3. Select the desired purchase order
  4. Click on Deviation in Acknowledgment
  5. Select the latest deviation and click on Change PO Acknowledgment
  6. Change e.g. status of the item to Accepted
  7. Click on Accept Deviation or Save
  8. Get above error

 or

  1. Go to the Purchase Requests and Orders work center
  2. Go to the Purchase Orders view
  3. Search for the affected purchase order
  4. Edit it and click on Check
  5. Get above error

or

  1. Go to the Purchase Requests and Orders work center
  2. Go to the Purchase Orders view
  3. Search for the affected purchase order
  4. Select Preview
  5. Get above error

or

  1. Go to the Customer Invoicing work center.
  2. Go to the Invoice Documents view.
  3. Open Customer Invoice ABC (ABC Represents the Customer Invoice ID).
  4. Click on the Release button.

You see the error: There's no template code in the predefined output determination rule

Cause

There is no determination rule maintained for the purchase order, or not for the relevant status of the purchase order - meaning the rule for changed purchase orders or interactive changed purchase orders or created purchase orders or canceled purchase orders is missing.

Example:  While accepting deviations in acknowledgments, system tries to create changed purchase order output form. But you have not a maintained default rule for changed output form. Thus, you get the error.

Resolution

Steps to maintain form template selection rule to avoid this error in future.

  1. Go to Application and User Management work center
  2. Go to Form Template selection
  3. Search for the respective document e.g. Created Purchase Order.
  4. Then enter a rule for desired combination of company, supplier, purchasing unit, interactive process with required form template code, or enter fall back rule at the end with company, supplier, purchasing unit, interactive process as * with required form template code.

We recommend to maintain default rule for all other form templates like changed purchase order, canceled purchase order, customer invoice etc.

Once above steps are done, create new document and verify solution.

See Also

KBAs:

  • 2769117 - In Purchase Order Out put history the Template Registered Products is appearing
  • 2949502 - Error Template Code XXXX is Not Valid in the Output History
  • 2845516 - No Template Code in the Predefined Output Determination Rule Error on Customer Invoice

Keywords

There's no template code in the predefined output determination rule, Unable to accept deviation in acknowledgment, form, mandatory, upload, bydesign, formvorlagencode ist obligatorisch; Invoice; Release; , KBA , SRD-SRM-PRO , Purchase Requests and Orders , Problem

Product

SAP Business ByDesign all versions