Mail based on event raise

Hi guys,
New to SAP CPS, but need help in setting up the mail alerting based on following scenario:
Job chain contains 3 jobs: job_a, job_b, job_c. Custom mail definition is job_mail.
Path flow job_a->job_b->job_c.
Now in the chain flow, let us assume job_a works fine, job_b fails, the customer scenario is such that even if the job_b fails, the job_c should run. But job_b on error status should raise event say “EV_SendEmail”. My custom defined job_mail runs on wait event "EV_SendEmail" should run on the raise of this event. The job currently runs, sends out the email, but sends the job log and the job id of this job “job_mail”. Not the job_b’s id or the job_b’s log file.
How do I make this scenario work?

Hi Nanda,
I had actually tried your suggestion, it did not work(My source html had a syntax bug). But after what you told, I modified my source, now it gives me this error. Not sure where I am missing "=".
If you could let me know this, it would be great!
Screenshots are below.
I tried it like this:
Mail job source:
Event definition:
Job definition to raise event:
Error in CPS
Warm Regads,
Pavan

Similar Messages

  • How to schedule a background Job based on events

    Hi,
    We are on 4.6 C.
    We have a background job that has two ABAP programs.
    We need to start the 2nd ABAP program only after the first one has run successfully.
    If the second ABAP program does not run, the the job should have a status "FINISHED".
    Help appreciated.
    Thanks
    Mala

    Hi,
    How to schedule a background Job based on events,please refer to the follow SAP help:
    You can use events that have already been defined, or you can create new events for scheduling background jobs.
    If you wish to use new events, do the following to implement the event scheduling:
    Define and transport the event as a user event with transaction SM62.
    You must define only event IDs; event arguments are not defined in the R/3 System. Instead, you specify event arguments when you schedule a job to wait for an event and when you trigger the event.
    If you define a new event, you must also transport it to your production systems. The event transaction does not have a connection to the transport system. Instead, you must create a transport request for the event yourself.
    Do this to transport an event:
    Create a transport request.
    Start the editor in the transport request and enter the following:
    R3TR TABU <table name> where table name is BTCSEV for a system event ID, BTCUEV for a user event ID.
    Press F2 with the cursor on the table name to call up the screen for specifying the table entries to transport. In this screen, enter the event ID’s that you have created.
    Save and release the transport request. Ensure that it is imported into your production system(s).
    To trigger an event, add:
    – the function module BP_EVENT_RAISE to your ABAP program, or
    – the program SAPEVT to your external script, batch file, or program.
    When your programs execute these keywords, an event will be triggered in the R/3 background processing system. The event-based scheduler is started immediately. It in turn starts all jobs that were waiting upon the event, subject to normal background processing restrictions, such as the requirement that the job has been released to start.
    Schedule the jobs that are to run when your events are triggered.
    You can schedule jobs for one-time start or to be started whenever an event is triggered.
    Regards,
    collysun

  • WEBI Report Scheduling based on event.

    Hello All,
    We have a requirement to schedule a webi report based on event generated by ETL loads.
    Scheduling works fine based on events.My requirement is If event is not generated we want to schedule the report at specific time.Lets assume event will generate between 10 Am to 11 Am.If event is not generated report will not schedule,but we want schedule report after 11 Am.
    Please let us know if any one have solution for the above
    Thanks,
    Kumar

    You can schedule your report based on the file event to look for the trigger file till 11 AM. If the file not generated, you can use the below VB Script to generate the file in the desired location by 11 AM.
    Private Sub writeDebug(ByVal x As String)
        Dim path As String = System.Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments)
        Dim FILE_NAME As String = path & "\mydebug.txt"
        MsgBox(FILE_NAME)
        If System.IO.File.Exists(FILE_NAME) = False Then
            System.IO.File.Create(FILE_NAME).Dispose()
        End If
        Dim objWriter As New System.IO.StreamWriter(FILE_NAME, True)
        objWriter.WriteLine(x)
        objWriter.Close()
    End Sub
    Script does the below operations:
    It will verify if the file already exist for the day.
    If it does not exist, it will overwrite the old file with the new one. If already exist, the script will end.
    Script contains "Debug" function which will be helpful for your analysis.
    Add this program to your scheduler to run everyday at 11 AM.

  • Issue regarding [Work Flow] Business Object Event Raise in ABAP Program

    Hi All,
    I have one issue regarding [Work Flow] Business Object Event Raise in ABAP Program.
    Actual TDS is as below:
    If E message type written, raise Business object BUS2005 (Production order) Event PickShortage for production order passing warehouse, transfer request
    (BUS2065 Object key) in event container. Also include table of text version of error
    messages for this set of Transfer
    Request.
    Can anybody tell me how can i write it technically in ABAP Code.
    Can anybody solve this issue!
    Thanks in advance.
    Thanks,
    Deep.

    Hi,
    Can anybody solve above posted issue!
    Thanks,
    Deep.

  • Payload for an exent & Source from where Event Raised

    In Oracle Applications 11.5.10 I want to subscribe to "oracle.apps.ap.event.invoice.approval" event.
    I want to add a custom "Rule Function", I require to know the payload for this event.
    And I want to know from where is this event raised in the base product.
    Thanks
    Atul

    Many thanks Matt..
    You are right.. The payload will be generated by the application raising the event. How do I come to know that from where is "oracle.apps.ap.event.invoice.approval" event raised. Is it raised from a form, workflow, pl/sql package, db trigger?
    Secondly I agree it is of type WF_EVENT_T, but in addition to that I want to know what are the granular contents of the payload being passed to my rule function. What all data can I reference from this seeded Payload. What is the name of this payload.
    Thanks
    Atul

  • Missing chain step name in events raised by the scheduler

    I use events raised by the scheduler (SYS.SCHEDULER$_EVENT_QUEUE) to monitor scheduler chains processing.
    For event_type = "JOB_STARTED" (chain step started in case of chains) in event message (sys.scheduler$_event_info) there is no log_id (log_id is null).
    In user_scheduler_job_log view there is column job_subname that contains chain step name but this column is missing in the event message.
    Is there any way to get chain step name for event_type = "JOB_STARTED"?
    Job configuration:
    dbms_scheduler.set_attribute(
    name => job_name,
    attribute => 'logging_level',
    value => dbms_scheduler.logging_full
    dbms_scheduler.set_attribute(
    name => job_name,
    attribute => 'raise_events',
    value => dbms_scheduler.job_all_events
    Database:
    Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bi
    OS:
    CentOS - redhat-4
    Regards
    Mariusz

    I want to track chain processing by dequeue messages from SCHEDULER$_EVENT_QUEUE.
    Examples of messages automatically inserted by scheduler into SCHEDULER$_EVENT_QUEUE (user_data column from SCHEDULER$_EVENT_QTAB)
    SYS.SCHEDULER$_EVENT_INFO('JOB_SUCCEEDED','CDWMAIN','JOB_NAME','2011-07-27 16:19:11.191969',0,NULL,0,340374,1,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL)
    SYS.SCHEDULER$_EVENT_INFO('JOB_STARTED','CDWMAIN','JOB_NAME','2011-07-27 16:19:10.947994',0,NULL,1,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL)
    SYS.SCHEDULER$_EVENT_INFO('JOB_CHAIN_STALLED','CDWMAIN','JOB_NAME','2011-07-27 15:45:13.727127',0,NULL,0,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL)
    For event JOB_SUCCEEDED there is log_id = 340374 so we can find job_subname (chain step name) in log table.
    For JOB_STARTED and JOB_CHAIN_STALLED there is no log_id so we do not know wich chain step in this case was started and wich chain was stalled.
    JOB_NAME is the same for all steps in case of chain processing

  • Problem while sending mail through posprocess event hadler  inOIM 11g r2

    Hi,
    i am sending mail through posprocess event hadler inOIM 11g r2 when user is created.But i am getting following error in resolver class.
    java.lang.NullPointerException
    at oracle.iam.identity.usermgmt.impl.UserDetailsProviderImpl.getUserDetails(UserDetailsProviderImpl.java:102)
    at oracle.iam.notification.impl.util.NotificationUtil.getUserPreferences(NotificationUtil.java:83)
    at oracle.iam.notification.impl.NotificationServiceImpl.notify(NotificationServiceImpl.java:523)
    at oracle.iam.notification.impl.NotificationServiceImpl.notify(NotificationServiceImpl.java:271)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
    at oracle.iam.platform.utils.DMSMethodInterceptor.invoke(DMSMethodInterceptor.java:25)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
    at oracle.iam.notification.impl.util.NotificationUtil.getUserPreferences(NotificationUtil.java:83)
    at oracle.iam.notification.impl.NotificationServiceImpl.notify(NotificationServiceImpl.java:523)
    at oracle.iam.notification.impl.NotificationServiceImpl.notify(NotificationServiceImpl.java:271)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
    at oracle.iam.platform.utils.DMSMethodInterceptor.invoke(DMSMethodInterceptor.java:25)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
    Edited by: 853559 on Sep 25, 2012 6:27 AM

    If you are using Custom Notification XML, make sure to have StaticData element in it. StaticData defines the entitites that can be used in the notification template, and these entities attributes are used to define substitution tokens in the template.

  • Sending mails based on hierarchy  by using Oracle Alerts

    Hi All,
    From past five days i am facing problem in Oarcle Alerts that my requirement is i need to send mails based on hierarchy people by uisng oracle alert.
    In this need to send the mail only the different Hierarchy head person only and i need to do this by using alert only
    Can any one please suggest me for this.
    Any help is greatly appreciated.
    Thanks
    Anushka

    Hi,
    i have sql statement Now my problem is how to run 'Sql Statement Script' from Alerts, can you please suggest me on this .I believe this is explained in "Oracle Alert" manual.
    Applications Releases 11i and 12
    http://www.oracle.com/technology/documentation/applications.html
    Thanks,
    Hussein

  • Regarding [Work Flow] Business Object Event  Raise in ABAP Program

    Hi All,
    I have one issue regarding [Work Flow] Business Object Event Raise in ABAP Program.
    Actual TDS is as below:
    If E message type written, raise Business object BUS2005 (Production order) Event PickShortage for production order passing warehouse, transfer request
    (BUS2065 Object key) in event container.  Also include table of text version of error
    messages for this set of Transfer
    Request.
    Can anybody tell me how can i write it technically in ABAP Code.
    Can anybody solve this issue!
    Thanks in advance.
    Thanks,
    Deep.

    Hi,
    Can anybody solve above posted issue!
    Thanks,
    Deep.

  • Recognizing dates in mail and adding events to iCal

    How do I make OSX recognize dates in mail and add events to iCal?
    This works on my laptop, but not my iMac. They have the same new version of OSX and iCal.
    I cant figure out what setting makes this work on one machine and not the other.
    Thanks
    CM

    First make an iCal backup, File > Export > Archive.
    Remove the following to the trash and restart your computer:
    Home > Library > Caches
    Home > Library > Calendars > Calendar Cache, Cache, Cache 1, 2, 3, etc. (Do not remove Sync Cache or Theme Cache)
    If the issue persists:
    Remove the following to the trash and restart your computer:
    Home > Library > Caches
    Home > Library > Calendars > Calendar Cache, Cache, Cache 1, 2, 3, etc. (Do not remove Sync Cache or Theme Cache)
    Home > Library > Preferences > com.apple.ical (There may be more than one of these. Remove them all.)
    __NOTE: Removing these files will remove any shared (CalDAV, exchange, etc.) calendars you may have access to. You will have to re-add those calendars to iCal > Preferences > Accounts.
    Hope that helps.

  • Event raise failure

    I have an issue involving an event that  is being raised in a user exit that is being called in update.
    This works fine in dev and QA but simply will NOT work in production.
    The code runs perfectly and the call to SWE_EVENT_CREATE looks to function identically in all three systems. THE ONLY DIFFERENCE IS THAT IN PRODUCTION THE EVENT NEVER GETS RAISED.
    Can anyone suggest a possible cause for an event not raising in one system as opposed to another?
    This is driving me seriously nuts!!

    Hi Thomas. I posted here as I am not triggering a workflow just a function module that creates an inbound idoc. I will leave it here for another day and then close and repost in workflow if nothing comes out of this.
    Event type linkages are correctly configured for the object and event identically in all systems, those where the event is succesfully raised and that where it is not.
    Debugging the process shows that the code is behaving identically in all systems
    The only thing I can think of is that there is no "commit" taking place in the application transaction itself (VL32N) in production, but the article document for the goods receipt is being created so this cannot be true either. In fact if I go immediately to the create event manually facility in the workflow utilities and use the key that was visible during debug I then do get the event raised!! How wierd is that !
    Ross

  • Can Events in BW be based on Events in BO?

    Hi Experts, I wanted to see anybody has done this before. Can I build events in SAP BW based on events in SAP BO?
    If so, please help me with whats have to be taken?

    Hi,
    As I have seen events in BW has generated reports in BO but I am not sure about vice-versa. Check the below given document,
    [http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c09033ab-4593-2e10-5fa0-b23bcfa1575a?QuickLink=index&overridelayout=true]
    Regards,
    Durgesh.

  • List of Standard events raised by KM Repository?

    Hi ,
    I am looking for list of Standard Events raised by a KM Repository Framework.
    I could able to get Event ids for moving, deleting , renaming and opening.
    Actually I need to catch the event of new post in KM Repository.
    If some body can direct me to a document which gives me the list of all events  
    and Event ids I would be thankful.
    Thanks & Regards
    Mrutyunjay

    The javadoc for ResourceEvent is located at: <a href="https://media.sdn.sap.com/javadocs/NW04s/SPS7/km/com/sapportals/wcm/repository/manager/ResourceEvent.html">https://media.sdn.sap.com/javadocs/NW04s/SPS7/km/com/sapportals/wcm/repository/manager/ResourceEvent.html</a>.

  • Non mail based calendar

    Is there a way to add a calendar to iCal that is not web/mail based? There used to be. I could have a variety of calendars... personal/work/kids and now after screwing up a sync. I only have calendars that are through my email addresses and I also cannot figure out how to change the default calendar! I just want to put things on my calendar that are specific to the computer and not being added to a yahoo or google calendar!

    Hi,
    To do that you need to temporarily turn off the synced calendars, make a new local calendar and turn the synced calendars back on.
    From iCal (or in OSX 10.8 Calendar) open Preferences > Accounts and uncheck 'Enable this account' for all the accounts you find there.  Close the Preferences window. Then from the File menu select 'New Calendar" and name it.  Then enable the synced accounts in Preferences > Accounts again.
    I hope this helps.
    Best wishes
    John M

  • Event raised

    Hi,
    Is there any event raised when we create customer/update customer with new sales data in transactio vd01.
    Regards,
    Sharadha

    Hi,
    1. Go to transaction SWELS and swich on the event.
    2. Then go to vd01 and create customer.
    3.  Go to transaction SWELS and swich off the event.
    4. Go to transaction SWEL. it will displays the events regarding your process.
    Thanks,
    Reward If Helpful.

Maybe you are looking for

  • Sidebar - How to turn off and keep turned off?

    I cannot seem to find a way to turn off Sidebar for good, so that it will not reappear after a "repair permissions" or sometimes after "restart". Is there a way to get rid of Sidebar for good. Please advise. Thank you.

  • Excel Import - No good for large-ish datasets?

    Hi, I'm trying to import some Excel data into an Oracle table... The data is very simple - varchar2(9), varchar2(9), varchar2(11). There are 40k rows in the spreadsheet with three columns corresponding to the above. When I try to import from the spre

  • Can "New" Corner Banner Be Removed From Movies and TV Shows?

    After loading 7 seasons of The Big Bang Theory on iTunes 11, I see that iTunes has now slapped a Blue "New" banner on the upper right corner of all my new season titles of The Big Bang Theory (see attached photo) -. and I also see that after loading

  • Query running longer time

    Hi All, when i run the query in Analyzer,it is taking longer time.the query is built on DSO. can anyone give me inputs why the query is taking much time Thanks in Advance Reddy

  • FRM-92101 No longer being raised

    After applying (9.0.4) Patch Set 1 (9.0.4.1.0) and OPatch 3901078, when a forms session is aborted (due to an Access Violation or having been killed from OEM) the applet on the client simply hangs. Prior to applying the patches, this would have raise