Automatic Mail not getting generated through background job

Hi Experts,
We have set up a job variant with spool recipients. We are getting the automatic mail if the job is getting finished successfully. But we are not getting the automatic mail if the job is in cancelled status. Earlier we used to get the mail even if the job is in cancelled status. We are not sure if there is any setting which would restrict the automatic mail based on the job status.
Appreciate your help in this regard.
Thanks and Regards,
Ranjani.

Hi,
Just for a work around, try checking the SAP user inbox for the user who has scheduled the background job.
I don't there  is any seperate configuration in Spool List Recipient for the canceled jobs. We need to confirm that the email ids provided in the Spool List recipient are correct and the background job creates a spool request even if it is canceled.
Also if possible try deleting the existing background job and create a new background job with the same parameters and valid email id's maintained in the Spool List recipient.
OR
Without deleting the existing background job, parallely create a new background job with the same parameters and valid email id's maintained in the Spool List recipient. If it works then delete the old background job.
Thanks
Harish

Similar Messages

  • Mail not being sent for background job spool

    Hello All,
    I have created a back ground job by adding a mail id in the spool receipient list. The job has finished successfully and spool is created but the mail has not been sent I have checked SOST transaction and no mail has been sent to this mail id.
    This is only happening for some jobs other jobs are able to successfully send the spool as mails to the mail id's mentioned in spool receipient list.
    I would like to know why this is happening only for some jobs and how can I check the whether mail has been generated or not.
    Your replies will be greatly appreciated.
    Thankyou,
    Ranjan

    Hi
    To check whether mail is generated you can create dynamic break-point with SAAB transaction.
    Using this transaction you create a memory area for your jobs where you can load any data value of your report..
    Probably something goes wrong with COMMIT of Mail Function module system.
    Hope to help..

  • Spool list is not getting created for background job

    I am creating background job using JOB_OPEN and then submitting my z-report using submit statement and then closing job using JOB_CLOSE. for this job is getting creating in sm37 and also gets finished but it does not create spool list showing output.
    Any idea how to do this?
    Thanks in advance.

    DATA: lv_jobname TYPE tbtcjob-jobname,
            lv_jobcount TYPE tbtcjob-jobcount,
            lv_variant TYPE variant,
            wa_var_desc TYPE varid,
            wa_var_text TYPE varit,
            it_var_text TYPE TABLE OF varit,
            it_var_contents TYPE TABLE OF rsparams.
      REFRESH: it_var_contents, it_var_text.
      CLEAR: wa_var_desc, wa_var_text.
      CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'
        EXPORTING
          curr_report     = sy-cprog
        TABLES
          selection_table = it_var_contents
        EXCEPTIONS
          not_found       = 1
          no_report       = 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.
      CONCATENATE sy-datum sy-timlo INTO lv_variant.
      wa_var_desc-mandt       = sy-mandt.
      wa_var_desc-report      = sy-cprog.
      wa_var_desc-variant     = lv_variant.
      wa_var_desc-transport   = 'F'.
      wa_var_desc-environmnt  = 'B'.
      wa_var_desc-version     = '1'.
      wa_var_desc-protected   = 'X'.
      wa_var_text-mandt = sy-mandt.
      wa_var_text-langu = sy-langu.
      wa_var_text-report = sy-cprog.
      wa_var_text-variant = lv_variant.
      lv_jobname = lv_variant.
      CONCATENATE 'Batch Job Variant -'(006)
                  sy-uname INTO wa_var_text-vtext.
      APPEND wa_var_text TO it_var_text.
    Create the varaint for the back ground job.
      CALL FUNCTION 'RS_CREATE_VARIANT'
        EXPORTING
          curr_report               = sy-cprog
          curr_variant              = lv_variant
          vari_desc                 = wa_var_desc
        TABLES
          vari_contents             = it_var_contents
          vari_text                 = it_var_text
        EXCEPTIONS
          illegal_report_or_variant = 1
          illegal_variantname       = 2
          not_authorized            = 3
          not_executed              = 4
          report_not_existent       = 5
          report_not_supplied       = 6
          variant_exists            = 7
          variant_locked            = 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.
    Open the job.
      CALL FUNCTION 'JOB_OPEN'
        EXPORTING
          jobname          = lv_jobname
        IMPORTING
          jobcount         = lv_jobcount
        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.
      ENDIF.
    submitt the job in background mode.
      CALL FUNCTION 'JOB_SUBMIT'
        EXPORTING
          authcknam               = sy-uname
          jobcount                = lv_jobcount
          jobname                 = lv_jobname
          report                  = sy-repid
          variant                 = lv_variant
        EXCEPTIONS
          bad_priparams           = 1
          bad_xpgflags            = 2
          invalid_jobdata         = 3
          jobname_missing         = 4
          job_notex               = 5
          job_submit_failed       = 6
          lock_failed             = 7
          program_missing         = 8
          prog_abap_and_extpg_set = 9
          OTHERS                  = 10.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
               WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    close the job.
      CALL FUNCTION 'JOB_CLOSE'
        EXPORTING
          jobcount             = lv_jobcount
          jobname              = lv_jobname
          strtimmed            = 'X'
        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.
    Hope this will be helpful..

  • Schedule lines are not getting generated through MRP

    Hello Experts,
    While running MRP, we observed that the system is creating PR instead of schedule lines, although all the necessary prerequistes to generate schedule lines through MRP are maintained. For e.g.
    1. MRP Schedule line relevant indicator '2' is maintained in the Source List.
    2. Sch. Agreement dates and Source List validity dates are same.etc...
    Further after some analysis, we observed that if we change the source list validity from date to some back date then system is creating correct schedule lines.
    Example: Material M1; Planned delivery time 7 days; GR processing time 5 days; MRP Type PD; Lot Size WB;
    SA validity dates - 07.09.2011 to 31.12.2011
    Source List validity dates - 07.09.2011 to 31.12.2011
    If MRP run on 12.09.2011 and source list dates are retain same as mentioned above, system creates the PR.
    If MRP run on 12.09.2011 and source list dates changes to 05.09.2011 to 31.12.2011, system creates the schedule lines.
    Could you please let us know, why the system behave like this?

    Dear,
    Welcome to SDN,
    In transaction OMDT you have to enable the indicator create schedule lines
    In MD02 MRP control Prameter here select the Delivery schedules -3- Schedule line. Processing Key as NETCH and Planning Mode - 3 delted and recreated.
    Maintain source list ME01, in that put MRP indicator as '2' i.e. schedule lines via MRP.Put your agreement no in that.
    If u run MRP properly u will get schedule lines automatically in ME38.
    Make the schedule agreement, make it source relevent in the source list make is FIX and MRP indicator as 3.
    Regards,
    R.Brahmankar

  • Deliveries not getting generated through VL10H

    Hi All,
    I've a scenario where users are trying to create deliveries against Sales Order through VL10H but it displays an error log "Delivery group 005 is not complete (delivery group will be deleted)". But while using VL04 no erros are there. This is happening against a particular customer. I tried but not able to find any clue.
    Require your expert guidance regarding this issue.
    Thanks & Regards
    Girish

    hi Arun,
    have you run RFFOAVIS autonomous (not within F110) ?
    Andreas

  • Report not get generate through URL on Development machine

    Hi
    I have got development environment on machine where only weblogic admin is there [ No Forms/Report Services ]. Can I run run report on that machine through URL.
    I am using weblogic with Forms 11g [ 11.1.2.1.0 ]
    Thanks
    Vishal

    So, you are using 11g-Release2 with a "Development" installation type.  The part I don't understand is why you said you are using Forms 11, but then mention running a report through a URL.  Are you trying to call a report from a Forms application?  If not and you are simply trying to call a report from a URL directly in a browser, you may want to post your "Reports" question in the Reports forum, which is here:
    https://forums.oracle.com/community/developer/english/development_tools/application_development_in_pl_sql/reports
    Generally speaking, I see no reason why you wouldn't be able to run a report from a URL or from Forms.  Both should work.  Have you read the documentation?
    http://docs.oracle.com/cd/E24269_01/doc.11120/e24479/pbr_run001.htm

  • Display name not getting generated When creating user thorugh GTC

    We are using GTC flat file as a trusted source. We see that display name not getting generated. And same thing happening when creating a new GTC mapping.
    previously when we ran with few test user got created with display name through GTC flat file , Suddenly we see this issue display name not getting generated through flat file recon.
    Manually user creation has no issues.
    Please let me know if you have any idea about this issue.

    Don't use GTC... GTC is inflexible and buggy technology... Nothing guaranteed... Rather create your own custom trusted recon code...
    For more details
    26 Known Issues of Generic Technology Connectors
    http://docs.oracle.com/cd/E10391_01/doc.910/e10360/issues.htm

  • Reg: Error in Mail sending through background job in SCOT

    Hello experts,
    I am trying to schedule a background job through SCOT so as to send the mails present in SOST.
    The job is running but it is giving error as "Invalid status  for recipient" in SOST.
    But when I am sending it directly from SOST it is delivered without any errors. The email address is maintained correctly and SMTP settings are also correct as while sending it directly from SOST it reaches the required recipient without any error.
    This error is observed only through background job. I am using program RSCONN01 with variant SAP&CONNECTINT in background job.
    Kindly suggest why I am getting the error "Invalid status  for recipient" in background job.
    Thanks & Regards
    Meraz
    +91 8894522860

    I am getting the exact same issue.
    were you able to fix this in the last 3 weeks?
    thanks.

  • Spool not generated for background job

    Hi all!
    I have a Zprogram that does some validation and submits the data to transaction ME59 using SUBMIT statement. The program is running fine in foreground.When it is scheduled for background, the spool is not getting generated. I know that if a program contains SUBMIT statement, the spool will not be generated when run in background. But is there a way to make it work? The client requires the exact output that we get in foreground.

    Hi,
      All spool requests will be stored in TSP01 table
    TSP01 - Spool Requests
    field name for Spool request number is RQIDENT
    Hi,
    Take a look at OSS Note 422136 which states:
    "2. You can only store one spool request even if a step generates several spool requests during processing. The application is responsible for a "spool overview" in this case. If a step generates several spool requests during processing, only one request can be stored. In this case, the application report should issue the number with a message when writing a spool request so that it is then displayed in the job log."
    Also take a look at OSS Note 519059 which further supports the case that you must capture the individual spool numbers as they are being created (i.e. within the job step's program). The note contains the following:
    8] Question: How are the spool requests assigned?
    Answer: The step information is stored in table TBTCP. This has space for exactly one spool request (field LISTIDENT). If a step generates several spool requests during the processing, only one can be stored. In this case the application is responsible for a "spool overview
    <b>Reward points</b>
    Regards

  • Snapshots not getting generated automatically

    Hi all,
    I want to generate an ADDM report. For that, I am running the addmrpt.sql script in $ORACLE_HOME/rdbms/admin
    While running, i am being asked for the begin_snap ID and end_snap ID. The problem is I have only one snap_id. The snapshots are not getting generated automatically for every 1 hr, as they shd be. I have to manually create a snapshot and run the ADDM script. I know that the database has to be open for atleast next 1 hr for getting the snapshot. I have not closed my database for the whole day.
    Now, I want to know what exactly I shd be looking at, or rather be doing to get my snapshots generate automatically.
    Please help me in this regard.
    Thanx in advance....
    Regards,
    ORA_SRI

    Hmm, you probably want to ask questions about ADDM in the [Database General Forum|http://forums.oracle.com/forums/forum.jspa?forumID=61]

  • Reports not getting generated

    Dear All,
    I know this is a repeat query but im unable to find information from the blogpost http://scn.sap.com/docs/DOC-41109.
    I have earlier configured the WWI setup in a linux server. Now I am testing it on a windows server. I have made all the configurations in word and for generation server. The issue is, the report is not getting generated in report management screen and is in status Generation possible always.
    When i check the wwi monitor, the doc type SBR is getting released but not getting completed. Please see the screenshot. CGSADM is working fine, RFC is working fine. I tried creating documents in CV01N and they are getting created. The DCOM settings are also good and activated the permissions there too. The DMS settings are set as per the SAP notes. However The job i scheduled is in status Finished for document generation. But when I try to generate the report, the report is created using a variant and the status of the report is in generation possible always. I checked the variant of the report and the validity is in REG_WORLD. I understand that there is some issue in the scheduled job.
    I have scheduled only one job for Document Generation as follows.
    a)Enter the job name - DOC GENERATION and choose a job class - A.
    d) Choose Start condition and in the dialog box, choose After event.
    e) Enter SAP_SYSTEM_START in the event field.
    f) Activate Periodic job - HOURLY
    g) Choose Check and save your entries.
    h) Choose Step and choose ABAP program in the dialog box that appears.
    i) Enter RC1WWIDS as the ABAP program name.
    j) Choose Check and save your entries.
    k) Before you leave the Define Background Job screen, you must save your entries once more.
    Result: The job is started whenever the SAP system is started.
    aFTER REPEATED ATTEMPTS, THE RESULT IS THE SAME AND NO CHANGE IN STATUS OF THE REPORT.
    Kindly suggest what step am i missing . I have been through all the blogs in SCN. My old blogs are however missing and hence I am not able to access them.
    I am using SAP GUI 7.30, ECC6 and EHP 5.
    Regards
    Dhinesh

    Dear Dhinesh
    Please help me to understand your system landscape.
    a.) Did you have had a SAP EHS up and running together with a "linux server" based WWI version
    and
    b.) now you are switching the same SAP system to a "windows server" based version?
    I am not sure about your screenshots. But you seem to have more than one gen server attached to the same system; did you updated as well WWI?
    So no adaption of general SAP set up (like DMS etc.)?
    Therefore any job scheduled (before afterwards) is done using a SAP account having the necessary access rights?
    Can you please check this:
    1.) create several sessions; one with WWi monitor and one with CG02; try to generate a different report for the same spec id (e.g. not MSDSUS in EN, but MSDS/FR) and check progress in WWI monitor as well as CG50
    2.) select in CG50 the report in status "generation possible"; mark it and try to "go" on ; check access rights afterwards (su53)
    I hate this status "generation possible". I believe you need to use "debug replace" to remove that entry; I can not remember any more but that was the only option to get "rid" of this entry
    Please read WWI cookbook, There is a set up possible in such a way that any action on WWI server is "logged"; may be try to analyze the log file to get idea why there is no progress regarding the generation
    PS: the problem you have detected is not related to the "validity area". It is a matter of communication issue between SAP and WWI server and the WWI process can not be finalized.
    But you are not alone with your problem (e.g. check:
    http://www.benxbrain.com/en/sap/program/RC1WWIDS-Generation-possible-status-not-changing-thread-1-1547841.htm)
    http://scn.sap.com/thread/3311944
    http://www.consolut.com/en/s/sap-ides-access/d/s/doc/H-ESEWSRSTAT
    https://scn.sap.com/thread/1575223
    http://sap.ittoolbox.com/groups/technical-functional/sap-dev/ehs-wwi-processing-272462
    Check as well your own thread: http://scn.sap.com/thread/3304285
    C.B.
    PS: may be check: http://www.stechno.net/sap-notes.html?view=sapnote&id=1094307
    as well as:
    http://www.stechno.net/sap-notes.html?view=sapnote&id=580586
    PPS I: logging feature of WWI is described here: Note 778684
    PPS II: may be check: http://www.stechno.net/sap-notes.html?view=sapnote&id=1094307
    PPS II: may be check as well: http://scn.sap.com/thread/3344033
    and http://scn.sap.com/thread/1381004

  • Spool not getting generated in OO ALV report

    Hi,
    I developed a report in which we are giving output in same selection screen through OO ALV.
    But,when we are scheduling that report in background,spool is not getting generated.
    Waiting for your reply.
    BR,
    Praveen

    Hi Aparna,
    I tried NEW-PAGE PRINT ON.
    I am pasting source code extract below:
       IMPORT DATA = ME->IT_FINAL2 FROM MEMORY ID SY-CPROG.
        FREE MEMORY ID SY-CPROG.
        CHECK ME->IT_FINAL2 IS NOT INITIAL.
        CHECK LO_DOCK IS INITIAL.
        CREATE OBJECT LO_DOCK
          EXPORTING
            REPID = SY-REPID
            DYNNR = SY-DYNNR
            RATIO = 70
            SIDE  = CL_GUI_DOCKING_CONTAINER=>DOCK_AT_BOTTOM
            NAME  = 'DOCK_CONT'.
        IF SY-SUBRC NE 0.
          MESSAGE 'Error in Docking Control' TYPE 'S'.
        ENDIF.
        IF LO_ALV IS INITIAL.
          TRY.
              LO_CONT ?= LO_DOCK.
              CALL METHOD CL_SALV_TABLE=>FACTORY
                EXPORTING
                  LIST_DISPLAY   = IF_SALV_C_BOOL_SAP=>FALSE
                  R_CONTAINER    = LO_CONT
                  CONTAINER_NAME = 'DOCK_CONT'
                IMPORTING
                  R_SALV_TABLE   = LO_ALV
                CHANGING
                  T_TABLE        = ME->IT_FINAL2.
            CATCH CX_SALV_MSG.
          ENDTRY.
      CLEAR LR_COLUMN.
          TRY.
              LR_COLUMNS = LO_ALV->GET_COLUMNS( ).
              LR_COLUMN = LR_COLUMNS->GET_COLUMN( 'KSCHL' ).
              LR_COLUMN->SET_LONG_TEXT( 'Cond.Type' ).
    CATCH CX_SALV_NOT_FOUND.
          ENDTRY.
    NEW-PAGE PRINT ON.
            LO_ALV->DISPLAY( ).
            NEW-PAGE PRINT OFF.
    I am not getting spool list while executing it in background.
    BR,
    Praveen

  • Early Watch Reports are not getting generated.

    Hi Experts,
    I'm new to Solution Manager.
    We were getting EWA report regularly till last month in solution manager.
    But for the past one month the reports are not getting generated and I'm getting the following error message.
    Kindly help
    The data for this session is overdue. Data has not yet been transferred from the associated satellite system.
    Go to the Service Data Control Center (transaction SDCCN) in the satellite system and check why the data has not been sent.
    Typical sources of errors are:
    The RFC connection for the SAP Solution Manager system is not working.
    The 'Task Processor' background job, which collects the session data, has been changed.
    Problems arose while data was being collected (see the detail log for the task that collects the session data).
    A periodic 'SDCC Maintenance Package' task has not been scheduled to check whether your SAP Solution Manager system requests session data.
    Session number: 1000000000704
    Thanks,
    Shanahas

    Hi,
    The maintanance package is getting executed everyday. However, it is throwing some error.
    I have checked the RFC connection and they are working fine.
    Here with I'm attaching part of the log i got for the maintance package error.
    Pls help
    Maintenance Package completed
    > Maximum number of retries reached ( 0003 )
    Updating license data completed from destination SM_SOMCLNT100_BACK [Maintenance Package]
    Error updating license data from destination SM_SOMCLNT100_BACK [Maintenance Package]
    Retrieval of license data failed from destination SM_SOMCLNT100_BACK
    > ( AGS_MK_GET_MAINT_KEYS )
    > Function module for retrieval of license data not available on Solution Manager
    Updating license data started from destination SM_SOMCLNT100_BACK [Maintenance Package]
    Error refreshing service definitions from destination SM_SOMCLNT100_BACK
    > Password logon no longer possible - too many failed attempts
    > error reading function module interface BDL_DO_SESSION_REFRESH_NEW from SM_SOMCLNT100_BACK
    > Re-entry after error
    Refresh of service definitions started from destination SM_SOMCLNT100_BACK [Maintenance Package]
    Refresh sessions from destination SM_SOMCLNT100_BACK finished [Maintenance Package]
    > Sessions cannot be refreshed from destination SM_SOMCLNT100_BACK ( SOM , 0020312095 )
    > Password logon no longer possible - too many failed attempts
    > error reading function module interface DSWP_API_SESSIONLIST_GET from SM_SOMCLNT100_BACK
    Refresh sessions from destination SM_SOMCLNT100_BACK started [Maintenance Package]
    Refresh sessions from destination SDCC_OSS finished [Maintenance Package]
    > Sessions are up to date
    Refresh sessions from destination SDCC_OSS started [Maintenance Package]
    > Not due, due every 7 day(s), last successful run 10.07.2011 21:20:24
    Delete old session and log data :
    Maintenance Package started
    Thanks,
    Shanahas

  • Mail not being triggered in background

    Hi Experts,
    I am using the function module SO_NEW_DOCUMENT_ATT_SEND_API1 to send a mail with attachments to the user. The program in which the FM is used is scheduled in background. The problem is in my dev system, the mail is getting triggered without any issues but in Quality system, the mail is not getting triggered but the job  runs successfully. I got some expection  with   sy-subrc = 2 , sy-msgid = SO ,sy-msgtyp=A ,sy-msgno=013,sy-msgvi=ADDR_PERS_COMP_COMM_GET in QA . When i tried to debug the background job, mail gets triggered successfully.
    Can you please share your valuable suggestions in this regard.
    Regards,
    Vijayalakshmi

    Hi Vijayalakshmi..
    Can you please check whether the mail is reaching your sap outbox using tcode sbwp..
    From what i understood if it is working fine in DEV and not in quality then it could be the mail configuration issue in QA.
    You can also try one more thing. just got to sbwp and send a mail to the email id.
    Regards
    Ansari

  • MC.9 - spool is not getting generated

    Hi Experts,
    When i execute MC.9 transaction in foreground i am able to view the report output. but when i execute it in background spool is not getting generated.
    Please provide me any solution for this issue.
    Thanks
    Pallavi

    Hi
    I have checked list of versions in the 'select version' button.  But my question is when i select 'execute in background', it is not generated spool. Is there any relation between spool and version. If there is, please explain me what it mean and how it relates.
    As i am new to this module i wanted to know it, in brief detailed.
    Thanks
    Pallavi

Maybe you are looking for

  • URL Variables used to set the source property for the VIDEO COMP.

    Can you take a url variable and have that variable be the value for the source parameter of the video playback component in flash CS4 or CS5? Example: the url with url variable:   http://www.mydomain.com/videos/videoplayer.cfm?vplayer=videofile1 the

  • Small office (5 users) - Accounting - wanting to secure ingress/egress of docs..

    Small office (5 users) - Accounting - wanting to secure ingress/egress of docs..I haven't seen this answered for an office of this size.I have the need for a relatively cheap software package or guidelines (I'll still keep the search active) for how

  • WDV in fixed assets

    Hi everyone, I need to customize the WDV for India. From what I read, it is a fixed percentage of the NBV. So, if the percentage is 20. and the acquisition value is 10000$, the first year, it should be 10000 * 20%. The second year would be the NBV *

  • Nokia C3 problem in gmail configure

    i have a new nokia C3 phone and i have faced a problem when i connect the mail option and put all the information about the mail after some processing message is coming "COMMUNICATION ERROR". this error is come with both connection (Wifi and GPRS). s

  • The problem related with the nokai software update

    hello friends, i am using nokia7230, 3 days before i updated my cell phone with nokia software updater, the version changed from V 6.9 to V9.83, i was happy to see my cell geting updated, but the moment it finished, there nothin else left with me oth