‎2007 May 02 12:25 PM
I made a report that takes some pdf and takes the OTF and send as email attachement .
I want to add now to the attachments and one another file (e.g. xx.xls) .
Can i do it ?
The FM is :
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
DOCUMENT_DATA = MAILDATA
PUT_IN_OUTBOX = ' '
TABLES
PACKING_LIST = MAILPACK
OBJECT_HEADER = MAILHEAD
CONTENTS_BIN = MAILBIN
CONTENTS_TXT = MAILTXT
RECEIVERS = MAILREC
EXCEPTIONS
TOO_MANY_RECEIVERS = 1
DOCUMENT_NOT_SENT = 2
OPERATION_NO_AUTHORIZATION = 4
OTHERS = 99.
‎2007 May 02 12:28 PM
Hi,
Check the following link:
http://www.sapdevelopment.co.uk/reporting/rep_spooltopdf.htm
Hope this helps.
Reward if helpful.
Regards,
Sipra
‎2007 May 02 12:38 PM
i don't mean that .I mean that i have already make my email and goes perfectly with the pdf.I want to put in that email one more attachment that is excel file .
Can i do it ?
‎2007 May 02 12:55 PM
Hi,
You can use the fun module
EXCEL_OLE_STANDARD_DAT for general report to download to excel.
Hope this resolves your query.
<b>Reward all the helpful answers.</b>
Regards
‎2007 May 02 12:59 PM
‎2007 May 02 1:06 PM
Hi
Have a look on the below link:
http://www.sapdevelopment.co.uk/reporting/rep_spooltopdf.htm
Regards,
Sreeram