Redwood CPS - how to define dependant jobs?

Hi
I am trying to schedule a job to run only after another job has ran successfully using Redwood CPS. I understand that the best way to do this is as follows:
1) Define an new event - e.g. JOB_COMPLETION
2) Define a new Job Chain, and assign a Step and a the first job to run to this. Set the 'Raise Events' tab to JOB_COMPLETION and the drop down box 'Status To Raise On' to 'Completed'
3) Define another new Job Chain with a Step and the next job you want to run after completion of the first job. Set the 'Wait Events' tab to JOB_COMPLETION and Auto Submit to 'Always' and tick the 'clears event' tick box
4) Right click on the first Job Chain and Submit - set a time for the job to run.
What happens: the first job chain/step runs okay. Looking at the event JOB_COMPLETION it says both the Raise Event and Wait Event were both executed - and cleared afterwards - yet the second Job Chain was never ran? In the job status, it says 'Never'.... any idea how I get this to run on completion of the first job?
Thanks
Ross

Answered in the CPS forum:
Hi Ross,
I think the best way to do it is to just use the jobchain object. You can do as follow:
- Create a jobchain with 2 steps
- First script in the first step, second script in the second step
By default, script 2 does not run if script 1 failed.
Regards,
Yi Jiang

Similar Messages

  • How to define dependancy between sowtware comps in the SLD

    how to define dependancy between sowtware comps in the SLD,
    i have a software comp, in the IR, where i import all RFCs and IDOCs, so that they can be used across all software comps in the IR,
    since, IDOCs imported in one software comp, cant be used in another s/w comp,
    i need to create that dependancy..............................
    how can i mention the dependancy in the SLD....

    Hi,
    Please read the Rules OF Engagement,
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement&
    <i>
    Do not use words in capital letters and any of the words: urgent, quickly, burning, etc in your message. Especially not in the title! This just irritates and does not help you get to your goal. From our side, we definitely do not answer faster when we see these words.
    The same goes for such things as ??? or !!! in appends. In the English language one ? or ! is sufficient to terminate a sentence. </i>
    Answering you question, Say you have 2 SWCV's. SWCV A and B. All objects imported in SWCV A should be visible in B. In this case, go to SWCV B and in this, Go to the Dependency Tab , and Select SWCV A here as the dependent Component.
    In your IR, Clear SLD Cache and Reimport the 2  SWCV's into the IR and now you will see the Basis Objects in SWCV B. All the existing objects will not be affected as a result of this reimport into IR.
    Regards
    Bhavesh

  • How to schedule dependent job in oracle

    I would like to schedule a job which should be dependent on the completion of previous job. How is it achieved in oracle 10g

    refer to this examples about DBMS_SCHEDULER.CREATE_CHAIN to form job dependency.

  • How to define front-ground job

    Hi
    I know to use SM36 to define background job. but there is some formal problem if we run ABAP rerport in background. So, I want define a job in front-ground at night.
    anybody can tell me that how to define a job in front-ground at night!
    Thanks
    Henryr

    It sounds as if you need to change the print format settings so the report will fit on the page, or remove columns from the report.
    You can change the print specifications in SM37 via the "Print specifications" push-button in the job step creation dialog. In the "Background print parameters" pop-up, select your printer and then the "Properties" push-button. That leads to a pop-up where you can change the print format i.e. the number of columns printed on the page.
    best wishes
    Ed

  • How to schedule a job in SAP CPS

    Hi,
    I am new to SAP CPS.
    So please tell how to schedule a job in SAP CPS. And which kind of job cam be schedule means BAP report.
    Thanks
    Anurodh

    Hi,
    In the installation and administration guide you'll probably find some examples.
    The Job Definition you need is SAP_AbapRun to run any ABAP.
    You submit this, specify the parameters as desired, and scheduling information, and that should do the trick.
    That is assuming you have already connected CPS to an SAP system.
    Check the topics in the docs within the product and on SDN on:
    - Connecting to an SAP system
    - Submitting Jobs
    - SAP_AbapRun
    Regards,
    Anton.

  • Redwood CPS job goes to status ERROR but job works completes ok in SAP

    Hi
    When I schedule a particular ABAP job to run in SAP from Redwood CPS it always completes with the Error status in CPS, but the job runs okay and ends in the Finished status in SAP.
    I tried a different ABAP job and this ran okay, with the CPS status going to Completed.
    I had a look at the CPS log files for the Erroring job and there were no errors in the 'log' file but in the 'step1/spool1' file there is the line 'Processing completed with errors'. Is CPS doing a little more than SAP as regards checking job statuses and looking in the spool file for errors?
    Checked the operator messages and all it says is:
    Job 1501323 (submitted from ZGB_FI_KO8G_SETTLEMENT copy from 2009/08/24 15:34:54,250 Europe/London)) has aborted due to at least one error while running the jobs in step: Job 1501324 (submitted from ZGB_FI_KO8G_SETTLEMENT copy from 2009/08/24 15:34:54,250 Europe/London))
    - doesn't elaborate why the job has status Error.
    Is this saying the CPS part had an error or the ABAP part??
    Ross

    Hi Anton
    I checked the Return Code Mapping for this system and it is empty. No post running action or a trigger has been configured.
    The first time I was having the error was after setting up a 2 step job chain. When I got the error (and the second step didn't run) I then submitted this first simple step from the job definition SAP_AbapRun in case there was an issue with the way I'd configured the chain; it still errorred though. All I am specifying is the ABAP program name, SAP job name, variant and queue to run on, and it does run okay in SAP.
    When you say "The actual error should be available in the logfile of the SAP job itself" do you mean the joblog as viewing in SM37? There are no errors in there.
    I'll have a play with the Return Code Mapping part as if CPS does search the spool for errors (perhaps by default?) and sets the status to error in CPS, I don't want it to stop the chain - although I guess I can always set the post action of step 1 to 'on error' 'continue'...
    Cheers
    Ross

  • Oracle HA Setup - how to define resource dependency !

    - I have one resource group :
    oracle-rg- I created three resource in this resource group:
    oracle-ha-rs ( type SUNW.HAStoragePlus)
    oracle-listener-1 ( type SUNW.oracle_listener )
    oracle-server-1 ( type SUNW.oracle_server )Now how do I define dependency between the resources? or a specific sequest when switching?
    I am asking this because everything are working okay(except shutdown). When I switch, Oracle comes up on failover Node and vice-versa.
    But during switch the oracle-ha-rs resource goes offline first, and then the resource oracle-server-1 and oracle-listener-1
    Since the filesystem is unmounted FIRST it crash the oracle instance(oracle shutdown cmds are fired .
    Question: I want to sequence it as follows during switching how do I do this?
    Current Node:
    - oracle-server-1 : Stop Oracle server
    - oracle-listener-1 : stop listener
    - oracle-ha-rs : Unmount filesystem
    Failover Node:
    - oracle-ha-rs : Mount filesystem
    - oracle-server-1 : Start Oracle server
    - oracle-listener-1 : Start listener
    Sun Log
    Jul 22 17:59:50 SC[SUNWscor.oracle_server.monitor_stop]:oracle-rg:oracle-server-1: Stopping fault monitor using pmfadm tag ORASERV_MON_oracle-server-1
    Jul 22 17:59:51 SC[SUNWscor.oracle_server.stop]:oracle-rg:oracle-server-1: Using method 'run_setuid_prog' to execute shutdown commands
    Jul 22 17:59:51 SC[SUNWscor.oracle_server.stop]:oracle-rg:oracle-server-1: Stopping oracle server using shutdown immediate
    Shutting down Oracle instance: ORAHA  : /u01/binary/oracle/product/10.2.0/db_1.
    SQL*Plus: Release 10.2.0.1.0 - Production on Wed Jul 22 17:59:51 2009
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected.
    SQL> ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    Solaris-AMD64 Error: 2: No such file or directory
    SQL> Disconnected
    Executing command: /opt/SUNWscor/oracle_server/bin/oracle_server_manage shutdown immediate
    Jul 22 17:59:56 SC[SUNWscor.oracle_server.stop]:oracle-rg:oracle-server-1: Server stopped successfully.Oracle Log
    Wed Jul 22 12:46:50 2009
    Completed: ALTER DATABASE OPEN
    Wed Jul 22 17:59:53 2009
    Errors in file /u01/binary/oracle/product/10.2.0/db_1/rdbms/log/oraha_ckpt_16333.trc:
    ORA-00206: error in writing (block 3, # blocks 1) of control file
    ORA-00202: control file: '/global/u01/oradata/ora_control2'
    ORA-27063: number of bytes read/written is incorrect
    Solaris-AMD64 Error: 5: I/O error
    Additional information: -1
    Additional information: 16384
    ORA-00206: error in writing (block 3, # blocks 1) of control file
    ORA-00202: control file: '/global/u01/oradata/ora_control1'
    ORA-27063: number of bytes read/written is incorrect
    Solaris-AMD64 Error: 5: I/O error
    Additional information: -1
    Additional information: 16384
    Wed Jul 22 17:59:53 2009
    Errors in file /u01/binary/oracle/product/10.2.0/db_1/rdbms/log/oraha_ckpt_16333.trc:
    ORA-00221: error on write to control file
    ORA-00206: error in writing (block 3, # blocks 1) of control file
    ORA-00202: control file: '/global/u01/oradata/ora_control2'
    ORA-27063: number of bytes read/written is incorrect
    Solaris-AMD64 Error: 5: I/O error
    Additional information: -1
    Additional information: 16384
    ORA-00206: error in writing (block 3, # blocks 1) of control file
    ORA-00202: control file: '/global/u01/oradata/ora_control1'
    ORA-27063: number of bytes read/written is incorrect
    Solaris-AMD64 Error: 5: I/O error

    E.g. using this:
    # clresource create -g resource-group \
    -t SUNW.oracle_listener \
    -p LISTENER_NAME=listener \
    -p ORACLE_HOME=Oracle-home \
    -p resource_dependencies=storageplus-resource resource
    Copied from the docs at http://docs.sun.com/app/docs/doc/820-3041/chdiggib "Sun Cluster for Data Service Oracle Guide"
    Regards
    Hartmut

  • How to define job for V_V2

    Can anybody tell step by step "how to define job for V_V2"?
    Thanks in advance for the answers.....

    BElow there exist a good document:
    http://www.scribd.com/doc/39230554/Background-Job-Scheduling-in-SAP#source:facebook

  • How to uninstall Redwood CPS version 6 SP 10

    Hello All,
    I am looking to uninstall Redwood CPS version 6 SP 10 and replace it with the SAP/CPS version that is integrated in NetWeaver 7.0.  How do I go about doing this ?
    Thank you.

    Hi Charles,
    There's uninstall information available in the online help, under Cronacle > Installation > [your platform] > Uninstalling Cronacle.
    Let me know if you need anything else.
    Regards,
    Anton.

  • How to define job with different username

    Friends,
    How can I define a job with another username . Or how can I change a job running with a user name to another username. Please advise.
    Thanks.

    You can change the ID of the user than is used to run each step of the job, but not the user that created the job. In SM37 go into the job of interest (the next scheduled job) choose Job -> Change. From here choose the steps and go into each job step by choosing Change, the first field in the pop-up holds the user ID that will be used to run that step when the job is executed.
    The user ID that created the job will still show in the SE37 job overview, it it nolonger plays an active part in the job.
    ~As found in forum

  • Editing process chains of BW in Redwood CPS

    Hi All,
    I have imported the BW process chain in Redwood CPS (SAP_BW_ImportProcessChains) and ran the same through Redwood (SAP_BW_ProcessChainRun). It was running fine.
    Now the requirement is to edit few steps (in sub processes of the main chain) and add new steps in redwood is it possible? (Main reason is to create dependency of sub process with other system job)
    I am trying to edit the sub chains but I am not getting any edit option in sub chains to put some dependencies.
    Experts need your suggestion on the same and I appreciate if any document or print screen is available to support your suggestion.

    Hi Babu Murthy,
    Thanks for sharing your views I really appreciate it. I know that this is the only option but our requirement is to add other system jobs specially the operating system jobs (UNIX/SOLARIS) in between the BW process chain. It is not possible to add the operating system jobs in SAP (if possible please let me know) that is why I want to edit the chains at Redwood level.
    Moreover, I am trying to create manual chains in Redwood as same as we have in BW system (but it is too much complicated and I don't think so it will work). Is this a good option? Or any thing else I can do for this?
    Please share your comments.

  • Comparision BMC Control-M to Redwood CPS

    Hi,
    We are in process of migrating a production system which currently using Control-M. Looking for a job scheduling tool which can cater to our heavy batch load. With regards to this had following questions,
    1. Does the REDWOOD CPS have similar cpabilities compared to that of Control-M, in terms of large number of batch scheduling jobs.
    2. Does the REDWOOD CPS capable to handle batch flows in sequence.
    3. Does the REDWOOD CPS have alerting mechanisms set in case of job failure. Control-M has the ability to alert ITO through the tools such as HP Openview.
    4. Does REDWOOD CPS have calenders, similar to that of Control-M, and lastly
    5. Do we need to purcase additional licenses for REDWOOD CPS.
    Thanks and Appreciate your help
    Regards,
    Abhi

    Hi Abhi,
    To answer your questions:
    1. Yes, CPS can handle large numbers of jobs
    2. Yes, CPS can handle both parallel as well as sequential dependencies within and between batch flows
    3. Yes, CPS can also send out alerts in case of error, also to Openview/ITO and similar tools
    4. Yes, CPS offers calendaring functionality, you can reuse existing SAP calendars (factory calender for instance), and you can define your own calenders by selecting dates or by defining rules so that you no longer have to prepare calenders for instance every year (rules like last friday of the month, but if that is a public holiday then the last workday before that friday etc.)
    5. To answer this question, I would need to know more about your requirements. There is a free version with restrictions and there is a paid version. The differences are detailed in documentation on the SMP or SDN, and are also described in regular webinars hosted by SAP and/or Redwood.
    Regards,
    Anton.

  • How to schedule a job which needs to run evry day 1(AM) o clk?

    begin
    DBMS_SCHEDULER.create_job (
    job_name=> 'BJAZPROPMAINTAIN',
    job_type=> 'PLSQL_BLOCK',
    job_action=> schemaname.schedule_procedure;',
    start_date=> '02-aug-08 01:00:00 PM',
    repeat_interval=> 'FREQ=DAILY; BYHOUR=01',
    enabled =>TRUE,
    auto_drop=>FALSE);
    end;
    Hi all,
    i want to schedule a job which needs to be run every day one o clock early morning i haven't set the job_scheduler before this. by searching thru net and prev scheduler coding i have written the above code here for running evry day early morning 1 o clock i m little bit of confused in the time
    repeat_interval=>'FREQ=DAILY;BYHOUR=01'; whether is is correct one or wrong?
    and also there are some other job is scheduled in the same time . will it create any problem of executing at the sametime or we need to change the timing of 1:15 like that?
    please advise me..

    Thanks a lot so it will be executing every night 1 o clock am i right?
    It should.But I shall say that schedule it and than only we can be sure about it.About the timing part, its correct syntatically.
    i saw that job_priority column in dba_scheduler_jobs table but dont know what it does?
    and also how can fetch this job scheduler sid,serial# i checked v$session but how to correlate this ..
    please explain me
    In schedulerjobs,there is a column ,client_id.You can map it to the sid from the V$session.I don't have a box running Oracle at the moment so I wont be test it for you.Do it and post feedback.
    what will happen if more than one job is scheduled in the sametime
    i think for this only we set the priority on the two which one needs to be first exec(depends on the high priority)
    let me know about this.
    Jobs are prioritized by two parts,within the class they are a part of and individualy.If you have two jobs in the same class than they can be make run with a different priority with the priority clause set within them.This has a number which start from 1 meaning highest priority.So if there are two jobs scheduled for the same time,you need to check which job class they fall into. If they are in the same class than you have to change the priority of them.
    I suggest you read the books,they cover all these topics in much more detail.
    Also there is a dedicated forum about Scheduler.In future for Scheduler regarded questions, you can visit there.
    Scheduler
    Aman....

  • How to create a JOb

    Hi Experts,
    Previously i waw using bdc and was creating session.
    Now in place of BDC i am using BAPI .
    Now i cannot create  a session  so i am creating a job.
    Problem is that when i use bapi the record is created at same time.
    So before execting Job  using transaction SM37
    the records gets created.
    Can any  body please explain me how to solve this issue.
    Thanks & regards,
    Chetan

    Hi chetan,
    To create a new batch job you can go to transaction Sm36,wherein you can define the job name,job class and target server..then you can go to start condition and select whether it is a periodic job,or immediate job and accordingly you can schedule the job..Also the very important thing is in the Step funtion you should have valid ABAP program or any external program which should be used at the background...
    If you know the program then you can go to SE38 and create a variant for that program which can be later used in the newly created job.You can also copy an existing job and modify it according to the requirement by checking the job details in SM37.
    Just to summarise the Key transactions are : SM36 and SE38.
    JOB_OPEN: Create a Background Processing Job
    Use JOB_OPEN to create a background job. The function module returns the unique ID number which, together with the job name, is required for identifying the job.
    Once you have "opened" a job, you can add job steps to it with JOB_SUBMIT and submit the job for processing with JOB_CLOSE.
    For more information, please see the online documentation in the function module facility (transaction SE37)
    Sample Program: Creating a Job with JOB_OPEN
    Create your job with JOB_OPEN. The module returns a unique job
    number. Together with the jobname, this number identifies the
    job. Other parameters are available, but are not required.
    JOBNAME = 'Freely selectable name for the job(s) you create'.
    CALL FUNCTION 'JOB_OPEN'
    EXPORTING
    JOBNAME = JOBNAME
    IMPORTING
    JOBCOUNT = JOBNUMBER
    EXCEPTIONS
    CANT_CREATE_JOB = 01
    INVALID_JOB_DATA = 02
    JOBNAME_MISSING = 03
    OTHERS = 99.
    IF SY-SUBRC > 0.
    <Error processing>
    ENDIF.
    thanks
    katrhik

  • How to define keys in target DSO

    hi gurus!!
    ..can you please extrapolate on how to define key in target DSO and transformation logic.. (please refer to below discussion from for scenario from earlier posting)
    thanks in advance
    I have data from 3 datastore objects which I need to update one infocube. However, I need the data to come together to form one line per record. I've found that if I update the cube directly from the 3 DSO I get 3 lines rather than one, and if I update them all to a DSO and then to the cube, the same thing happens because I take the data from the change log.
    If I go via an InfoSet, I can not do a delta upload to the cube.
    I need this to run a min of once an hour.
    Any tips or advice would be greatfully recieved.
    Thanks
    Alice
    answer:::::
    You need to have an common key fields set in all of the three transformations.
    In your case it is probably:
    The key in target DSO is: k1..k3
    ODS1 - updates key k1, leaves k2, k3 empty
    ODS2 - updates key k2, leaves k1, k3 empty
    ODS3 - updates key k3, leaves k1, k2 empty.
    If you have it that way, you will end up with three records, instead of one.
    k1, empty, empty
    empty, k2, empty
    empty, empty, k3
    To resolve this, all of the source DSO must be able to determine and set a common key part in the transformations.
    Target ODS:
    Key K1,
    ODS1 - updates K1, key figures/characteristics from ODS1
    ODS2, updates K1, key figures/characteristics from ODS2
    ODS3, updates K1, key figures/characteristics from ODS3
    result:
    K1, key figures/characteristics from ODS1, then
    K1, key figures/characteristics from ODS2 - result is - previous record's key is overwritten, but the key figures/characteristics are mapped to the correct infoobjects (depending on how you set the transformation....)
    K1, key figures/characteristics from ODS3 - as for ODS2.
    The final result:
    K1, key figures/characteristics from ODS1, key figures/characteristics from ODS2, key figures/characteristics from ODS3.

    Hi,
           As thomas said you maintain your keys same as your source DSO's  in the target DSO.This is how the procedure goes when no specification for the keys are given.So maintain same keys which are in the sources.
    Regards
    Karthik

Maybe you are looking for

  • Issues with Service Tax Condition Type.

    Hi All, Where in IMG do you define Region. When I am trying to create a condition record for the Condition Type ZSRT Service Tax under the access sequence, Country Plant Region Material.the system throws the following error SDC SAP System Message Wor

  • Itunes won't recognize device, nor ipad 2 or ipod. Itunes 64 bit on win 7 64 bit.

    Everytime i try and sync the ipod or ipad it says that i don't have the required software for syncing. Therefore i should uninstall and reinstall itunes 64 bit. I have tried severall times but it won't work. I am very annoyed because it has never hap

  • Cannot import idvd slideshows into imovie

    Does anyone know if there is anyway around the error message: "QuickTime couldn't parse it: -43" recieved when trying to import .dvdproj fies from idvd?

  • Hot spots = email?

    i have hot spots on my webpage and need to to be an email link, i can do it to other pages but cant figure out how to make it go to a emaill address?? cheers

  • Monitoring GPU Temperature (in XP?)

    Hi, Does anyone know if there is any software available that allows monitoring the GPU's temperature from within Windows XP? I have a program called SpeedFan but that only shows information from the hard drive sensors (?) Thanks in advance!, Chris 2.