Skip to Content
0

how to send HTML code in AlertConsumerJobV2 in SAP PO7.5

May 11 at 07:15 AM

47

avatar image
Former Member

In AlertConsumerJobV2 in SAP PO7.5 we have option to select email format to send alerts in Formatted email body . I want to try and incorporate HTML code in email template in template file so that when we receive email it will be in Formatted view. Kindly provide any useful inputs. Used below HTML code in template but its yielding raw output

code:

<html> <head> <style> table, th, td { border: 1px solid black; border-collapse: collapse; } </style> </head> <body> <p>Hi,</p> <p>This is an alert for failure of IDOCs in SAP PO for interface. Please find more details below.</p> <p> <table style="width:70%"> <tr> <td>Alert creation time:</td> <td>$timestamp{replace16}lt;/td> </tr> <tr> <td>scenario Name:</td> <td>$scenario_name{replace20}lt;/td> </tr> </table> </p> </body> </html>

Output:

output.png (9.2 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Priyanka Anagani May 11 at 08:44 AM
0

Hi Amresh,

You can format your Alert Email body in a text file, place it in server and use the "AlertconsumerJobV2" parameter " EmailTemplateFile" to specify the template file path.

If you want to send HTML emails, then set the parameter "EncodeHtml" to false.

Refer SAP Note# 2088606 for more details and update the required patch.

--Priyanka

Show 1 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Hi Priyanka i have already done that and tested it. but what i require is in template text file can we send html code which will be interpreted in formatted way in email body.

0