03-08-2017 12:29 PM
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 .
03-08-2017 7: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".
03-09-2017 1:15 AM
Instead of SO_NEW_DOCUMENT_ATT_SEND_API1, you can use SO_DOCUMENT_SEND_API1. Refer to SAP note 190669.