Skip to Content
avatar image
Former Member

junk characteristics in attached excel file using FM : 'SO_NEW_DOCUMENT_ATT_SEND_API1'

Hello All - Good day!

I have used the following FM 'SO_NEW_DOCUMENT_ATT_SEND_API1' to send email with attached excel file with mixed data in English and Hebrew letters

I have a problem with text in Hebrew.( in English – OK )

Hebrew appears as garbage in the excel attachment after it was emailed .

Please , your help : how I can fix it ?.

Helena .

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Mar 08, 2017 at 07:43 PM

    If the excel file is in CSV format, then prefer saving it using code page UTF16-LE (SAP code page 4103) with BOM, it's the only format correctly interpreted by all Excel versions. For doing so, you'll have to use for instance CL_BCS_CONVERT=>TXT_TO_SOLIX using code page 4103 and BOM true, then attach the CSV as "binary".

    Add comment
    10|10000 characters needed characters exceeded

  • Mar 09, 2017 at 01:15 AM

    Instead of SO_NEW_DOCUMENT_ATT_SEND_API1, you can use SO_DOCUMENT_SEND_API1. Refer to SAP note 190669.

    Add comment
    10|10000 characters needed characters exceeded