Application Development and Automation 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: 
Read only

report

Former Member
0 Likes
645

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,

5 REPLIES 5
Read only

Former Member
0 Likes
616

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

Read only

aakash_neelaperumal2
Active Participant
0 Likes
616

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

Read only

Former Member
0 Likes
616

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

Read only

Former Member
0 Likes
616

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>

Read only

Former Member
0 Likes
616