Mail after job finished

Hi All,
I am scheduling the RMMRP000 and want to send the mail to group of SAP user once job is finished.
I have created the Distribution list with all respective SAP user and while scheduling the job i am assigned spool recipient but mails are not send to all user after once job finished. If i am assigned only one user not group its sending mail once job finished.
pls let me know how i can do it for group of SAP user.
Regards,
Amit
Dear All,
Any Idea......any clue
Edited by: sathishreddy on Apr 12, 2010 7:05 PM
Edited by: sathishreddy on Apr 12, 2010 7:06 PM

Hi All,
I am scheduling the RMMRP000 and want to send the mail to group of SAP user once job is finished.
I have created the Distribution list with all respective SAP user and while scheduling the job i am assigned spool recipient but mails are not send to all user after once job finished. If i am assigned only one user not group its sending mail once job finished.
pls let me know how i can do it for group of SAP user.
Regards,
Amit
Dear All,
Any Idea......any clue
Edited by: sathishreddy on Apr 12, 2010 7:05 PM
Edited by: sathishreddy on Apr 12, 2010 7:06 PM

Similar Messages

  • Send mail  after jobs get succeded in EM console

    Hi,
    Is there solution to send mail after jobs get succeeded and failed in EM console. if job get failed in em console the mail should send with error code .

    hi
    any solution

  • Send mail after jobs get succeeded or failed in EM console ?

    Hi,
    Is there solution to send mail after jobs get succeeded and failed in EM console. if job get failed in em console the mail should send with error code

    Hi,
    For dbms_scheduler this ability is built-in from 11.2 and up. For EM jobs, you might want to ask on the Enterprise Manager forum here
    Enterprise Manager
    Thanks,
    Ravi.

  • I need a mail after job is over in background ..

    hi gurus
    can any one suggest me
    how to get a mail after background job is over
    either report or bdc job
    if job is not completed the queries should come to mail
    how to solve this issue.
    thank you
    regards
    kals.

    this code works for all the succesfull jobs in background:
    data: list type table of  abaplist with header line.
    data: htmllines type table of w3html with header line.
    data: maildata   like sodocchgi1.
    data: mailtxt    like solisti1 occurs 10 with header line.
    data: mailrec    like somlrec90 occurs 0  with header line.
    start-of-selection.
    * Produce a list
      do 100 times.
        write:/ sy-index, at 30 sy-index, at 50 sy-index.
      enddo.
    * Save the list
      call function 'SAVE_LIST'
           tables
                listobject         = list
           exceptions
                list_index_invalid = 1
                others             = 2.
    * Convert the list
      call function 'WWW_LIST_TO_HTML'
           tables
                html = htmllines.
    * Send mail
      maildata-obj_name = 'TEST'.
      maildata-obj_descr = 'Test Subject'.
      loop at htmllines.
        mailtxt = htmllines.
        append mailtxt.
      endloop.
      mailrec-receiver = 'you at yourcompany.com'.
      mailrec-rec_type  = 'U'.
      append mailrec.
      call function 'SO_NEW_DOCUMENT_SEND_API1'
           exporting
                document_data              = maildata
                document_type              = 'HTM'
                put_in_outbox              = 'X'
           tables
                object_header              = mailtxt
                object_content             = mailtxt
                receivers                  = mailrec
           exceptions
                too_many_receivers         = 1
                document_not_sent          = 2
                document_type_not_exist    = 3
                operation_no_authorization = 4
                parameter_error            = 5
                x_error                    = 6
                enqueue_error              = 7
                others                     = 8.
      if sy-subrc  0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      endif.

  • How to send mail after job abort

    Hi,
    how can I send an email when a job is aborted? Or is there a system event if a job aborts?
    Thanks for your help
    Lutz

    You might want to look into ABAP.  Basically a generic job that would get called, to send email, whenever a certain job "aborts", but then you'd also need a wrapper job for detecting the bad return code. help.sap.com has some info on that (using events to trigger jobs), like this:
    http://help.sap.com/saphelp_47x200/helpdata/en/fa/096f33543b11d1898e0000e8322d00/frameset.htm
    or this (the full-control method)
    http://help.sap.com/saphelp_47x200/helpdata/en/fa/096f33543b11d1898e0000e8322d00/frameset.htm
    CCMS can also monitor job status too, as the other poster said,
    http://help.sap.com/saphelp_47x200/helpdata/en/fa/096f33543b11d1898e0000e8322d00/frameset.htm
    however it's very limited.  Especially if you want to use logic for the alerts (ie only certain jobs should alert upon failure, certain times of day, recipients, etc).  It's all possible with CCMS, I've seen it done before using scripts that read CCMS external alerting but it's probably easier just adding event triggers to your critical jobs.

  • How to set a job ran after another job finished?

    Dear Experts,
    Our requirement is to have 2 JOBs defined in SAP:
    JobA and JobB
    The requirement is JobA will firstly ran and finished everyday.
    Then JobB will start to run upon JobA finished everyday also.
    Then what i did is set 2 jobs, and set JobB ran after with JobA. I set JobA's name in 'After Job' for JobB.
    Right now, the issue is:
    JobB will run after JobA, but only could run one day..
    The next day after JobA finished, JobB will not run...
    Please kindly help what issue here??
    Thank you very much.

    Dear Hoo,
    It is possible to follow one job after another.
    For this set up please go to transaction "SM36"
    fill your details and then press "Start condition" a new screen opens where you can see several tabs,
    and there is one tab with "After Job" , please enter the name of Job e.g jobA.
    here you can set all the conditions to start a new job.
    I hope this solves your problem.
    Regards,
    Paresh

  • How to trigger a mail once BG job finished.

    Hi,
    Could anyone please let me know how to trigger a mail once Background job finished. I let you give one scenario where exactly I require this concept. Say, I execute t.code MB52 with particular variants in background to find stuck qty(s) of material(s) in given site(s).Now I want that system will trigger a mail to concern team once job finished.
    Thanks,
    AK

    You can try using workflow transaction SBWP.
    you need to create a distibution list in the above transaction and add the requested mail ids to it.
    then when you create a jon using transaction SM37 you have the option SPOOL LIST RECIPIENT where you can add the created distibution list
    so when ever the job has run sucessfully then a mail is sent to all the mail id's in the list.
    hope this helps.
    cheers
    sundeep

  • How can i insure that job finished and good  and send mail to the user  ?

    how can i insure that job finished and good  ,
    and how can i send mail to the user "ok"   ?

    Hi Dakota.  We do something simular with our nightly MRP job.  Our MRP job runs around midnight,  then we kick off another job about 4am which checks to see if any of the jobs in question have abended, if so,  then it sends an email to the email addresses specify in the report variant.  Of course, this could be modified to check for successfully complete jobs, if that is your requirement.
    REPORT ZBCJOBMONITOR .
    TABLES: SOMLREC90,
            TBTCO.
    DATA: MAILDATA   LIKE SODOCCHGI1.
    DATA: MAILTXT    LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.
    DATA: MAILREC    LIKE SOMLREC90 OCCURS 0  WITH HEADER LINE.
    DATA: I_TBTCO    LIKE TBTCO OCCURS 0 WITH HEADER LINE.
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001 .
    SELECT-OPTIONS: S_JOB FOR TBTCO-JOBNAME.
    SELECT-OPTIONS: S_JOBC FOR TBTCO-JOBClass.
    SELECT-OPTIONS: S_REC FOR SOMLREC90-RECEIVER.
    SELECTION-SCREEN END OF BLOCK B1.
    START-OF-SELECTION.
      CLEAR:    MAILDATA, MAILTXT, MAILREC, I_TBTCO.
      REFRESH:  MAILTXT, MAILREC, I_TBTCO.
      PERFORM GET_ABENDED_JOBS.
      PERFORM BUILD_RECEIVERS.
      LOOP AT I_TBTCO.
        PERFORM BUILD_TEXT_MESSAGE.
        PERFORM SEND_MAIL_NODIALOG..
      ENDLOOP.
    *      Form  BUILD_TEXT_MESSAGE
    FORM GET_ABENDED_JOBS.
      SELECT * FROM TBTCO
              INTO CORRESPONDING FIELDS OF TABLE I_TBTCO
                         WHERE JOBNAME IN S_JOB
                           AND STATUS = 'A'
                           AND JOBCLASS IN S_JOBC
                           AND SDLSTRTDT = SY-DATUM.
    ENDFORM.
    *      Form  BUILD_TEXT_MESSAGE
    FORM BUILD_TEXT_MESSAGE.
      DATA: DATE(10) TYPE C.
      DATA: TIME(10) TYPE C.
      MAILDATA-OBJ_NAME = 'MONITOR'.
      MAILDATA-OBJ_DESCR = 'Batch Job Monitor'.
      MAILDATA-OBJ_LANGU = SY-LANGU.
      CONCATENATE 'Job Name:' I_TBTCO-JOBNAME
                  INTO MAILTXT-LINE SEPARATED BY SPACE.
      APPEND MAILTXT.
      PERFORM FORMAT_DATE USING I_TBTCO-SDLSTRTDT
                                DATE.
      CONCATENATE I_TBTCO-SDLSTRTTM+0(2) ':'
                  I_TBTCO-SDLSTRTTM+2(2) ':'
                  I_TBTCO-SDLSTRTTM+4(2)
                     INTO TIME.
      CONCATENATE 'Start Date/Time:' DATE TIME
                INTO MAILTXT-LINE SEPARATED BY SPACE.
      APPEND MAILTXT.
      CONCATENATE 'Job Class:' I_TBTCO-JOBCLASS
                INTO MAILTXT-LINE SEPARATED BY SPACE.
      APPEND MAILTXT.
      MAILTXT-LINE = 'Job has terminated abnormally'.
      APPEND MAILTXT.
    ENDFORM.
    *      Form  BUILD_RECEIVERS
    FORM BUILD_RECEIVERS.
      LOOP AT S_REC.
        CLEAR MAILREC.
        MAILREC-RECEIVER = S_REC-LOW.
        MAILREC-REC_TYPE  = 'U'.
        APPEND MAILREC.
      ENDLOOP.
    ENDFORM.
    *      Form  SEND_MAIL_NODIALOG
    FORM SEND_MAIL_NODIALOG.
      CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
           EXPORTING
                DOCUMENT_DATA              = MAILDATA
                DOCUMENT_TYPE              = 'RAW'
                PUT_IN_OUTBOX              = 'X'
           TABLES
                OBJECT_HEADER              = MAILTXT
                OBJECT_CONTENT             = MAILTXT
                RECEIVERS                  = MAILREC
           EXCEPTIONS
                TOO_MANY_RECEIVERS         = 1
                DOCUMENT_NOT_SENT          = 2
                DOCUMENT_TYPE_NOT_EXIST    = 3
                OPERATION_NO_AUTHORIZATION = 4
                PARAMETER_ERROR            = 5
                X_ERROR                    = 6
                ENQUEUE_ERROR              = 7
                OTHERS                     = 8.
      IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.
    *      Form FORMAT_DATE
    FORM FORMAT_DATE USING IN
                           OUT.
      CALL FUNCTION 'CONVERT_DATE_TO_EXTERNAL'
           EXPORTING
                DATE_INTERNAL            = IN
           IMPORTING
                DATE_EXTERNAL            = OUT
           EXCEPTIONS
                DATE_INTERNAL_IS_INVALID = 1
                OTHERS                   = 2.
    ENDFORM.
    Regards,
    Rich Heilman

  • Auto-close print queue windows after my job finishes?

    Whenever I print something, a window for the printer opens up showing me the current print queue. That's great. What's not-so-great is me having to keep on closing those windows after they open.
    Is there a way for those windows to close themselves after my print job finishes?
    Thanks.

    Thanks! (I haven't actually tested it yet, but I did bring the printer up in the dock and set the "Auto-Quit" function, so it at least seems plausible that it will work.)
    Perhaps a new low in Apple UI design: an option -only- accessible via a Dock Menu?

  • Periodic Background Jobs after another Job finishes

    Hi
    I have to schedule a job 'B' to run after job 'A' finishes.
    When i schedule job 'B' to run after job A , it runs only once , while i need the job B to run periodically after job A finishes.
    1) I cannt make job B as step 2 of job A , because job A is not scheduled by me and i cannt change that.
    Can anyone tell me how to i trigger the job B periodicaly after job A finishes .
    Any solution or hint would be appreciated.
    Looking forward to some helpful replies from the gurus of SAP.
    Regards
    Purva

    Dear Team,
    Job ES_RPTMC_CREATE_CHANGEPOINT_AUTH  ran only once where as SEC:INDX_UPDATE_FOR_STRUCT_AUTHS ran daily.
    CAUSE:
    “The start condition "Start after job" is internally mapped by means of "Start after event SAP_END_OF_JOB with the parameter <Jobname><Jobcount> of the predecessor". The pair <Jobname><Jobcount> is the unique key for a job.
    If a job is executed periodically, the SAP_END_OF_JOB event is always triggered with different parameters.
    The successor in turn waits for SAP_END_OF_JOB with just one particular parameter (this is the parameter with <Jobname><Jobcount> from the first predecessor). When the successor is rescheduled, the key fields from the next predecessor must therefore always be known in advance, something which is not always technically possible.”
    SOLUTION:
    This task can be completed with the new ABAP program Program  BTC_EVENT_RAISE.
    The program is delivered by Support Package for Basis Releases 640 and 700, and is included in the standard system in all subsequent releases.
    The program is used to trigger a batch event. Existing programs do not therefore have to be changed. The BTC_EVENT_RAISE program has several parameters in the selection screen, including the event (and parameters) that is to be triggered.
    PROCESS:
     Go To SM64
     Click on Create
     Create two events.
    Our Case:
    We created Z_ES_CP_AUTH and Z_SEC_AUTHS
     Go to SE38
     Give the event name as BTC_EVENT_RAISE
     Select Variants and click on Display
     Give the variant name as the one you created.
    Our Case:
    Z_ES_CP_AUTH
     Click on Create
     Give in the details for variants
     Click on attributes and give the details for attributes
     Go to the job which needs to be run first
    • Select the job in released status
    • Job->Change
    • Step
    • Add BTC_EVENT_RAISE as the last step of the job with the parameter as the variant created
    Our Case:
    Step: BTC_EVENT_RAISE, Parameter: Z_ES_CP_AUTH
     Go to the job which needs to be run next
    • Select the job in released status
    • Job->Change
    • Start Condition -> After Event.
    • Give the BTC_EVENT_RAISE parameter of the first job as the event of the second job.
    Our Case:
    After Event: Z_ES_CP_AUTH
     Save the changes.
     The jobs will start running one after the other with the given frequency.
    Thanks
    Joginadham U

  • Output after the background job finished successfully

    Hi All,
    We executed a Dunning job  in the background (sm37) and the job finished succesfully.  How to check whether the job has created an output ? Where to look for the output ?
    Regards
    Shiva

    You can check the spool request of your job via SM37 or SMX. Go to SM37 select your job and check the spool request.
    Regards
    Subhash

  • Email Notification after Job run

    Hi everybody,
    I want to setup an email notification at the end of a job run.
    The job is an update run from our Activate Directory and checks if there are some changes to do.
    At the end or after this job I would like to send an email to the admin that the job successfully run and what the job did.
    How could I setup this?
    At the moment I tried to use a SQL statement to table MC_LOGS within a script called in the last pass of the job.
    But I only get the information what to job do from the last run of the job and not from the current run.
    Best regards & a happy new year, Anja

    Hi Anja
    Your last pass can only fetch information from the last run and not the current one because the Job is still running and the respective log is not yet written to the table.
    But maybe you could use the LogFile created then the Job finishes.
    I suppose you use the "LDAP (ADS) - Update All"- Job for LDAP-to-IC updates. This job writes a logfile to %$ddm.ddmpath% which you could send as mail attachment. Use the UpdateJob-"Event scheduling" button to run your SendMail-Job after every UpdateJob-completion.
    Another idea would be to use the SQL-View MCMV_JOBLOG which I think is the datasource of IC-JobLog. I suppose column "mcmv_data" stores the details.
    Hope I could help.
    BR
    Michael

  • Background job finished but Error sending data

    Dear all,
    report is running in my prod server . once this report completed sapuser get mail . when i check the job status it shows
    Job started
    Step 001 started (program GP4CF9U420G825I4P7DU8XY49WH, variant CUSTOMEROUTSTD, user ID S2K_BASIS)
    Spool request (number 0000012259) created without immediate output
    Error sending data (4)
    Job finished
    one more clarity i required
    this report should goes to 4 SAP users . how can i configure this report to 4 sapusers
    kindly suggest me

    > Step 001 started (program GP4CF9U420G825I4P7DU8XY49WH, variant CUSTOMEROUTSTD, user ID S2K_BASIS)
    > Spool request (number 0000012259) created without immediate output
    > Error sending data (4)
    I'd check SCOT/SOST for any errors. Also check the syslog (SM21).
    > this report should goes to 4 SAP users . how can i configure this report to 4 sapusers
    Create a distribution list (SAPoffice-Inbox - environment - distribution list) and enter that as addresse for the output.
    Markus

  • I can't open my Spot Light preferences or Mail after wipe and restore from TM

    I had to wipe my hard drive, re-install Lion (not ML [I couldn't post specifically for Lion]) and then I restore my documents from my Time Machine Backup. I had two users, a diag user and my normal user, only my diag user was "recovered" from time machine, when looking into the Accounts Preference Pane, only the diag user showed up, but my normal user documents were actually in my hard drive, so from the diag user I created my normal user and used the home folder that already existed. Anyways, everything works, my background picture stayed the same, my desktop icons stayed arranged the way they are and it's all handy dandy, but my Spot Light Preference Pane and my Mac Mail program won't open :S
    I get the following lines in the console after clearing the console and trying to open the Spot Light Preference Pane:
    3/28/13 6:52:42.787 PM System Preferences: contentsOfDirectoryAtPath returned:Error Domain=NSCocoaErrorDomain Code=260 "The folder “PreferencePanes” doesn’t exist." UserInfo=0x40085ea60 {NSFilePath=/Users/cesarenriquereyes-hernandez/Library/PreferencePanes, NSUserStringVariant=(
        Folder
    ), NSUnderlyingError=0x40085eaa0 "The operation couldn’t be completed. (OSStatus error -43.)"} for path:/Users/cesarenriquereyes-hernandez/Library/PreferencePanes
    3/28/13 6:52:47.922 PM System Preferences: Error loading /System/Library/PreferencePanes/Spotlight.prefPane/Contents/MacOS/Spotlight:  dlopen(/System/Library/PreferencePanes/Spotlight.prefPane/Contents/MacOS/Spotli ght, 265): Symbol not found: _OBJC_CLASS_$_PBOXRemoteMediaBrowserPanel
      Referenced from: /System/Library/PrivateFrameworks/iLifeMediaBrowser.framework/Versions/A/iLifeM ediaBrowser
      Expected in: /System/Library/PrivateFrameworks/RemoteViewServices.framework/Versions/A/Remot eViewServices
    in /System/Library/PrivateFrameworks/iLifeMediaBrowser.framework/Versions/A/iLifeM ediaBrowser
    3/28/13 6:52:47.922 PM System Preferences: [NSPrefPaneBundle instantiatePrefPaneObject] (/System/Library/PreferencePanes/Spotlight.prefPane): principalClass is nil.
    I went into /System/Library/PreferencePanes/ and Spotlight.prefPane IS there, so I dont' really know what's going on.
    This is what I get after clearing the console and trying to open Mac Mail:
    3/28/13 6:55:58.204 PM [0x0-0xd90d9].com.apple.mail: dyld: Symbol not found: _OBJC_CLASS_$_PBOXRemoteMediaBrowserPanel
    3/28/13 6:55:58.204 PM [0x0-0xd90d9].com.apple.mail:   Referenced from: /System/Library/PrivateFrameworks/iLifeMediaBrowser.framework/Versions/A/iLifeM ediaBrowser
    3/28/13 6:55:58.204 PM [0x0-0xd90d9].com.apple.mail:   Expected in: /System/Library/PrivateFrameworks/RemoteViewServices.framework/Versions/A/Remot eViewServices
    3/28/13 6:55:58.204 PM [0x0-0xd90d9].com.apple.mail:  in /System/Library/PrivateFrameworks/iLifeMediaBrowser.framework/Versions/A/iLifeM ediaBrowser
    3/28/13 6:56:00.442 PM com.apple.launchd.peruser.501: ([0x0-0xd90d9].com.apple.mail[24737]) Job appears to have crashed: Trace/BPT trap: 5
    3/28/13 6:56:00.986 PM ReportCrash: Saved crash report for Mail[24737] version 5.3 (1283) to /Users/cesarenriquereyes-hernandez/Library/Logs/DiagnosticReports/Mail_2013-03- 28-185600_Diags-MacBook.crash
    3/28/13 6:56:02.674 PM Xcode: [gputools.DYMobileDevice.0x403037140.requests] <DYMobileDevice: 0x403037140>: failed to take app service transport reservation in _checkGPUToolsServiceAvailability: Error Domain=DYAMDErrorDomain Code=-402653150 "The service is invalid."

    The Solution: Tools - Internet Options - Program Tab ... and there was the Default Web Browser option. It said that IE was NOT the default browser. I changed that and IT WORKED.
    A simple and sweet fix ... all thanks to: Martin Brinkmann a journalist from Germany who founded Ghacks Technology News Back in 2005. I found him through this article:
    http://www.ghacks.net/2011/01/19/firefox-profile-manager-to-be-removed-soon/
    Thank You again Martin Brinkmann!

  • Mail Client Job Scheduled

    Hi,
    I have configured Mail sender adapter to read emails from exchange server
    imap://host:port/InBox
    In Communication channel monitoring I dont see any error message but  I see status message Mail Client Job Scheduled  and there is nothing in Moni
    Can any one please help me with this issue..
    Thanks in Advance..
    Regards
    Sri
    Edited by: sriram_Kan on Mar 7, 2012 9:47 PM
    Edited by: sriram_Kan on Mar 7, 2012 10:01 PM
    Edited by: sriram_Kan on Mar 7, 2012 10:10 PM

    Hi..
    the error showing occurs if the ports are not correctly opened with the mail server.
    check with your basis or IS team for opening the ports/access to the mail server.
    Once the connection is established after opening the ports, activate the channel once again and it should work!
    Cheers,
    Souvik

Maybe you are looking for

  • Distributing the GOA to multiple locations in the same backend

    Hello Folks, We are implementing SRM 5.0 (SAPKIBKT10 Support Package level) with Extended Classic Scenario, with only one backend system (R3 V4.6b) integrated with the SRM system. Queries: At GOA header - Distribution,  Example is shown below.... Bac

  • Using Video CAMERA with Connect pro

    We reciently purchased this product and were told that it would work with video cameras. We have a Panasonic that we are using with vista. this camera works with Premiere Pro, and there is nothing wrong with it. I know that Connect is not software ba

  • Using IWEB for .mac homepage/photo gallery

    I have Ilife '08 and am trying to marry the web page created in Iweb ('08) with my (older) .mac account (where my photo gallery resides). How does one connect the beautiful IWEB '08 web page templates with one's separate photo gallery on .mac (which

  • MSI R6850 low 3dmark06 score

    Hey, I build a new PC about a month ago and I noticed that my graphics card isn't reaching it's potential about 16463 3DMarks. I didn't figure out how to put my specs below but I'll post them here. Motherboard: MSI 785GM-E65 bios version: 2.BO Proces

  • Element name and attribute completion in XML editor?

    With either WebLogic Workshop 9.2.2 or 10.x, is it possible to get completion assistance on elements and attributes? It works in the JSP editor, but I need to know whether this will work for XML documents. For some of these namespaces, they are defin