Quantcast
Channel: SCN: Message List - SAP Business Process Automation by Redwood
Viewing all 2607 articles
Browse latest View live

Re: Time Window Restriction

$
0
0

Hello Carpenter,
Yes We do have a calender in SAP .
Also we have a time window which opens for all Working days.
Thanks
Ruban.S


Cronacle: Using Pre run and Post run actions

$
0
0

Hello

 

I have a job which usually runs for 3 to 4 hours. But sometimes due to more data load it takes up to 8 hours to complete. I have a requirement to send an email notification when the job starts to run, and after 4 hours if its still running again a notification has to be sent and finally upon completion another email to be sent.

 

Is this possible to do using Job Actions (Pre-running and Post running)? If so how can i do it.

 

If not job actions, is there any other way to achieve it.

 

Please help

 

Thank You

Grant access to trigger only few jobs!

$
0
0

Hi All,

Can someone plz help to resolve this issue. I am trying to grant a user access to only submit three job chains. So i have put all the jobs and chains to a different partition and granted access to this partition only for submit and view. But while trying submitted as this user i can see in the job name and when i click on next its not showing me the queue name to select. So i then granted access to queue for submission then it said associated process server is not assigned to queue so i have granted access to process server also.

Now i can see queue and when i try to submit i get error

10:44:42 PMJCS-102201: Non-visible Queue 18,341 is used by Job 709137

This is second step in the chain and this runs on different queue and to this queue also i granted access but still does not work.

 

So my question is to allow some individual to submit a job do we need to grant access to

1. particular chain through partition

2. queue to which job should be submitted to?

3. to process server of that queue

4. any other places we need to grant access?

 

Happy to share any more information if needed.

Thank you,

Arun

 

 

More details about the above error:

JCS-122030: Unable to persist: JCS-102201:  is used by Job 709137 (submitted from Global_Finance_Closing.ZPLACE_AFAB_DEPRECIATION_SPOOLFILE copy from 2016/04/28 22:33:42,496 Europe/Berlin)
at com.redwood.scheduler.model.SchedulerSessionImpl.writeDirtyListLocal(SchedulerSessionImpl.java:975)
at com.redwood.scheduler.model.SchedulerSessionImpl.persist(SchedulerSessionImpl.java:929)
at com.redwood.scheduler.ui.model.impl.FormImpl.modelActions(FormImpl.java:858)
at com.redwood.scheduler.ui.model.impl.LifeCycle.run(LifeCycle.java:285)
at com.redwood.scheduler.ui.servlet.Servlet.handleRequest(Servlet.java:147)
at com.redwood.scheduler.ui.servlet.Servlet.doPost(Servlet.java:87)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.redwood.scheduler.module.impl.ModuleFilter.doFilter(ModuleFilter.java:157)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.redwood.scheduler.security.filter.SecurityFilter.doFilter(SecurityFilter.java:804)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.redwood.scheduler.servlet.RequestCharsetFilter.doFilter(RequestCharsetFilter.java:200)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:470)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:295)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Unknown Source)
Caused by: com.redwood.scheduler.model.exception.ForeignKeyViolationVetoException: JCS-102201:  is used by Job 709137 (submitted from Global_Finance_Closing.ZPLACE_AFAB_DEPRECIATION_SPOOLFILE copy from 2016/04/28 22:33:42,496 Europe/Berlin)
at com.redwood.scheduler.model.JobImpl.checkLocalIsolation(JobImpl.java:6978)
at com.redwood.scheduler.model.JobImpl.checkIsolation(JobImpl.java:7497)
at com.redwood.scheduler.model.BaseSchedulerEntityImpl.vetoPhaseHandler(BaseSchedulerEntityImpl.java:1263)
at com.redwood.scheduler.model.SchedulerEntityImpl.vetoPhaseHandler(SchedulerEntityImpl.java:453)
at com.redwood.scheduler.model.DetailImpl.vetoPhaseHandler(DetailImpl.java:94)
at com.redwood.scheduler.model.JobImpl.vetoPhaseHandler(JobImpl.java:10672)
at com.redwood.scheduler.model.listeners.PerformVetoListener.modelModified(PerformVetoListener.java:39)
at com.redwood.scheduler.persistence.impl.LowLevelPersistenceImpl.informListeners(LowLevelPersistenceImpl.java:1058)
at com.redwood.scheduler.persistence.impl.LowLevelPersistenceImpl.writeDirtyObjectListRetry(LowLevelPersistenceImpl.java:336)
at com.redwood.scheduler.persistence.impl.LowLevelPersistenceImpl.access$0(LowLevelPersistenceImpl.java:246)
at com.redwood.scheduler.persistence.impl.LowLevelPersistenceImpl$WriteDirtyObjectListUnitOfWork.execute(LowLevelPersistenceImpl.java:120)
at com.redwood.scheduler.persistence.impl.OuterPersistenceUnitOfWorkManager.execute(OuterPersistenceUnitOfWorkManager.java:38)
at com.redwood.scheduler.persistence.impl.LowLevelPersistenceImpl.writeDirtyObjectList(LowLevelPersistenceImpl.java:198)
at com.redwood.scheduler.cluster.persistence.ClusteredLowLevelPersistence.writeDirtyObjectList(ClusteredLowLevelPersistence.java:67)
at com.redwood.scheduler.model.SchedulerSessionImpl.writeDirtyListLocal(SchedulerSessionImpl.java:971)
... 29 more

Re: Redwood Cronacle - Save spool by company code name

$
0
0

Hi HP,

 

Thanks for your reply, i can give that in source to select all the files but how do we place them into a directory with name. When i use this format:

jgetfile -j -s "Step 1, job 1:step1_*spool*.txt" -o "%destination%\"

 

I get error that cant open file.

When i used

jgetfile -j -s "Step 1, job 1:step1_*spool*.txt" -o "%destination%\*spool*.txt"

I get the same error

 

when i used

jgetfile -j -s "Step 1, job 1:step1_*spool*.txt" -o "%destination%\spool.txt" it only places first spool file and ignore others spool files when the first job has 3 files with names

step1_spool1.txt

step1_spool2.txt

step2_spool3.txt

 

Please suggest how we can resolve to place all spool files as it is.

 

Thank you,

Arun

Re: SAP CPS : run the jobs on selected (Test) systems

$
0
0

Hello Gerben,

 

i have run theSAP_Info job against these systems, i did not find any info which say's about test or dev system.

 

Regards,

Shridhar Gowda

Re: SAP CPS : run the jobs on selected (Test) systems

$
0
0

Hello

 

During the initail designe we did not differenced conneced ABAP systems for DEV or TEST.

 

we wanted to run the all jobs on all the ABAP systems, now we have got the request to run only on TEST systems.

 

Regards,

Shridhar Gowda

Re: Time Window Restriction

$
0
0

Hello Bolm,

 

i searched for it and could not get with this function. If you could find some please let me know.

 

Regards,
Ruban.S

Re: Time Window Restriction


Re: Cronacle: Using Pre run and Post run actions

$
0
0

Hello,

 

It is best to use Runtime Limits for this purpose. You can raise an event on these types of timeouts.

 

Regards Gerben

Re: SAP CPS : run the jobs on selected (Test) systems

$
0
0

Can you provide more information on the design of your job/job chain that you are running currently?

Is it a single job chain with 12 steps, each for one housekeeping report? and you want to change the system only for one step?

 

thanks

Nanda

Re: Grant access to trigger only few jobs!

$
0
0

You need to provide access to every object the user has to see, and also the objects that are indirectly associated with the first level objects the use is interacting with, in order to complete his activity.

 

For example, Job A raised and even on completion.

If the user doesnt have the access to the event , you will see operator messages reporting that event cannot be raised because of access issues.

 

thanks

Nanda

Re: Cronacle: Using Pre run and Post run actions

$
0
0

Nanda,

 

You can achieve this as below.

 

In Pre running a script a code to send email to indicate the start of the job.

In Run time limits set the maximum run time to as per your requirement and send alert escalation.

In post running similar script like pre-running script to send email to indication the end of the job.

 

Or

 

Add this job in chain

set one System_Mail_Send in step 1 to send job start notification

Your job in step 2 ->set run time limits and alert escalation.

again System_Mail_Send in step 3 to send job end notification

Hope this helps!!

 

Regards,

Ravindranath Reddy

Job Table not updating even after keepclause implementation

$
0
0

Hi All,

 

I encountered with a situation where Job table is not getting deleted as expected.

Initially we dont have KeepClause implementation and later we implemented KeepClause in a phased manner and we could see the deletion of jobs from System_ProcessKeepClause logs.

 

However after implementing KeepClause for all the jobs, we could see that Job table size is doubled.

Any suggestions on cleaning Job table like re-creating indexes as suggested in Admin guide?

 

Thanks in advance,

Vishnu.

Re: SAP CPS : run the jobs on selected (Test) systems

$
0
0

Hello Nanda,

 

it is a singla job chain with 12 steps, all the 12 jobs are run on all the redwood connected abap systems

 

I can create one more job chain  or add the additional job to the existing chain.. but how to define the

logic to run the job only on selected (Test) ABAP systems.

 

Thanks, shridhar,

Re: How to setup a chain where a job has 2 dependencies

$
0
0

Hallo Angelo,

you can try this option. In the below Image Step 1 on the top will be your Job A. Parallel to Step A another sub chain with Step B and C but in this sub chain update Start time to start after 5 mins of the job A like if you want to the jobA to run 5.00 AM then submit the whole job to run at 5.00 AM but in sub chain put start time as 5.05 like the below image so that job B will start after 5 mins of Job A. Then job D will start only after Job A, Job B and Job C are finished.

redwood chain.JPG


Job Chain should run for every 2 hours even the previous jobs still active

$
0
0

Hi Team,

 

We have an requirement to run the Job/Job chain for every 2 hours even though if previous job still running. When we use the Submit frame with every 2 hours element, job is skipping the intervals if previous jobs still active

 

Ex.  Job ABCD submitted with 2 hours submit frame 12:00 am, 2:00am, 4:00am........

        if the 12:00am job still running for more then 2 hours and complete by 2:20am then  2:00am schedule is getting skipped and job is getting

        scheduled for next run @ 4:00am

 

          I have tested by adding Runtime limit of Maximum 2:00 hours, 4  and triggered Event to submit the same job(duplicate of original) and its working           fine if it first job crosses 2 hours, but if the same original job running for more then 4 or 6 hours its still skipping the 4/6 schedules

 

We need same job ABCD to be submitted for every 2 hours schedule without skipping even if previous job is still active as below.

00:00 2:00 4:00 6:00 8:00 10:00 12:00pm 14:00 16:00 18:00 20:00 22:00

 

Please let me know how can we achieve our requirement to run the job as above schedules.

 

Thanks

Vishal

How to submit job to run for every 2 hours daily to run 12 jobs?

$
0
0

Hi,

 

We are on CPS 8 M33.104 version and we have requirement to schedule a job to run every 2 hours Monday to Sunday (12 jobs per day ) without skip.

and with the 2 submit frame the jobs are getting skipped if the job run for more then 2 hours.

 

Let me know if there is any other alternative to submit the jobs to run every 2 hours? let me know if need more details

 

 

Thanks

Vishal

Post Running Action

$
0
0

I have the below piece of code in the post running action and does what it is supposed to do and display the required information on the web page i have developed for the business. What i want to have is the run time (Elapsed time) for each job on the list I have. How do I calculate the difference in RUNEND and RUNSTART? Please help

 

     tv = webtable.getTableValueBySearchKeySearchColumnName("<Job Name>","RUNSTART");

     tv.setColumnValue(j.getRunStart().toFormattedString("dd-MMM-yyyy HH:mm:ss"));

 

 

     tv = webtable.getTableValueBySearchKeySearchColumnName("<Job Name>","RUNEND");

     tv.setColumnValue(j.getRunEnd().toFormattedString("dd-MMM-yyyy HH:mm:ss"));

 

 

     tv = webtable.getTableValueBySearchKeySearchColumnName("<Job Name>","STATUS");

     tv.setColumnValue(j.getStatus().name().toUpperCase());

 

 

Thank You

Re: Post Running Action

$
0
0

DateTimeZone.formatDuration(j.getRunEnd().getUTCMilliSecs() - j.getRunStart().getUTCMilliSecs())

 

Regards Gerben

Re: SAP CPS : run the jobs on selected (Test) systems

$
0
0

Put something in the description or documentation field of the process servers to distinguish between dev and test systems and put a pre-condition rel expression that checks this field.

 

Regards Gerben

Viewing all 2607 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>