Skip to Content
avatar image
Former Member

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

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)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • May 11 at 08:44 AM

    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

    Add comment
    10|10000 characters needed 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.