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: 

Email office 2007 document (.docx)

Former Member
0 Kudos

Hello,

I have written a program than sends a mail with a number of attachments.

I use the FM SO_NEW_DOCUMENT_ATT_SEND_API1 for this.

But when it's an Office 2007 document, with docx as extension, the document will give errors.

Does anybody has had this problem before?

Thanks,

Andy.

3 REPLIES 3

Former Member
0 Kudos

I have tried the same thing using the CL_BCS class, but the problem remains.

I think the issue is that when you have to declare the attachment type, you only have 3 characters.

I'm on a ecc 6.0 system btw

Former Member
0 Kudos

Hi Andy,

We also face the same problem.

Please let us know if you got a solution.

Thanks,

Chandu

0 Kudos

Use RAW, that's all. Note that it can be any format (your issue is not related to .docx). Check this wiki: [http://wiki.sdn.sap.com/wiki/display/Snippets/SendingmailwithattachmentusingObjectOriented+Approach]