Skip to Content
avatar image
Former Member

SAP Workflow : Unexpected special character '-->' shown in email body in SOST

Hi All, We have a requirement to SEND a EMAIL containing a HTML TABLE from Workflow Task Description (Y ). So in one of preceding Workflow TASK ( X )we are preparing HTML string in element called 'HTML' and passing the element to the final TASK ( Y ). Later in scripting area of TASK (Y) we are evaluating the value of the element 'HTML' as below,

Result : we are able to successfully render a HTML table in email as below ( As per workflow log)

Problem is : When this mail reaches to SOST or to receiver , An unexpected special character '-->' shown in mail body ( only when description lenght is > 20 chars ) as below.

Tried with all possibilities to avoid the special character ( using Div tag, p tag , table width setting , by following html coding guidelines ). But no success.

Please let me know if any of you have solution for it.

1.jpg (116.5 kB)
2.jpg (146.0 kB)
3.jpg (131.8 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Oct 26, 2017 at 01:55 PM

    Since you say “scripting area”, I assume you’re using a standard sendmail task and inserting your html.

    As you are already doing the rendering in code, I would suggest ditching the sapscript-based mail step altogether and just sending the mail directly from code in the same step using CL_BCS* classes (plenty info/examples on this site). Why put a race car on a donkey cart?

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 27, 2017 at 09:01 PM

    What is the length of lines of HTML ? it must be 132 maximum

    What is its exact content ? It must have characters < and & escaped with <(> <)> . Moreover, be careful to not break the HTML tags at the 132nd character because a space is added between each line and < followed by space is an invalid tag.

    Add comment
    10|10000 characters needed characters exceeded