Background Job Processing/Spool List Recipient

When setting up a report to run as a background job and setting it up to e-mail the results via the Spool List Recipient button, it always sends the results in htm format. Is there a way it can be e-mailed in Excel?

hi swapna.
in scot it is not configured as excel how to do it.to get an attachment in excel format
thanks in advance

Similar Messages

  • How to schedule job with spool list recipient in CPS ?

    Dear Guru,
    i import job with spool list recipient from r3 to cps and schedule in CPS, job is finished but there is no spool send to the recipient ?
    Please advise ?
    Best regards,
    Supat Jupraphat.

    What job definition did you use? SAP_AbapRun? SAP_AbapRunPrint? SAP_AbapRunPrintExt?
    Do you have XBP 2.0 or 3.0 in the SAP system? (check SE38 > INITXBP2)
    Have you loaded the CPS transport files in the SAP system?
    Note that using spoollist recipients either involves SAP_AbapRunPrintExt in combination with XBP3.0
    OR
    It involves SAP_AbapRun or SAP_AbapRunPrint and XBP 2.0 using transportation files in the SAP System.
    Please check the section of the CPS admin guide called: "Enhanced SAP Interfaces with Redwood Transports"
    Regards,
    David

  • Background Job Processing Spool Retention period

    Hi ,
    In my program i am calling another ABAP program and sumitting the same as a background job(using Job_Submit,Close etc.)
    In this case i can view the Spool generated by the called program(using sm37).
    But this spool exists for a very less period in the system.Is it possible to specify a retention period,as 90 days in my case.?
    Pls Help !!!
    Answers will be rewarded.
    Regards,
    Rohan

    hi Roahn,
    You must set print parameters before the printing process starts.
    When printing lists after creating them, the system uses the print format specified in the print parameters to split the completed list and fit it onto the print pages, truncating it if necessary.
    When printing lists while creating them, the system uses the print format to actually format the list in the program.
    Print parameters are set either interactively by the user or from within the program.
    For each print process, the spool system needs a complete and consistent set of print parameters. In ABAP, the structure PRI_PARAMS (ABAP Dictionary) represent a set of print parameters.
    When passing the print parameters interactively, the system displays a dialog box after starting the report, on which the user has to enter the most important print parameters.
    It's shown below which input field of the Print List Output dialog window conform to which PRI_PARAMS component.
    Input field----
    Retention period
    Component-------PEXPI
    Meaning----
    Number of days for which the system holds the spool request before deleting it. (Default value: 8).

  • Backgroud Job with spool list recipient

    I want to execute a report (smartform) in backgroud ( specific the recipient determination with "[email protected]" ) and want to send the PDF format of the report layout to the email address which I input in recipient .
    I did a test  and reveived the mail with PDF attach file .but the PDF is blank ...what happen?
    The report is correct and has values  when executed frontend.

    Hi santosh p 
    I try to download the file with pdf format.
    the resulte is the pdf file is empty....
    I don't know why?
        TH_PRINT-XSFCMODE  = 'X'.
        TH_PRINT-XSF       = space.
        TH_PRINT-XDFCMODE  = 'X'.
        TH_PRINT-XDF       = space.
        TH_PRINT-TDPRINTER = O_SPLD.
        TH_CONTROL-NO_DIALOG = CNS_X.
        IF P_RADIO1 = CNS_X.
          TH_CONTROL-PREVIEW   = CNS_X.             " Preview
        ELSEIF P_RADIO2 = CNS_X.
          TH_CONTROL-PREVIEW   = SPACE.             " WITHOUT PREVIEW
        ENDIF.
        TH_CONTROL-GETOTF = 'X'.
    ----- Get the function name from the name of smartform
        CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
             EXPORTING
                  FORMNAME           = CNS_SFORM           "Smartform Name
             IMPORTING
                  FM_NAME            = LW_FUNC_NAME        "Function Name
             EXCEPTIONS
                  NO_FORM            = 1
                  NO_FUNCTION_MODULE = 2
                  OTHERS             = 3.
        IF SY-SUBRC <> 0.
          MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
    -----Call smartform
         CALL FUNCTION LW_FUNC_NAME
             EXPORTING
                  CONTROL_PARAMETERS = TH_CONTROL       " Preview
                  OUTPUT_OPTIONS     = TH_PRINT         " The print default
                  USER_SETTINGS      = SPACE
                  W_NAME             = W_NAME
                  W_REPORT           = W_REPORT
                  W_REPORTDATE       = SY-DATUM
                  W_TONAME           = W_TONAME
                  W_PERIOD           = W_PERIOD
                  W_YEARTYPE         = W_YEARTYPE
                  W_FINYEAR          = W_FINYEAR
                  W_LASTDATE         = W_LASTDATE_1
              IMPORTING
                  job_output_info    = w_return
              TABLES
                  T_TAB              = T_DISPLAY_1        " Table for output
              EXCEPTIONS
                  FORMATTING_ERROR   = 1
                  INTERNAL_ERROR     = 2
                  SEND_ERROR         = 3
                  USER_CANCELED      = 4
                  OTHERS             = 5.
        IF SY-SUBRC <> 0.
          MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                 WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
    ****...................................CONVERT TO PDF...............
      DATA: P_BIN_FILESIZE TYPE I,
            P_OTF type table of ITCOO,
            P_DOCS type table of DOCS,
            P_LINES type table of TLINE.
      P_OTF[] = w_return-OTFDATA.
      CALL FUNCTION 'CONVERT_OTF_2_PDF'
        IMPORTING
          BIN_FILESIZE = P_BIN_FILESIZE
        TABLES
          OTF = P_OTF
          DOCTAB_ARCHIVE = P_DOCS
          LINES = P_LINES
        EXCEPTIONS
          ERR_CONV_NOT_POSSIBLE = 1
          ERR_OTF_MC_NOENDMARKER = 2
          OTHERS = 3.
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
      BIN_FILESIZE                    =
        FILENAME                        = 'C:/AAA.PDF'
        FILETYPE                        = 'BIN'
      TABLES
        DATA_TAB                        = P_LINES.
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.

  • 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

  • Bag ground job 'Spool List Recipient'

    hi guys,
    there is any configuration for that background job <b>spool list recipient</b>,
    if there please replay me it was argent issue with my end
    Reg,
    Hariharan

    Hi Holly,
    it's sound like the <b>SAP-Note: 329537</b>
    Symptom
    If a batch job creates a spool and sends it to a recipients, only the first 1000 lines are sent.
    Other terms
    SAPOffice, spool list recipient
    Reason and Prerequisites
    For performance reasons, the output sent to SAPOffice is limited to 1000 lines.
    Solution
    If you wish to send spools longer than 1000 lines in Releases > 4.6B, proceeed as follows:
    1. Apply the support packages or correction instructions mentioned in this note.
    2. Create the following two entries in table TSPOPTIONS with transaction SE16:
                  option: BTC_FIRSTLINE value: < desired value, probably 1>
                  option: BTC_LASTLINE  value: < desired value, e.g. 99999>
    1. Call function module RSPO_OPTION_FLUSH with value NAME = '*'.
    Please note that this change may impact performance, depending on the selected line interval.
    In Releases < 4.6C or if you are not able to apply the support packages or corrections, you can accomplish this with a minor code change.
    In program RSBTCRTE, change the parameter sent to the function module
    RSPO_SPOOLJOB_TO_OFFICE as follows:
    call function 'RSPO_SPOOLJOB_TO_OFFICE'
         exporting
          rqident              =
    spo_list_id
             first_line         
    = 1
    last_line            =
    1000            "<<<  Delete
            last_line            =
    99999           "<<<  Insert
            receiver           
    = recipient_object
             mail_title         
    = document_data-obj_descr
          exceptions

  • Background Job  & Spool List Recipient not receiving all pages

    I have a program that is run during our nightly cycle and is scheduled in SM36 with a spool list recipient designated for the report to be delivered to the user's SAP Inbox.  The job completes successfully and creates a report that is over 100 pages.  The user is only receiving 10 pages in their SAP Inbox.  Is this a Basis system setting?  Can we changes this on a per user basis?
    Thanks,
    Holly

    Hi Holly,
    it's sound like the <b>SAP-Note: 329537</b>
    Symptom
    If a batch job creates a spool and sends it to a recipients, only the first 1000 lines are sent.
    Other terms
    SAPOffice, spool list recipient
    Reason and Prerequisites
    For performance reasons, the output sent to SAPOffice is limited to 1000 lines.
    Solution
    If you wish to send spools longer than 1000 lines in Releases > 4.6B, proceeed as follows:
    1. Apply the support packages or correction instructions mentioned in this note.
    2. Create the following two entries in table TSPOPTIONS with transaction SE16:
                  option: BTC_FIRSTLINE value: < desired value, probably 1>
                  option: BTC_LASTLINE  value: < desired value, e.g. 99999>
    1. Call function module RSPO_OPTION_FLUSH with value NAME = '*'.
    Please note that this change may impact performance, depending on the selected line interval.
    In Releases < 4.6C or if you are not able to apply the support packages or corrections, you can accomplish this with a minor code change.
    In program RSBTCRTE, change the parameter sent to the function module
    RSPO_SPOOLJOB_TO_OFFICE as follows:
    call function 'RSPO_SPOOLJOB_TO_OFFICE'
         exporting
          rqident              =
    spo_list_id
             first_line         
    = 1
    last_line            =
    1000            "<<<  Delete
            last_line            =
    99999           "<<<  Insert
            receiver           
    = recipient_object
             mail_title         
    = document_data-obj_descr
          exceptions

  • Send mail to spool list recipient from dynamically generated job

    Hi Friends,
    We are running the SAP payment run daily in background mode using the transaction F110S (program SAPF110S). We have scheduled the program SAPF110S to run in SM36 and have specified an email address there as Spool List Recipient.
    The problem is that SAPF110S itself will dynamically create two new jobs: a job for the Proposal Run and a 2nd job for the Payment Run of F110.  The name the system assigns to these jobs are generated at job release/start time in the format F110_CompanyCode_yyyymmdd - X (for the proposal step) and  F110_CompanyCode_yyyymmdd (for the payment step).
    The proposal and payment steps can create spool output. We want to have that mailed automatically by the system to a spool list recipient.
    The problem is that these proposal and payment job steps which are created do not get a spool list recipient assigned, it is empty in SM37.
    Is there any way to ensure that the spool list recipient which is populated in the calling job in SM36 gets transferred to the dynamically created proposal and payment steps jobs?
    Thanks for your advice.
    regards
    Mike

    Hi,
    At the moment sending custom e-mails from front-end via forms is not a feature on our road-map.
    What information do you want to include in the respective form, what are the fields supposed to be present in the form? You still have the auto-responder and the custom message in the workflow that could hopefully assist.
    Kind Regards,
    Alex

  • Create job via program with spool list recipient

    It is quite easy to create a job via SM36 and specify a "spool list recipient" to send the resulting spool in attachment to a distribution list.
    I haven't find the way to have this 'spool list recipient' when I create the job via program (JOB_OPEN or BP_JOB_CREATE ...)
    May be a smart abapper could help me ...

    hi,
    check this sample program which will help u.
    *& Report  ZRC_JOB_TEST                                                *&                                                                     *
    REPORT  ZRC_JOB_TEST                            .
    data : jobcount like TBTCJOB-JOBCOUNT ,
           JOB_WAS_RELEASED like BTCH0000-CHAR1 ,
           SDLSTRTDT like TBTCJOB-SDLSTRTDT ,
           SDLSTRTTM like TBTCJOB-SDLSTRTTM .
    data : l_ebeln like ekko-ebeln ,
           l_ebelp like ekpo-ebelp .
    l_ebeln = '0071005915' .
    l_ebelp = '00010' .
    CALL FUNCTION 'JOB_OPEN'
    EXPORTING
      DELANFREP              = ' '
      JOBGROUP               = ' '
       JOBNAME                = 'job1'
      SDLSTRTDT              = NO_DATE
      SDLSTRTTM              = NO_TIME
      JOBCLASS               =
    IMPORTING
       JOBCOUNT               = JOBCOUNT
    CHANGING
      RET                    =
    EXCEPTIONS
       CANT_CREATE_JOB        = 1
       INVALID_JOB_DATA       = 2
       JOBNAME_MISSING        = 3
       OTHERS                 = 4
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ELSE .
      submit ZFI_UPD_PO_DELIV_COMP_BDC
      with   ebeln = l_ebeln
      with   ebelp = l_ebelp
      via job 'job1' number jobcount
      and return .
      if sy-subrc = 0 .
         SDLSTRTDT = sy-datum .
         SDLSTRTTM = sy-uzeit + 600 .
         CALL FUNCTION 'JOB_CLOSE'
           EXPORTING
           AT_OPMODE                         = ' '
           AT_OPMODE_PERIODIC                = ' '
           CALENDAR_ID                       = ' '
           EVENT_ID                          = ' '
           EVENT_PARAM                       = ' '
           EVENT_PERIODIC                    = ' '
             JOBCOUNT                          = JOBCOUNT
             JOBNAME                           = 'job1'
           LASTSTRTDT                        = NO_DATE
           LASTSTRTTM                        = NO_TIME
           PRDDAYS                           = 0
           PRDHOURS                          = 0
           PRDMINS                           = 0
           PRDMONTHS                         = 0
           PRDWEEKS                          = 0
           PREDJOB_CHECKSTAT                 = ' '
           PRED_JOBCOUNT                     = ' '
           PRED_JOBNAME                      = ' '
            SDLSTRTDT                         = SDLSTRTDT
            SDLSTRTTM                         = SDLSTRTTM
           STARTDATE_RESTRICTION             = BTC_PROCESS_ALWAYS
            STRTIMMED                         = 'X'
           TARGETSYSTEM                      = ' '
           START_ON_WORKDAY_NOT_BEFORE       = SY-DATUM
           START_ON_WORKDAY_NR               = 0
           WORKDAY_COUNT_DIRECTION           = 0
           RECIPIENT_OBJ                     =
           TARGETSERVER                      = ' '
           DONT_RELEASE                      = ' '
           TARGETGROUP                       = ' '
           DIRECT_START                      =
           IMPORTING
             JOB_WAS_RELEASED                  = JOB_WAS_RELEASED
         CHANGING
           RET                               =
          EXCEPTIONS
            CANT_START_IMMEDIATE              = 1
            INVALID_STARTDATE                 = 2
            JOBNAME_MISSING                   = 3
            JOB_CLOSE_FAILED                  = 4
            JOB_NOSTEPS                       = 5
            JOB_NOTEX                         = 6
            LOCK_FAILED                       = 7
            INVALID_TARGET                    = 8
            OTHERS                            = 9
         IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
         ENDIF.
      endif .
    ENDIF.

  • 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

  • Error in Email via spool list recipient feature in SM37

    Hello Experts.
    I encounter a strange problem. I am not able to send Email to external Email addresses (Lotus Notes) while I am using Distribution list option in spool list recipient option in SM37 background job. I am getting an error in SOST called 'Message cannot be transferred to node SMTP due to connection error (final)'.
    I am Able to get email with spool on my SAP inbox if I use the option 'Internal user' in spool recipient.
    Also, if I send an email in a custom program via function 'SO_NEW_DOCUMENT_ATT_SEND_API1', I am successfully able to send the email to Lotus notes id using the same distribution list. So, I suppose all the basis settings in SCOT, SU01, SICF are correct.
    I checked with my basis team as well but they also see all the email settings as correct.
    My spool is very small one and I have all the access in the system.
    Anyone having any idea for this issue, please share.
    Regards,
    Diwakar

    I found the answer myself.
    In SCOT, SMTP setting, Output format for ABAP list needs to be set as 'PDF' or 'TXT' instead of 'HTM'.
    With HTM, it was going in for error for spool email.
    Regards,
    Diwakar

  • Spool list recipient has been missing

    In one of our defined background Job in Sm37, the spool list recipient has been missing and we have no ideas what has gone wrong, Is there a way to check or rather to check who and what has been changed to a Job defined in Sm37?

    HI Jack,
    we can check the JOB in SM37 and find out if any variants/Program changes have occured which triggered this change. In Job details, the prog name and the Job logs provide the varinat for which it has been scheduled. A program change is traceable by Version history and a Variant change can be traced by its owner...
    Hopefully it helps.
    Br,
    Sri
    Award points for helpful answers

  • Spool list recipient in SM36

    Hi All,
    I am using the FM's JOB_OPEN, JOB_SUBMIT and JOB_CLOSE in a report program to create batch jobs.
    Now some of the batch jobs have DL's  to which spools of the batch jobs are sent and are maintained in 'SPOOL LIST RECIPIENT' button of SM36.
    In the report which uses the above FM's to create batch job, is it possible to include this functionality.
    That is when a batch job is created from my report program, the spool list recipient should have the DL provided in my report program.

    Hi Arun,
    Refer This Link
    http://help.sap.com/saphelp_bw21c/helpdata/en/c4/3a7f87505211d189550000e829fbbd/content.htm
    Thanks.

  • Want to know table which stores SPOOL LIST RECIPIENT & email addres

    Hi Guys,
    I need to create a report for all jobname & recipient email address. Kindly let me how to find out the recipent's email address for all jobname in TBTCP. I understand that recipent is the distribution list, distribution list has email address.
    JOBNAME ---> SPOOL LIST RECIPEINT -
    > EMAIL ADDRESS.
    thanks.

    Guys thanks for you help and time.
    I am not getting the expected result after doing above steps.
    I will try to clarify the requirement further.
    When I run t-code SM37 and enter following :
    Job name : TXDET-DAILY
    User name :  *
    Job Status : Checked Sched. Only.
    On next screen JOB OVERVIEW. Only one record shows up for job TXDET-DAILY.  When I double click this record, system takes me to next screen where there is button for SPOOL LIST RECIPIENT. When I click this button it displays the recipient is TXDET. TXDET is actually a Distribution list name, maintained in SAP office (SO01).
    When I go in t-code SO01 and click DISTRIBUTION LIST button and then enter shared distribution list name TXDET.
    It gives me 2 email addresses under this TXDET distribution list. 
    [email protected]
    [email protected]
    The spool from the job TXDET-DAILY will be emailed to these 2 email addresses.
    Now I need a report which gives following information.
    Job Name................. Distribution List Name...............Email Address         
    TXDET-DAILY............TXDET......................................[email protected]
    TXDET-DAILY............TXDET......................................     [email protected]

  • SM37 Spool list recipient - editing the email's subject

    Hello.
    I am using scheduled job to send automatically a list in email every day, using the option "Spool list recipient". The name of the job appears default in the email's subject. My question is this: Is it possible to modify the subject, for example puting the variable sy-datum in the subject of the email?
    Regards,
    Stefan.

    Hi ,
    Yes we can ,
    I hope u r using the FM SO_NEW_DOCUMENT_ATT_SEND_API1 to generate the email . In that  we have the
    i_packing_list-obj_descr = ' Enter what ever u r trying to put as header'.
    Regards,
    Bharani

Maybe you are looking for

  • How can I remove Parallels from my Macbook completely?

    My MBP has been booting up very slowly, and I checked Console to see what might be causing it. I saw that a lot of the registered entries were related to Parallels, so I decided to unninstall it, since I also read that many people felt that their lap

  • Fluxbox browser window resize

    When I go to a site that opens an image in a new window, then resizes that window to fit the image, fluxbox is resizing the window so the title bar is outside of the workspace.  This means I can not close, move, maximize or minimize the window withou

  • PL/SQL ..Oracle.. Procedural Option

    I installed oracle 8i personal on my PC. going through the Introduction to SQL PL/SQL course. The SELECT Statement is working fine. But When I reach to write programs/scripts with ACCEPT, TTITLE, BTITLE. I am getting THe following Error message: "You

  • No more Itunes, if you are on a mac G3- OSX 10.4.11?

    When i open Itunes ( 8.2.1)  I have no access to Itunes store.... to add podcasts or other functions the only option is to upgrade my Itunes  to version 10 ... which is not compatible with my hardware or operating system did i miss something?

  • Saved and sorted/filed mail messages missing

    Saved and sorted/filed mail messages missing October's messages are still there but all other messages are no longer in the folders. I have a confirmations folder with all forum and newsletter info for the last year that is empty. Where do these mess