SAP Knowledge Base Article - Public

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

Symptom

Your created a document name logic but it does not work as expected.

Environment

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]

Cause

You maintained the placeholder wrong.

Resolution

You maintained the document name like this:

TEST_Kundenrechnung_[TaxationTerms-SellerCountryCode]_[ProductRecipientParty-FormAddress-CountryCode]_[Date]_[ID]_[BuyerParty-InternalID]_[BuyerParty-FormattedName]

The correct path would be:

TEST_Kundenrechnung_[CustomerInvoice-TaxationTerms-SellerCountryCode]_[CustomerInvoice-ProductRecipientParty-FormAddress-CountryCode]_[Date]_[ID]_[BuyerParty-InternalID]_[BuyerParty-FormattedName]

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.

Keywords

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

Product

SAP Business ByDesign all versions