Skip to Content
Technical Articles
Author's profile photo Vinita Kasliwal

S/4 Hana modify email template

Updating email template in S/4

The requirement from the client was to update some of the email changes in the system

I would be summarizing the end-to-end path I followed and how I could identify the email template. Making changes and moving my changes over to the production

The beauty of S4 is all of this can be done by one consultant or the end-user themselves with just a little training no need to have Basis, Functional and technical part of your team. This could happen as SAP did some massive changes with the New Fiori based cloud environment

  1. There are no Tcode, Just type what you want.
  2. No Debugging just look around and find the details
  3. No code changes just a simple text-based editor
  4. No need to ask the basis team to release and import TR it can just be done by following simple export and import rules

So overall makes it easy but I still took time to get familiar with the new way of doing things more easily in the cloud, I miss the old Tcode based approach ☹

So I would cover the below section in this blog.

  1. Find the template to update
  2. Updating the email content, adding system fields
  3. Steps to import and export the changes from the Dev to production system

Find the email template to update

Open the “ Maintain email template “ app which would list down all the predelivered and custom templates as seen below

Modify Email template in S/4

Check some options available as below

  1. Click on Change details to update the name of the template etc.

Modify Email template in S/4

  1. You could also copy the template, Create a new one or delete with the buttons showing up at the top of the table

  1. Open the template by Selecting the language and clicking on it

Modify Email template in S/4

Updating the email content and adding System fields

In the next screen you could add your text in the Body HTML tag section with the right HTML tags as you see below. Note there is also an option for adding Body Plan text as seen with the yellow box but then it does not have the proper formatting. If you are looking for Hyperlinks, Bold, line breaks and para breaks to be shown using Body HTML

Arrow indicates how you could add system fields

I am adding a copy of how we used the organization fields in the email

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">

<html>
<head>
<meta name="generator" content="HTML Tidy for SAP R/3 (vers 25 March 2009), see www.w3.org">
<title></title>
</head>
<body>
<p>Dear Sir or Madam,</p>
<p>Please find the billing document {{BillingDocument}} posted on {{BillingDocumentDate}} for the amount {{TotalNetAmount}} {{TransactionCurrency}} attached.</p>
<p>If you have any questions, please do not hesitate to contact us.</p>Best Regards,
<p>{{_SalesOrganization._CompanyCode.CompanyCodeName}}<br>
{{_SalesOrganization._CompanyCode._Address.StreetPrefixName}}
{{_SalesOrganization._CompanyCode._Address.AdditionalStreetPrefixName}}
{{_SalesOrganization._CompanyCode._Address.StreetName}}
{{_SalesOrganization._CompanyCode._Address.HouseNumber}}
{{_SalesOrganization._CompanyCode._Address.StreetSuffixName}}<br>
{{_SalesOrganization._CompanyCode._Address.PostalCode}}
{{_SalesOrganization._CompanyCode._Address.CityName}}<br>
</p>
</body>
</html>

Modify Email template in S/4

In order to add system, fields click on the “ Show data fields” option and a dialog box open up with all available fields

There is no search on this dialog box so after scrolling for 5 minutes I came down to S where I see all my sales org specific fields which I wanted to use which I copied from the list and then added to the Body HTML and save the changes

Modify Email template in S/4

Modify Email template in S/4

This completes the changes to be done for the email

Moving changes to production

Now go to export software collection app and add items

Modify Email template in S/4

To add items look for Form Template and you would see the email template you modified listed below  and once added click on Import to send the changes to production

Modify Email template in S/4

 

On the production, side click on Import collection so the changes are reflected in the production system.

Read the  original and full article published on the link here

 

 

 

Assigned Tags

      4 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Andrew Saunders
      Andrew Saunders

      Hi Vinita,

      Thanks for this. The images don't seem to be appearing. Also, is this applicable for SAP S/4HANA Cloud as well?

       

      Thanks,

      Author's profile photo Vinita Kasliwal
      Vinita Kasliwal
      Blog Post Author

      This is applicable for S4 Hana cloud as well and I do see the images not sure what image is not visible to you?

      Author's profile photo Prasenjit Bist
      Prasenjit Bist

      Thank you, short crisp to the point and no dramatization.

       

       

      Author's profile photo Ankita Madaan
      Ankita Madaan

      Is there any way to change the data field format? I need to change the date format for a credit memo approval template.