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 but 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 ie. for the Form template customer invoice.
  4. Click on actions and chose Maintain document name and enter your text and html placeholder.
  5. You expect the document name ie. to be shown as: TEST_Kundenrechnung_US_CA_[20210820]_VHFY-132-2021_VHF_VHF Corp 1.

However the output history shows the name as:TEST_Kundenrechnung_[CustomerInvoice-TaxationTerms-SellerCountryCode]_[CustomerInvoice-ProductRecipientParty-FormAddress-CountryCode]_[20210820]_[ID]_[BuyerParty-InternalID]_[BuyerParty-FormattedName]


You maintained the placeholder wrong.


You maintained the document name like this:


The correct path would be:


Its essential that the placeholder path should contain the entire path, starting from the root element.

As a hint use an XML from an existing document which you find in the output History for all documents by clicking on View XML Data.

See Also

The same logic is valid for html email templates and also or email subject modifications also shown under Actions.


html email template, Change document name, Email Subject, Html , KBA , AP-RC-OUT , Output Management , How To


SAP Business ByDesign all versions