Application Development and Automation 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: 
Read only

Error when sending excel as email attachment

Former Member
0 Likes
691

Hi All,

I am sending excel document as email attachment through F.M. SO_DOCUMENT_SEND_API1. I am getting the attachment but when i open it, it is giving error "The file is not in recognizable format....."

Please let me know how can i solve this problem.

Regards,

Saba

Hi All,

I am sending excel document as email attachment through F.M. SO_DOCUMENT_SEND_API1. I am getting the attachment but when i open it, it is giving error "The file is not in recognizable format....."

Please let me know how can i solve this problem.

Regards,

Saba

4 REPLIES 4
Read only

Former Member
0 Likes
652

Hi,

Try this

[https://forums.sdn.sap.com/click.jspa?searchID=16885359&messageID=6180006]

Regards,

Surinder

Read only

0 Likes
652

Hi Surinder,

Thanks for the link but the problem mentioned in the above link is different from the one I am facing.

I am getting the complete data but the only thing is whnever i open that file it gives the msg "The file is not in recognizable format..." and whn i click 'OK' I could see the data in it.

Could u pls tell how can we get rid of that error?

Regards,

Saba

Read only

Former Member
0 Likes
652

Hi Saba,

Check this link I think will surely help.

[http://www.sap-img.com/abap/sending-email-with-attachment.htm]

Regards,

Amit.

Read only

0 Likes
652

Hi Amit,

The file is already created just that I get error whenever i open the excel file.

How to get rid of that msg...any idea???

Regards,

Saba