SM36 email spool

Hello,
In SM36, Is it possible to send email (via spool list recipient) only if the report has output?
Best Regards,
Amir Dror

yes.
use this FM,
RS_SEND_MAIL_FOR_SPOOLLIST

Similar Messages

  • Email multiple spools from background job - SM36 using Spool List recipient

    I create a background job using Spool List Recipient to email me the reports. The program that I scheduled to run creates 2 spools. When the spools are sent via email, only the last spool is sent.
    Please advise on how I can get the 2 spools sent via email.

    i would not use the Spool List recipient from Job and use the function RSPO_SPOOLJOB_TO_OFFICE in your Program instead.
    tell me if it helps.
    Regards,
    Laurent

  • Bacth job sending email : spool list recipient field

    Hi,
    When creating a batch job via SM36, it is possible to send the results via email (fill "spool list recipient").
    Is there a table where i can find the batch jobs which have the "spool list recipient" field filled?
    Thanks,
    P.

    Pete,
    In my system, I see only 2 values for this field. 'RECIPIENT' and BLANK. Please check if it the same with you, in case of more than these values, try to build your logic on ( not equal to RECIPIENT rather than non-blank).
    Even if these 2 values only, a job (with the same name) can be executed once with the spool list recipient ON and another without spool recipient. So, be careful in your checking that the record you are checking with the non-blank value of  RECOBJTYPE is the SAME execution as in SM37. Use fields SDLSTRTDT, SDLSTRTTM in table TBTCO for it.
    Hope you get my point.
    Regards,
    Diwakar

  • Email - Spool List

    Hi Experts - We have a report scheduled in the bacground. The spool file generated will be automatically emailed to a group using the standard PDF via Email output functionality(instead of sending it to a physical printer).
    It works fine, the PDF attachment looks great excpet for the fact that the Subject line and body of the email are generated automatically by the sytsem.
    Subject: PRD9226-1:<Report Title>
    Body: The Mail Attachment Contains the Print File Created by User XXXX, with Number 9226-1 from SAP System PRD . To Print the Data, Open the Mail Attachment with a Suitable Program and Print the Document.
    Is there a way to Change this subject and content? Any input will be greatly appreciated.
    Thanks and Regards.
    Sam.

    Hi Suhas - I am using the standard output device configuraton in SPAD. This is done by creating a output device in SPAD and specifying the Host Spool access method as E-Mail to Receiver/Owner. So instead of printing to a device the list is emailed as a PDF attachement.
    Not using any special coding for this.
    Thanks.
    Sam.

  • Email SPOOL as HTML ..

    Hi !!
       We are planning to schedule certain reports in background and then want to read its spool and convert those spool to HTML and send it as aattachment to email .
    I check the forum and the library there are example of submitting report to abap memorya nd then creating html from that memory and email it . But for this i will end up having two programs one the original report program and another program to submit it .I want to avoid taht situation.
    Please mail back with code sasmples .

    check these threads
    print spool to html
    Re: how to send the spool content as a body to email id (ans by max)

  • PDF-Email- spool

    i have a spool generated whicn needs to be converted into PDF file format and Excel file format. Both the files PDF and Excel having the data from spool should be sent as attachment in an email. Is ther any function modules which can handle this scenario ?

    Hi,
    Check this blog where he has explained clrealy about sending email..
    /people/thomas.jung3/blog/2004/09/08/sending-e-mail-from-abap--version-610-and-higher--bcs-interface
    seshu.

  • Email Spool Very Slow

    Just migrated my site from CF 4.5 to CFMX7 on a new server.
    Wow! MX7 fills the spool with our 7K+ emails in a flash! Used
    to take 20 minutes on CF 4.5! But MX7 is very slow on the outbound
    side!
    CF4.5 used to send 100 emails per spool cycle to the email
    server. CFMX7 is only sending 20 -30. I have set my spool interval
    to 5 seconds at this point. I cannot find any other pertinent
    settings in CF admin.
    I am using an internal mail server program called Ability
    Mail Server. I upgraded to the latest version on the new server,
    and it has always performed well in the past. It appears to just be
    loafing along.
    Any help?
    TIA
    Mike

    What he said ^. It's not very slow compared to my old WinMo phone which didn't refresh for days at a time even though it was set to 15-30 min increments.
    No doubt you can get an app for email though (there is already one for Exchange servers).

  • Email Spool

    Hello Experts,
    how to email output of the Spool into the PDF format.
    Regards!!

    Hi,
    Before posting search in SCN so that we can avoid the duplicate threads
    Refer to this link:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8cd6adbb-0301-0010-39ba-938c601d5db9
    solves your problem.
    Thanks!!

  • Email Spools and than Kicks me out when delete or email turn off attempt.

    After attempting to create an exchange account, my iphone is giving me trouble. I want to delete the account, but it will spool or cycle if I try to turn off the email, fade to black, and then return me to the home page. I have tried different modes and it still will not even allow me to access the email account to edit. Any suggestions?

    Hello suntraveler58,
    It sounds like there are 2 issues here. First your iPad is minimizing apps that you open, and also an error message when you launch the Mail app that it cannot connect to a server. For the first issue, I suggest starting by closing all the apps that are running on the phone:
    iOS: Force an app to close
    http://support.apple.com/kb/ht5137
    Double-click the Home button.
    Swipe left or right until you have located the app you wish to close.
    Swipe the app up to close it.
    When you have done that restart the phone and test the apps again:
    iOS: Turning off and on (restarting) and resetting
    http://support.apple.com/kb/ht1430
    If the issue persists, I would next backup your device to iTunes, and restore it:
    iOS: How to back up and restore your content
    http://support.apple.com/kb/HT1766
    For the Mail error message, I recommend these troubleshooting steps from the article:
    iOS: Troubleshooting Mail
    http://support.apple.com/kb/ts3899
    Try these basic troubleshooting steps first
    Tap Safari and attempt to load a webpage (try any webpage). If you can load a webpage, then your device has Internet access. If you are unable to load a webpage, follow these troubleshooting steps.Try to use an alternate Internet connection if available:
    Try a different Wi-Fi connection
    If your iOS device has an active cellular data plan, tap Settings > Wi-Fi and turn off Wi-Fi.
    If the affected email account is provided by your Internet provider, see if your issue is resolved while connected to your home Wi-Fi network.*
    Log in to your email provider's website to ensure that the account is active and the password is correct.
    Restart your iOS device.
    Delete the affected email account from your device.
    Tap Settings > Mail, Contacts, Calendars.
    Choose the affected email account, then tap Delete Account.
    Add your account again.
    Thank you for using Apple Support Communities.
    Regards,
    Sterling

  • CF8 Email Spooling Problem

    Is anyone having the issue where email just decides to stop
    sending from
    coldfusion? It will process just fine for months at a time,
    then just stop.
    The only way I have found to make email start processing
    again is to reboot the
    server.
    Does anyone know if there is a fix?
    Here are some other cases:
    http://groups.google.com/group/macromedia.coldfusion.server_administration/browse_thread/t hread/33edf401eb8a6f11/a4eb4efb1190589e
    Thanks.
    Ron

    Ronsweb wrote:
    Is anyone having the issue where email just decides to stop
    sending from
    coldfusion? It will process just fine for months at a time,
    then just stop.
    The only way I have found to make email start processing
    again is to reboot the
    server.
    Could be the result of this
    problem
    with Coldfusion's in-built mail spool lock, discussed in Steven
    Erat's blog. Note Tom Jordahl's comment towards the end.

  • EMail + spool printing

    Hi Experts..
    I have a requirement where i am using exit & BTE for mail sending thru Dunning, f.27 & APP..
    Though the mail is goin perfectly but I need to generate spools alongside mail generation too..
    But prob is tht at a time C_FINAA-NACHA can have value I or 1 or 2.
    'I' is for mailing & '1' is for printing.
    BTE r 2040 & 1040.
    Need to hv both the value for both mail n spool printing.
    Kindly guide me pls..thanks in advance..

    Hi,
    If you want to mail the output, once you give the print, It is possible.
    What u have to do is that get the Spool number from driver program using the function module OPEN_FORM & CLOSE_FORM.     
    Once you get the spool number, you can convert spool job to PDF and send that to exact address.
    Check this procedure.
    DATA :g_spool LIKE  itcpp.
    CALL FUNCTION 'CLOSE_FORM'
        IMPORTING
          RESULT = g_spool
        EXCEPTIONS
          OTHERS = 1.
    g_spool-tdspoolid "spool request number
    Call this function module to convert spool to Pdf
    CONVERT_OTFSPOOLJOB_2_PDF
    Sendind mail using the following function module.
    SO_NEW_DOCUMENT_ATT_SEND_API1
    I hope that it helps you.
    Regards,
    Venkat.O

  • O/P probelm when the spool is generated by SM36 for REUSE_ALV_GRID_DISPLAY

    Hi
    Can anyone help me in solving the issue for the problem in display o/p (Line wrapping happens after certain length of display in the spool) in the spool generated after running the REUSE_ALV_GRID_DISPLAY.
    i.e when the report is run online complete report is seen on the screen, but the same report having REUSE_ALV_GRID_DISPLAY is run in background mode (sm36) the spool o/p thus generated shows line wrapping after certail length of display, thus the report is seeen in a distorted format.
    Any solutions for the same.??
    Please try to help.
    Thanks & Regards,
    Sanjay

    Hi Sanjay,
    in the layout, you can set then min_line_width to, say 132. Additionally, you should create a default layout which does not exceed this.
    As far as I remember, batch lists must not exceed 255 characters.
    Be serious: Who will need every bit of information? Take a process-oriented look at it and reduce to the information really needed.
    Regards,
    Clemens

  • ABAP spool to email not working properly !!

    Dear All,
    My requirement is to email the spool generated at each step to a particular distribution list.
    There are 6 steps in my SAP job (SM37) as shown below.
    step1 : report1
    step2 : email spool1 (this is a custom program that reads the spool id from previous step)
    step3 : report2
    step4 : email spool2 (same custom program used in step2)
    step5 : report3
    step6 : email spool3 (same custom program used in step2)
    Now when I run the above job, only the email is being sent in step6 (that carries spool of step5 as an attachment). The other two email spool jobs at step 2 and 4 are not sending any emails. Kindly give your inputs on what might be the problem?
    Kind Regards,
    Hema Sundar.

    Hi Raymond, Thanks for your interest shown. below is the code logic which I am using.
    To get spool id :
    CALL FUNCTION 'GET_JOB_RUNTIME_INFO'
            IMPORTING
                 eventid                 = l_eventid
                 eventparm               = l_eventparm
                 external_program_active = l_external_program_active
                 jobcount                = l_jobcount
                 jobname                 = l_jobname
                 stepcount               = l_stepcount
            EXCEPTIONS
                 no_runtime_info         = 1
                 OTHERS                  = 2.
    CHECK sy-subrc EQ 0.
    CHECK NOT ( l_jobname IS INITIAL ).
    CHECK NOT ( l_jobcount IS INITIAL ).
       SELECT * FROM  tbtcp
                      INTO TABLE it_tbtcp
                      WHERE      jobname     = l_jobname
                      AND        jobcount    = l_jobcount
                      AND        stepcount   = l_stepcount
                      AND        listident   <> '0000000000'
                      ORDER BY   jobname
                                 jobcount
                                 stepcount.
       READ TABLE it_tbtcp INTO wa_tbtcp INDEX 1.
       IF sy-subrc = 0.
         g_spoolid = wa_tbtcp-listident.
       ENDIF.
    Then I am performing below steps to email the spool.
    PERFORM get_std_message.
    PERFORM get_recipients.
    I think the problem is while reading the spool id itself. Pls give your valuable inputs.
    Thanks,
    Hema.

  • Spool with 'Eror' status.

    When i print the invoices, it gets printed correctly with spool status as 'Completed' for some of the local output device (LOCL,HOLE) but for the output device(ZPDF( PDF output using Email)), spool is getting created with 'Error' status.
    When i checked the log for error status, its coming as 'Character converter active when first problem occured'.

    Hi Ashish,
    Check with the basis team for the log error ....
    Regards,
    Sravanthi

  • ALI type attachment does not execute in UWL

    Hi Experts,
    We have successfully installed the SAP Office Notifications Inbox Connector (SONIC) for our Enterprise Portal (EP) and it is able to retrieve SAP Office Inbox items under "Notifications" tab of the UWL.
    There is just one problem. Some batch jobs defined under transaction code SM36, contains spool list recipients. The recipient will receive a copy of the spool output in their SAP Office Inbox, generated by SM36 after a batch run. The spool output will be in the form of an attachment of "ALI" (ABAP List) type extension sent as a notification to the SAP Office Inbox.
    This attachment can be executed successfully when this is accessed via SAPGUI or WEBGUI. However, should the user attempt to access it from UWL in EP, EP is not able to recognize the "ALI" ABAP list. Instead, an operating system pop up window appears requesting the user to select a program to open the "ALI" type file. In fact none of the desktop programs is able to interpret the "ALI" type file which is in binary mode.
    My question is, does EP's UWL with SONIC installed have the capibility to recognize an ABAP list type of attachment in a notification or is there some additional configuration that needs to be done. Please advise, any help would be greatly appreciated. Thank you.
    Regards,
    Lionel

    Hi,
    You will have to examine the payroll log to see where in the schema the wage type is being dropped by the system.  Normall it is just a processing class that is not set correctly.
    thanks.
    JB

Maybe you are looking for