02-02-2012 6:50 AM
I write a program to sent Email with attachment .
It's work fine on pc but when my Iphone receive the Email ,the attachment(excel .XLS)can't open ,the message is "Unable to Read Document The file format is invalid"
FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
i_objpack-doc_type = 'XLS'.
i_objpack-obj_name = 'text'.
CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
EXPORTING
text = str
mimetype = '"text/html; charset=gb2312"'
I have tried CVS、TXT、HTM,gb2312/utf-8 ,the number and English alphabet is right,the Chinese character can't be read on Iphone.
02-02-2012 8:10 PM
Hi,
Iphone will not allow you to read .xls file. It doesn't supports.
02-03-2012 4:06 AM
Hello,
Iphone doesnt not support xls files.
You will have to check which files Iphone supports and accordingly use the same.
Regards,
Abhishek
02-09-2012 4:00 AM
Hi Abhishek and Parupelly
Thanks for your replys.
I'm afraid I have to tell you that I'm quite sure Iphone could open the Excel which was Creat on PC by Microsoft office ,it aslo could open the Excel which was download from SAP report on PC . But It con't open the Excel which was Creat by SAP program by the FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'.
Evan
02-10-2012 4:26 AM
Hello,
are you able to open the file from your machine.
If so, the internal conversion done by the FM 'SO_NEW_DOCUMENT_ATT_SEND_API1' may not be supported.
Regards,
Abhishek