Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

abap sent Email attachmetExcel can open/read on PC but can't read on Iphone

Former Member
0 Kudos

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.

4 REPLIES 4

Former Member
0 Kudos

Hi,

Iphone will not allow you to read .xls file. It doesn't supports.

Former Member
0 Kudos

Hello,

Iphone doesnt not support xls files.

You will have to check which files Iphone supports and accordingly use the same.

Regards,

Abhishek

0 Kudos

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

0 Kudos

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