SAP Knowledge Base Article - Public

3089571 - How to create HTML email templates, Document names and email subjects based on the respective XML Root


Your created a document name logic or an output e-mail template with a placeholder, however it does not work as expected.


SAP Business ByDesign

Reproducing the Issue

  1. Go to the Application and user Management work center.
  2. Select the view Form template Maintenance.
  3. Search and find the required form template.
  4. Click on actions and chose "Maintain Document Name" or "Maintain E-mail Template" and enter your text and html placeholder.
  5. After saving the template, you notice that the placeholders are still appearing in the document name/e-mail template.


For output templates, placeholders need to be set up with the entire path of the field required.


Taking as an example the below document name with placeholders for a Customer Invoice document:


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:


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

3090471 - Placeholder in Email Subject is Showing the Invoice ID Twice


html e-mail template, Change document name, E-mail Subject, Html , KBA , AP-RC-OUT , Output Management , How To


SAP Business ByDesign all versions