02-17-2006 6:33 PM
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
02-17-2006 6:45 PM
hi,
here is the example for xls...
http://www.sapdevelopment.co.uk/reporting/email/attach_xls.htm
regards
vijay
02-17-2006 7:04 PM
Thanks for the code. but by using FM SO_DOCUMENT_SEND_API1 Can we send 3D drawing files as attachement?
02-17-2006 7:39 PM
Hi,
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.
Regards
vijay
Message was edited by: Vijay Babu Dudla
02-17-2006 8:16 PM
We are on SAP verison 4.6C and BCS classes are not avaiable in the system.
02-20-2006 1:04 AM
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.
02-21-2006 7:19 PM
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.