SAP Knowledge Base Article - Public

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


While accepting purchase order acknowledgment you may see below error

"There's no template code in the predefined output determination rule

Form template is mandatory"


When ordering or previewing a Purchase Order or previewing interactive changed purchase orders or while creation Purchase order through migration template you will see below error

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


SAP Business ByDesign

Reproducing the Issue

  1. Go to Purchase orders  work center
  2. Go to purchase orders
  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 status of the item to Accepted
  7. Click on Accept deviation or save
  8. You will get above error in new screen


  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

The error is displayed after clicking on Preview or while ordering

 or after migrating the purchasing orders.


There is no determination rule maintained for changed purchase orders or interactive changed purchase orders or Created purchase order or canceling purchase order

i.e While accepting deviations in acknowledgments system tries to create change purchase order output form ,since you have not maintained default rule for change output form thus you get the error.


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

  1. Go to application user management work center
  2. Go to Form template selection
  3. Search for 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.

 also we recommend you to maintain default rule for all other form templates like changed purchase order, canceled purchase order etc.

Once you follow above steps , create new Purchase order and check.

See Also

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


There's no template code in the predefined output determination rule, Unable to accept deviation in acknowledgment , KBA , SRD-SRM-PRO , Purchase Requests and Orders , Problem


SAP Business ByDesign all versions