Starting a job with 2 conditions (User Event and end of job)

Hello ,
I'd like to make a process SAP which start a job depending
on 2 conditions :
Condition 1 : raise an event
and
Condition 2 : end of another job
I know that it 's possible for each conditions but is it possible for both conditions ?
Thank you

hi again,
Ok, i'm sorry, my english is not yet fluent.
I'm searching a solution for an SAP administrator.
Here is his problem :
He must launch an Abap program with a job1.
The abap programm  :
1>generates a spool in which you can find status code like OK or NOK and
2>raises an event (EVT_CONTINUE) only if the spool contains OK code.
Afterwards, The administrator wants to launch job2 if
2 conditions are OK :
Condition 1 : EVT_CONTINUE is raised
Condition 2 : job 1 is terminated
My question is : is-it possible with a transaction like sm36 or another to do that. (my objective is to avoid
writing an abap program)
thanks

Similar Messages

  • Batch job scheduling based on Event AND for the job to complete

    I am trying to schedule a background job based on an event AND based on the job finishing itself.
    Example:
    Job name: Send_Message
    After Event: SAP_NEW_PROCESS Message
    Program:  Program xxxx
    I want that the Send_Message job only runs when the Event SAP_NEW_PROCESS message happens AND the Send_Message job is not running.
    Right now, I could only schedule it based on the event SAP_NEW_PROCESS Message which means that everytime this event happens the job runs and I end up having the job "Send_Message" in multilple intances where the others will immediately cancel since the first job is still running and so I end up with a lot of Cancelled job when it is not necessary to run them all when there is already 1 instance of the Job running.
    How do I set it up in SAP?

    Thanks but I am new to SAP having to set up a batch job.
    The Event "SAP_NEW_PROCESS_MESSAGES" is a standard SAP Event.  We used that such that when a new transaction comes in, the batch job will run but we don't want to run the batch job if the same batch job is already running.
    YOu mentioned that I should set up Job_0.  Do I need to create an ABAP prorgram to check if JOB_1 is running?  How do I set up Job_0?  What is the trigger for my Job_0 to run?
    You also said that I set up Job_1 and trigger that based on the outcome of Job_0 AND at the same time be triggered by the event "SAP_NEW_PROCESS_MESSAGES".  How do I set up  this Job_1 so that it can be triggered by both Job_0 and a new transaction coming in(SAP_NEW_PROCESS_MESSAGES).
    if you can provide me the step by step guide as I am new to this and I only know basic.
    The current set up I have is
    Job_1
    Job Start:
          After Event
                Event: SAP_NEW_PROCESS_MESSAGES
          Step 1: program to run RCOCB002
    I was thinking following your suggestion is this:
    Job_0
    Job Start
          After Event
                Event: SAP_NEW_PROCESS_MESSAGES
          Step 1: program to run - What will be my program to run?
    Job_1
    Job_Start
          After Event
                Event: What will be my trigger for Job_1 and how do I set it up?
          Step 1: program to run RCOCB002
    Edited by: Shirley Te on Mar 10, 2010 3:25 PM

  • Start Database Service with another user

    Hi Everyone ,
    i've a little problem with the Oracle 10 Console Service on a W2K3 server.
    I want to start that Service with another user as "Local System"
    I created a local user that is member in the "ORA_DBA" group and in the local Admin Group. But the Service won't start. When i start the service with the "local system" account it starts.
    Is there another possibility to start the service this way or where is my error ?
    Greetz Byte

    Hi
    I searched metalink and came across a note that mentioned following actions. I hope it works in your situation.
    1. Launch locally on the windows host the Local Security Policy tool
    2. For the domain user or local user starting the Management Agent service
    Give the following Advanced Privileges
    - Log on as a batch job
    - Act as part of the operating system.
    - Adjust memory quotas for a process
    or (for windows 2000 and Windows NT)
    - Increase memory quotas"
    - Replace a process level token.
    3. Ensure that the same local user or domain user starts all the other Oracle Windows services monitored by the Management Agent
    The same fix must be applied for the standalone dbconsole service on windows.
    Rgds
    Adnan

  • Problem starting a workflow with a timed event.

    Hi all,
    I am trying to start a workflow with a timed event this way,
    Start Date Expression: StringToDate("20:09", "HH:mm")
    Reschedule: 1 day
    I save the workflow at 20:07, but nothing happens at 20:09.
    Any hints?
    Thanks in advance.

    Hi Thomas,
    Wf-XML was implemented when XI wasn't even a glint in SAP's eye. The message arrives in the SAP Web AS and triggers a workflow directly (or responds to an incoming workflow request message).
    Exception: prior to the 6.10 release of the Web AS the incoming messages are received in an ITS.
    Best regards,
    Alan

  • Who scheduled a job with service user

    Hi,
    In my one of the system one job is running with service user. As service user cannot log into system. One of the dialog user logged in to system and scheduled one job with service user. this job is running more than 2 months. Now we want to know who is that dialog user scheduled this job with service user.  I have checked in job details it is not showing dialog user who has sheduelded first time.
    Pls someone help me in this case.
    Kind regards,
    Ram
    <subject_modified>
    Use a proper subject
    Read the "Rules of Engagement"
    Edited by: Juan Reyes on Jul 1, 2009 10:25 AM

    Just check the job owner.... If the Owner is the service user then most likely the user was changed to service user after the job creation. Also be aware that some jobs are generated by the system.
    Regards
    Juan

  • HT204053 I did not know my kids had set up an Itunes account for me with one user name and password.  then i got an i phone and set it up with a different email address and new password.  how can i get my accounts to merge so i can have all of my music on

    I did not know my kids had set up an Itunes account for me with one user name and password.  then i got an i phone and set it up with a different email address and new password.  how can i get my accounts to merge so i can have all of my music on my iphone

    Quote: "You cannot merge two or more Apple IDs into a single one. You can, however, use one Apple ID for iCloud services and another Apple ID for store purchases (including iTunes in the Cloud and iTunes Match). See “Using one Apple ID for iCloud and a different Apple ID for Store Purchases” above for details." See also Apple ID & iCloud FAQ: http://support.apple.com/kb/HT4895?viewlocale=en_US&locale=en_US
    You can set up your iCloud account on your iOS device under: "Settings > iCloud" and a other account for store purchases under "Settings > iTunes & App Stores". Unfortunately merging accounts is not possible but you could transfer all of your music manually via iTunes from your Mac or PC.

  • My G5 won't boot up. The Gray screen comes on and it thinks about it until the fan revs up like it is about to explode. A friend said to start it up with the OS disk and then go to utilities. Didin't work. Any suggestions? Isn't there a key stroke to help

    Oh, so this is where I ask my question. Sorry, first time here. As I was saying in my long intro, the gray screen come up and the thing is spinning at the bottom, but nothing happens. Then the fan starts reving up like it is about to explode and I have to manually shut it off. A friend told me to start it up with the OS disk and then go to utilities. I couldn't find the thing, so I went out and bought another. Needless to say, it didn't work. Is there a key stroke to help jump start the machine? How can I get into this thing? I would prefer not to take it in because there are a lot of things on there I don't want just anyone to have access to.Thanks, in advance, for your help!

    The last time you had to hold down cmd opt pr more than twice was a decade ago....
    G5? PowerPC? 10.5? or earlier....
    https://discussions.apple.com/community/desktop_computers/power_mac?view=discuss ions
    Apple has a number of resources like "Power or Startup Quick Assist"
    http://support.apple.com/kb/HT1149
    Your drive does need to be repaired, and best things to buy are another backup recovery drive, with a small OS X partition; a copy of Disk Warrior is expensive @ $90 but excellent and best.
    Never bother with or use the drive or reinstall while there are errors. Don't take a "clean' bill from Apple Disk Utility to mean there are no errors. Only that it didn't find what it looked for.
    http://www.macintouch.com/readerreports/harddrives/topic4557.html#d12aug2010
    http://www.alsoft.com/DiskWarrior/index.html
    A quick search "keyboard shortcuts" takes you here:
    http://support.apple.com/kb/HT1343
    how to resolve and fix startup issues with fsck and disk utility:
    http://support.apple.com/kb/TS1417
    http://macperformanceguide.com/Mac-HowToClone-backup.html
    http://macperformanceguide.com/Mac-HowToClone.html
    How to use DU to backup and restore
    http://support.apple.com/kb/HT1553
    http://www.alsoft.com/DiskWarrior/index.html
    http://www.bombich.com/ccc_features.html
    Make sure to have multiple backup sets and of your system so if there is a serious problem, you can just erase and restore to be back runninig.
    Sounds like your G5 though needs PMU reset, not PRAM, and the best way for those is to clear nvram instead. might even want to check for dust; tell what System Profile says (later) as to "PowerMacX,Y" or "MacProX,1"
    http://www.apple.com/support/powermac or /macpro
    http://www.apple.com/support/sitemap/
    The Utility menu is on the menu bar of an "OS X Install DVD" and at the point where you get to but stop at "install....' for OS X. you probably do need to install OS X on another drive to work from.
    Oh, a real severe issue and damage to the drive directory or filesystem CAN in cases prevent booting from DVD (the system still tries to find and see what boot volumes are present) and can help to pull or disconnect the drive. Putting a drive in a FW case to turn on after startup is very useful.

  • Hi,  Trying to log in with my user id and password at iocbc but was not able to access. Problem message shown : Applet not initialised or may not be supported. Please refresh the page or check the browser setting  Anyone can advise? or i need to download?

    Hi,
    i have the same problem?
    Trying to log in with my user id and password at iocbc but was not able to access.
    Problem message shown : Applet not initialised or may not be supported. Please refresh the page or check the browser setting
    Anyone can advise?

    You need to install Java for your Mac OS version, and/or make sure it's enabled in the Java Preferences application and your browser's preferences.

  • Party communication channel for multiple stores with multiple user id and passwords in sap pi

    Hi Exeperts,
    I have a scenario proxy to SAOP . where i am sending some information from my stores to third party company   with single user id and password in communication channel.
    but requirement  is changed now  i have 20 stores  with 20 user id and password for communication channel.how can i achieve this requirement?
    Can i create 20 communication channels  for 20 stores  or can handle through the party based communication ?
    Please  help us achieve the requirement.
    Regards
    Ravinder.s

    Hi,
    In the SOAP Receiver adapter, you can only store 10 userid/password combinations via Authorization Keys. These are called via Dynamic Configuration via technical name TAuthKey. In your case, for it to work, you need:
    1. 2 business components/2 SOAP receiver communication channels.
    2. 1 receiver determination with xPath for username to determine correct business component
    3. 1 interface determination
    4. 2 receiver agreements (one for each cc)
    Hope this helps,
    Mark

  • Hello. I have an ipod touch 4th generation. I have been trying to work facetime and imessage for 3 days, i sign in with my user ID and it says signing in and verifying but then it goes back to the sign in page. Can anyone help?

    Hello. I have an ipod touch 4th generation. I have been trying to work facetime and imessage for 3 days, i sign in with my user ID and it says signing in and verifying but then it goes back to the sign in page. Can anyone help?

    I disabled all my computer's firewalls and sure enough, IT WORKED!! My iPod is updated and just now finishing restoring! Thank you SOOOO SOOO much. : D

  • After updating to iOS7 I am trying to log in the Game Center with my  user ID  and it says that is in use and I need to enter another one?

    After updating to iOS7 I am trying to log in the Game Center with my  user ID  and it says that is in use and I need to enter another one?

    You may be able to find your Apple ID at Look up your old and forgotten Apple ID

  • TS3931 I cannot get my Macbook air to move off the start up screen with the Apple logo and spinning gear.  HELP!!!!

    I cannot get my MacBook Air to move from the gray start up screen with the Apple logo and spinning gear.  Please help

    I cannot get my MacBook Air to move from the gray start up screen with the Apple logo and spinning gear.  Please help

  • How to start Integration server with the user XISUPER

    Hi,
    How to start Integration server with the user XISUPER?
    Regards,

    Mahesh,
    In the post installation document, under Creating User XISUPER,
    I see the following,
    1.You must now log on to the Integration server host with the user XISUPER, to switch the initial password to a valid password.
    2.You must restart the J2EE engine to transfer the user creation to the J2EE immediately.
    I am unable to proceed here.Can you please help me to resume the post installation steps ?
    Thanks,

  • How do you start a loop with an event and end the loop when u release ....

    How do you start a loop with lets say an event of some sort, whether it be holding down a key or pressing the mouse click and then stopping the loop when you release that key or mouse button.?
    double c = 1.8, i = 1, max = 90, exp = 0;
    final double inc = 0.002; //speed at while it increases
    boolean f = false, g = false;
    while (true)
        while (f == false && stopMeter == false) //increasing speed going up to 90
            exp = Math.pow (c, i);
            i += inc;
            pAngle.setText (Math.round (exp) + "");
            if (exp > max)
                f = true;
                g = false;
            } //end if
        } //end while
        while (g == false && stopMeter == false)  //decreasing speed going down from 90
            exp = Math.pow (c, i);
            i -= inc;
            pAngle.setText (Math.round (exp) + "");
            if (exp < 1)
                g = true;
                f = false;
            } //end if
        } //end while
    } //end whilethis is a snippet of my increasing increments. Its for an angle meter. I can't get it to stop, when the user clicks or does something... the program just gets stuck in an infinite loop. I am still new to java and i do not know how to fix this.

    You are in the wrong forum. Try this one instead: http://forum.java.sun.com/forum.jspa?forumID=31
    /M

  • Starting/Stopping a polling loop with a user event.

    I keep reading on this forum that placing a loop inside a user event structure is a bad idea because it disables other user events from triggering.  However, it seems like a good idea to be able to start and stop a loop from a user event (like a button being pressed or de-pressed) and it seems like a good idea to not have the loop waist CPU resources while it does not need to be running.
    So what are the solutions to this?  Is a notification the best approach?
    Attached is my solution.  Is there a more graceful approach to this problem?
    Aside: Why are boolean controls that are of the "Latched" mechanical action always pressed in after their event fires?  For instance, the stop button on the attached VI?  Shouldn't it be depressed after the user clicks on it because it is "Latch when released?"  I've always wired "false" constants to 'variables' of these controls after the event structure fires, but do not find this approach very graceful.
    -Nickerbocker
    LV 8.5
    Attachments:
    Wait for Notification for Polling Loop Test.vi ‏25 KB
    wait for notification for polling loop test.jpg ‏61 KB

    Nickerbocker wrote:
    If an error is generated on the first itteration, then the loop is terminated with that error line.  Right?
    Wrong! The loop cannot terminate until everything in it has terminated. RIght now it will stall at the event structure no matter what until an event occurs. At this time it is sufficient to get the error piped through the event structure. If you are worried about an error in creating the notifier (anything that happens before the loop starts), you shold place your entire later code inside a case structure wired to the error so the loops don't even start.
    Nickerbocker wrote:
    Can multiple event structures exist in the same block diagram?  For some reason I was under the impression that there could only be one event structure that fires at one time.  If that structure was in execution then no other Event Structures could fire....  if my information is wrong, then I like your solution.  If it is right, then I don't like your solution .
    Your information is wrong again. You can have as many event structures as you want, and all is well as long as all event structures can execute in parallel. So make sure they are in independent loops.
    (If you would place two event structures in the same loop, both must trigger for the loop to complete the iteration, probably something that does not make a lot of sense. So don't do that!).
    LabVIEW Champion . Do more with less code and in less time .

Maybe you are looking for