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.
Showing results for 
Search instead for 
Did you mean: 

Send 3D Drawing along with Email

Former Member
0 Kudos

My requirement is to send Files[3D drawings DOC files, XLS files etc any format] along with RFQ[SAP script] to external vendor.

SAP sends RFQ SAP Script output as PDF attachment to external Email and we are getting that Email and PDF attachment. But how we can attach Other mentioned files along with Email.

All the external files are on application server.

Message was edited by: Amandeep Singh


Active Contributor
0 Kudos


here is the example for xls...



0 Kudos

Thanks for the code. but by using FM SO_DOCUMENT_SEND_API1 Can we send 3D drawing files as attachement?

0 Kudos


i think it is not possible with this FM, may be you need to use BCS classes,to send..

using that FM you can send the Word document as attachment.

you can convert list to RTF(using LIST_CONVERT_TO_RTF) and send it using this FM SO_DOCUMENT_SEND_API1.



Message was edited by: Vijay Babu Dudla

0 Kudos

We are on SAP verison 4.6C and BCS classes are not avaiable in the system.

0 Kudos

If the files reside in SAP DMS you can use the bapi BAPI_DOCUMENT_CHECKOUTVIEW2 to extract the data.

The Sapcript or smartform component would need to be passed as otf data and converted to pdf.

The entire packeage could be bound as a series of attachments using fm SO_DOCUMENT_SEND_API1.

The bapi and fm are well documented in online help and throughout the forum.

If the files are sitting on a server somewhere, I would be inclined to look at java or c# solution. Write the Sapcsript or Smartform to the file system using one of the pdf fm's and use a java app or c# app to build and send the email.

0 Kudos

My files are attached with the DMS. But how to use this FM for External file.

Can you please send me sample program where on the selection screen have two parameters. Reciever Email address and File path. And by using this FM sends the File as attachment to the email entered on the selection screen.