Symptom
Your created a document name logic or an output e-mail template with a placeholder, however it does not work as expected.
Environment
SAP Business ByDesign
Reproducing the Issue
- Go to the Application and user Management work center.
- Select the view Form template Maintenance.
- Search and find the required form template.
- Click on actions and chose "Maintain Document Name" or "Maintain E-mail Template" and enter your text and html placeholder.
- After saving the template, you notice that the placeholders are still appearing in the document name/e-mail template.
Cause
For output templates, placeholders need to be set up with the entire path of the field required.
Resolution
Taking as an example the below document name with placeholders for a Customer Invoice document:
TEST_[TaxationTerms-SellerCountryCode]_[ProductRecipientParty-FormAddress-CountryCode]
The placeholders used in the template do not contain the entire path to the desired field, so they will not be replaced by the respective information of the document.
The correct path in the above example would be:
TEST_[CustomerInvoice-TaxationTerms-SellerCountryCode]_[CustomerInvoice-ProductRecipientParty-FormAddress-CountryCode]
Its essential that the placeholder path should contain the complete path, starting from the root element of the document. This path is based off the XML file used to generate the final document.
This XML can be accessed for some documents by navigating to the Output History tab, then selecting an output entry and clicking on "View XML Data".
The same logic is valid for html e-mail templates and also or e-mail subject modifications shown under Actions.
See Also
Keywords
html e-mail template, Change document name, E-mail Subject, Html , KBA , AP-RC-OUT , Output Management , How To