Symptom
You notice that when the Pro-Forma Invoice option is selected for a Sales document in the system, the error "Form template code mandatory" is displayed in the UI.
Environment
Reproducing the Issue
Note: For this example we will use the Sales Quote document.
- Go to the New Business Work Center
- Go to the Sales Quote View
- Filter for all Quotes
- Mark the Sales Quote ABC (where ABC represents the Sales Quote ID)
- Select Pro-Forma Invoice button
The error "Form template code mandatory" is displayed in the Ui.
Cause
For the determination of a Form Template in Sales Document, the system uses the following logic:
1. A Form Template Rule must maintained for the document. (i.e Customer Invoice)
In case a Form Template Rule is not maintained for a document, the following steps are required to be performed:
- Go to the Application and User Management Work Center
- Go to the Form Template Selection View
- In the Show Rules For Select the desired document
- Select New Button
- Select the Form template to be used for the document
- Fill the required parameters Settings
- Select Save and Close
2. The Template Country must be the same as the Seller Country in document.
The Template country can be checked by following the below steps:
- Go to the Application and User Management Work Center
- Go to the Form Template Maintenance View
- Filter for Active Forms
- Locate the required Form
In the Country/Region column is possible to see the location for which the Form template shall be used.
- Go to the New Business Work Center
- Go to the Sales Quote View
- Filter for All Quotes
- in the search field, search for the Sales Quote ABC
- Navigate to the Involved Parties
- Mark the Seller Party Role
The Country displayed should be the same as the one maintained for the Form Template
3. The Template Language must be the same as Account Language maintained in the document.
The Template Language can be checked by following the below steps:
- Go to the Application and User Management Work Center
- Go to the Form Template Maintenance View
- Filter for Active Forms
- Locate the required Form
In the Language column is possible to see the location for which the Form template shall be used.
- Go to the New Business Work Center
- Go to the Sales Quote View
- Filter for All Quotes
- in the search field, search for the Sales Quote ABC
- Navigate to the Involved Parties
- Double click the Account Party Role Name
- Select View All button
- Navigate to General tab
The Language displayed should be the same as the one maintained for the Form Template.
Note: This three condition are applied for all Form template determinations in the system.
The error "Form template code mandatory" occurs because the system tries to matches all the 3 condition to determine the template for the Sales document, however is not possible and hence the error message is displayed in the UI.
Resolution
This is the standard system behavior.
Keywords
sales document, sales quote, form template code mandatory, form template, template, determination, pro forma invoice , KBA , SRD-CRM-INV , Customer Invoicing , How To