‎2006 Nov 24 10:05 AM
the report is supposed to copy each day the lists of several interfaces from the spool into a file and to send this file as anattachment by email,
how to write the code.. for this specification,
‎2006 Nov 24 10:11 AM
first ask for a better specification
do you want to print the spool list or the spooljobs ?
what filetype does the file need to be ??
etc etc
‎2006 Nov 24 10:11 AM
first convert the spool to PDF file
CONVERT_ABAPSPOOLJOB_2_PDF convert abap spool output to PDF
and use this function mdule
SO_NEW_DOCUMENT_ATT_SEND_API1
or use this
RS_SEND_MAIL_FOR_SPOOLLIST
Read document for better understanding
‎2006 Nov 24 10:15 AM
USE fms'
CONVERT_ABAPSPOOLJOB_2_PDF',SX_OBJECT_CONVERT_OTF_PDF or
Convert_OTF. convent to PDF, then use SO_NEW_DOCUMENT_SEND_API1 or SO_NEW_DOCUMENT_ATT_SEND_API1' to send the email
‎2006 Nov 24 10:15 AM
Hi Suresh,
Use the function module RSPO_DISPLAY_ABAP_SPOOLJOB to get the required data from the spool.
Refer the following link to send the file as an attachment :
sending mail with attachment
http://www.sap-img.com/abap/sending-email-with-attachment.htm
sending mail with attachment report in background
http://www.sap-img.com/abap/sending-mail-with-attachment-report-in-background.htm
<b>Reward points if it helps.</b>
‎2006 Nov 24 10:24 AM