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

Re: How to schedule jobs in CPS with time intervals

$
0
0

Hi Niranjan,

 

I already got how to configure this. However, I am getting the below message when submitting the main chain:

 

 

 

 

 

JCS-102064: Job 921291 (submitted from System_Sleep copy from 2014/11/14
00:33:34,425 Asia/Dubai) is global but refers (via Job) to an object in an
isolation group


JCS-102064: Job 921291 (submitted from System_Sleep copy from 2014/11/14
00:33:34,425 Asia/Dubai) is global but refers (via Chain Step) to an object in
an isolation group


JCS-102064: Job 921291 (submitted from System_Sleep copy from 2014/11/14
00:33:34,425 Asia/Dubai) is global but refers (via Parent Job) to an object in
an isolation group


Re: How to schedule jobs in CPS with time intervals

$
0
0

Hi Gerben,

 

Is this the exact thing I should put? => Time.expressionNow('add 5 minutes')

 

Also, I tried system_sleep but getting the below message:

 

 

 

JCS-102064: Job 921291
(submitted from System_Sleep copy from 2014/11/14
00:33:34,425 Asia/Dubai) is global but refers (via Job) to an object in an
isolation group

 

JCS-102064: Job 921291
(submitted from System_Sleep copy from 2014/11/14
00:33:34,425 Asia/Dubai) is global but refers (via Chain Step) to an object in
an isolation group

 

JCS-102064:
Job 921291 (submitted from System_Sleep copy from 2014/11/14
00:33:34,425 Asia/Dubai) is global but refers (via Parent Job) to an object in
an isolation group

 

 

Appreciate any advice. Thanks.

 

Angelo

Re: How to schedule jobs in CPS with time intervals

$
0
0

Dont forget the =, like in Excel:

 

=Time.expressionNow('add 5 minutes')

 

Regards Gerben

Re: How to schedule jobs in CPS with time intervals

$
0
0

Thanks Gerben. It's working fine. I think I will use this instead of the system_sleep as I'm getting errors there. Do you have any guide for the time expression parameters?

 

Let's say for 10 sec delay, will it be ('add 10 seconds')?

 

Just the format of the parameters (seconds, hours, or any possible value).

 

Thanks a lot. Appreciate your usual support.

 

Angelo

Re: How to schedule jobs in CPS with time intervals

$
0
0

Hi Gerben,

 

This worked earlier. But now, it's giving me the message below:

 

JCS-102319: Cannot locate time window with name: 2016/04/06 11:51:00,771

Asia/Dubai

 

 

Can you pls suggest what I am doing wrong? Thanks.

 

Angelo

Redwood - Partition error

$
0
0

Hello All,

When I try to create a Time Windows I receive this error message by pressing the "save" button.

 

CS-103045: Privilege 'create' on object 'Time Window <Partition Not Set>.GB_Time_Windows' is required to perform this operation

JCS-102074: Field Partition on Time Window <Partition Not Set>.GB_Time_Windows must be specified

 

This is my first object time window that I'm trying to define. I have set a value for these fields:

 

Tag [Time Window]

Name

Description

 

Tag [Elements]

and from

until the

 

Tag [Opens At]

set the number of the day (for example 1) and pressed the icon.

 

What is the meaning of "Partition" in Redwood?

 

Any help will be greatly appreciated.

 

Thanks in advance for your kind support.

 

Regards,

 

      Giovanni

Re: Redwood - Partition error

$
0
0

Hi Giovanni,

 

The error is stating that you do not have full access to create Submit/Time windows.

 

Per SAP CPS Administration Guide

 

You need one of the following:

  • scheduler-administrator role
  • scheduler-job-administrator
  • system, partition or isolation group-level permissions
  • object-specific privileges

 

Creating Time Windows

You need one of the following privilege ranks to be able to create time windows:

  • Create - allows you to create time windows on the level the privilege was granted (system, partition, isolation-group), you have no further privileges through this rank, you automatically get privileges on time windows you create.
  • Edit - allows you to create, view, and edit all time windows on the level the privilege was granted (system, partition, isolation-group)
  • Delete - allows you to create, view, and delete all time windows on the level the privilege was granted (system, partition, isolation-group)
  • All - full control over all time windows on the level the privilege was granted (system, partition, isolation-group)

You also require View privileges on the partition of the time window.

 

Editing Time Windows

To successfully edit a time window, you have to have one the following privileges:

  • Edit - privilege rank on the time window, or on TimeWindow in its partition, isolation group or system-wide
  • Delete - privilege rank on the time window, or on TimeWindow in its partition, isolation group or system-wide
  • All - privilege rank on the time window, or on TimeWindow in its partition, isolation group or system-wide

You also require View privileges on the partition of the time window.Time windows can reference the following objects, you need at least View privileges on these objects and their partition(s) when you want to edit a time window that references them:

  • Application
  • Period Function
  • Submit Frame
  • Time Window
  • Resource

 

Regards

Rick

Re: How to send a text with muliple lines via e-mail

$
0
0

It looks like your mail client eats up the new lines.

You can make the full email html by starting the email with

<html><body>

first line<br>

second line

</body></html>

 

Regards Gerben


Find job chain containing an ABAP program?

$
0
0

Hi everybody,

 

I need to have a report or SQL that will take an ABAP program name as a parameter and return the job chain(s) it is called by.  I have not been able to figure out how to link the necessary files together.  As far as I can tell this involves these files:   JobChain, JobChainStep, JobDefinition, SAPAbapProgram.  But I am having trouble figuring out which fields to match on between files.  Or is there a file that links all of these together?

 

Thank you in advance.

Re: Find job chain containing an ABAP program?

$
0
0

If you are in version 9 you can use the 'Object search'

2016-04-06_17h32_36.jpg

 

Then you can search on parameter ABAP_PROGRAM_NAME and fill in the ABAP you are looking for

2016-04-06_17h47_20.jpg

Re: Find job chain containing an ABAP program?

$
0
0

Thanks S.Oms for the reply.  Unfortunately we are still on version 8 (hoping to upgrade soon) so I have to do this the old way.

How to import a BOBJ report

$
0
0

Hi,

 

I am needing to import a BOBJ report and was going to use the SAP_BOBJ_ImportReportDefinitions job.  Can someone tell me if that is the correct method?  If so, how do I input the report path?

 

Any guidance for this will be greatly appreciated.

 

Best Regards,

Rick

Re: How to set a Chain in "completed" status when a step is in error status.

$
0
0

Hi Giovanni,

You should edit the Job Chain, located under Definitions not in job monitor.

When you are in edit mode, you will get the edit options for status handlers when you select the step.

 

thanks

Nanda

Re: New version of sap cps Redwood doesn't work using Chrome browser.

$
0
0

Hi Patrick,

I have noticed significant problems with chrome and IE in past.

Firefox has consistently worked well, without any problems.

 

thanks

Nanda

Re: Jobs hanging in running status

$
0
0

Create an incident with SAP, they should be able to provide a simple patch(not upgrade to BPA) to fix this issue.

While you wait, you can also setup a redwood script to automate the cancellation of the job, its running longer than expected.

 

thanks

Nanda


Re: Getting data from Job Definition

$
0
0

what version of CPS are you running?

 

You should divide the jobs based on the submit frame.

A.Jobs that have frequency less than an hour

B.Jobs that have frequence more than hour and that run daily.

C.Jobs that have frequency weekly/monthly etc.

 

Once you have this list, you can probably create a redwood script and pass this list.

Remember, if there is a job that runs every 5 minutes, then in past 4 years, it will have about 400K plus entries in job table, so it may take a long time to delete the entries. You many want to run only one per day for category A mentioned above.

 

When you have the list ready, you can loop through the job definition names

 

 

for (each job in job definition list)

{

JobDefinition jd = jcsSession.getJobDefinitionByName("<JobDefName>");

jd.deleteFinalJobs();

jcsSession.persist():

}

 

thanks

Nanda

Re: Redwood Jobs Maintenance

$
0
0

Hi Nanda, Thank you. Few more concerns.

 

Presently, Client is not okay going with the Archive Module of Redwood.

 

He is predominantly looking to explore other scenarios which can enhance the performance tuning. As we know, Keep Clause is key here.. Challenge is how to se the Keep Clause for entire jobs

 

What is the approach needs to be taken care ? What precautions needs to be looked upon, without disturbing any live running jobs of present production.

 

Any clues...please let me know.


Re: CPS Registry Settings

$
0
0
  • Nothing in particular, you need to know the exact registry path, refer the admin guide.
  • Make sure there is no typo in the registry value, else it will not work
  • No downtime required
  • Just go to registry and start editing.

 

thanks

Nanda

Re: Redwood Jobs Maintenance

Re: Getting data from Job Definition

$
0
0

Thanks Nanda for the script,

 

I was looking for this code snippet.

Yes we have the list of jobs based on frequency.

We will pass on the list of jobs as parameters and delete these jobs and at the same time, I am also planning to update the keepClause for those jobs because keepclause has not been set for any of hte jobs. i.e., after deletefinaljobs() line, I want to add it like below:

 

Long keepAmount = 20;

for (each job in job definition list)

{

JobDefinition jd = jcsSession.getJobDefinitionByName("<JobDefName>");

jd.deleteFinalJobs();

//setting keepClause

jd.setKeepUnits(com.redwood.scheduler.api.model.enumeration.JobDefinitionKeepUnit.Days);

jdsetKeepAmount(keepAmount);

jcsSession.persist():

}

 

Can we do like this or is there any better way to do?

Viewing all 2607 articles
Browse latest View live


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