Skip to Content
author's profile photo Former Member
Former Member

Inbound mail, junk values in form of Chinese alphabets due to hyperlinks in the email body

My requirement is to read the email body of a SAP inbound mail and to store it into text format in an internal table.

I am using interface IF_INBOUND_EXIT_BCS, to process the inbound mail. I have used method cl_crm_email_utility_base=>convert_html_to_plain_text to convert html string (email body) to plain text string and then function module 'SCMS_STRING_TO_FTEXT' to convert string into an internal table.

The issue is that the signature of the sender contains hyperlinks, which are not getting converted to plain text properly, and as a result I am getting junk values (in the form of chinese alphabets) in the internal table.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Jan 18, 2016 at 10:52 AM

    Could you doublec-check your assertion

    contains hyperlinks, which are not getting converted to plain text properly

    as the method should just remove the html tags



    CONVERT_HTML_TO_PLAIN_TEXT
    |
    |--5 Paramètre import
    | |
    | |-----IV_HTML SOME" target="_blank">WWW.SOMEWHERE.COM/">SOME TEXT
    |
    |--5 Paramètre export
    |
    |-----EV_PLAIN_TEXT SOME TEXT

    Regards,

    Raymond

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.