Quantcast
Channel: SCN : Unanswered Discussions - SAP Business Process Automation by Redwood
Viewing all 646 articles
Browse latest View live

Parse output from spool1 in a post running actions

$
0
0

Hi

I´ve trying to reuse the result from discussion https://scn.sap.com/thread/1384693 thank you very much but I alse need to replace newlines.

(I´m running an ABAP program which print some results to the spool, in the same job definition a post running actions read the spool and assign the searched pattern to a parameter which is then used in next job defintion who store a variant with the parameter value)

Im´m reading from the spool and it could look like this

Any text......

[

8028201472

,

8028203673

,

8028216843

,

8028216882

,

8028231216

]

any text.

 

My goals is to have it like this (to store this in a variant)

[8028201472,8028203673,8028216843,8028216882,8028231216]

 

Could anyone plz advice ?

 

Regards Magnus


Job hangs in Running status even if the precondition expression evaluates to False

$
0
0

We have a Job Chain with the following configuration & scheduling


JOB CHAIN     (Scheduled every 30 mins round the clock)

STEP 01

STEP 02     (Precondition using Time window to run only 4 specific times of the day)


Step 02 precondition expression when evaluates to FALSE, not always but 5-10% of the time, the step stuck in "Running" state instead of final status as "Skipped"


I would appreciate if anyone can provide me any insight of this issue


Let me know if you need any additional details.


Thanks,

Bhushan

sap cps 8.0 job scheduling.

$
0
0

Hi Experts,

 

I am new to SAP CPS and recently we installed sap cps 8.0 in our landscape and now we have a requirement where a job need to run frequently probably every 15 minutes only after the prior job is completed which should trigger a new job..Any suggestions or guidance would be helpful here..

 

Thanks in advance,

Praveen

How to FTP/Xcom a CPS script logs/report to a network location

$
0
0

Hello Experts,

 

We have a custom CPS script to send completion status of specific Job chain which gets executed daily and CPS standard System_Mail_Send job that runs directly after script send status report to configured recipients mail-ID's.

 

However our requirement is to send status report to a network directory which inturn poll by Reporting database to include Status report in a daily performence report.

 

 

CPS standard System_Mail_Send job has relative Job parameter which allows creating relationship with previous job inorder to identify generated OS level log file and send as an attachment however Xcom/FTP job do not have that parameter available to set relationship.

 

Request you to help.

 

Cheers

Arif

Which CPS Version for NW7.31?

$
0
0

Dear experts,

 

We are running CPS build M33.10-45085 on NW7.1

We are preparing an upgrade to NW7.31

 

Now, I really cannot find information on which version of CPS I should run.

Should we upgrade CPS?

 

Will CPS build M33.10-45085 run with NW7.31?

to which version should we upgrade?

 

I am stuck on PAM and its load of informations...

 

Regards

Greg

Skipping Steps in JobChain dynamically

$
0
0


Hello,

 

I have a JobChain with 5 Steps. Is it possible to skip some Steps during submitting the JobChain?

 

I think about 5 parameters in the JobChain called by the StepNames and when I submit the JobChain I can choose "yes/no" for the different Steps. The Steps have a precondition which analyses this parameters and skippes the Step when parameter=no  (e.g.     =chainParameters.Step1==='yes' ).

 

How can I insert the StepNames dynamically in the JobChain-Parameters and the preconditions?

 

Best regards

Dana

SAP CPS Beginner

$
0
0

Hi Experts,

 

I am beginner to SAP CPS, Please send me the links and documents to start with. Is there any sample scenario to start working on it?

 

 

Thanks,

Gowtham

BW Process Chain: Alert at process level

$
0
0

Hi guys,

 

A question on possibility, whether the idea is possible or not:

 

There is a BW process chain, which has subsequently calls BW processes and ABAP programs. The logic of the chain is such that, even if one of the process fails, the chain continues with another process(or ABAP program). So, the chain continues to run and finishes. But the problem here, since one process has failed, certain data does not come into the BW system and causes some problems with respect to data integrity.

 

When I try to setup alerting for the BW Process chain, it alerts if and only if the entire chain fails and not for each BW process/ABAP program. Is there any way where we can get an alert for BW Process failures in the chain?(I think the BW process calls information is getting populated dynamically, so it's not possible).

 

Please do let me know whether we can do it or not. Customer has licensed version of SAP CPS.

 

Thanks and regards,

Pavan


SAP CPS Beginner

$
0
0

Hi Experts,

 

I need to do POC in this tool. Is there any documents or websites to do tutorials and practice for this tool. Kindly help me,

 

Thanks,

Gowtham

Monitoring of Jobs

$
0
0

Hi,

 

Is there a way that we can monitor jobs that are not scheduled via CPS?

Example: Workflow / Basis jobs

 

I tested using SAP_CcmsJobGetStatus but in order to submit it, I would need to know the job name and job count upfront.

 

Thanks.

Executing Sabrix Reports from SAP CPS

$
0
0

Does anyone know if we can executing Sabrix Reports from SAP CPS?

 

Thanks,

Bhushan

Search in mail script, Inline content

$
0
0

Hi,

 

Hopefully someone can help with my mail script definition:

 

I created the mail script as below:

 

I have two issues / questions:

 

1) search option is not working.

I have no spool file if there are no users selected. in that case i want to report that from the joblog.log the returncode in the joblog is "UE 014"

So I thought on this syntax: (adopted from the help example)

no_HRO_users.txt=Step 2, Job 2:joblog.log?search="UE 014"?options=IgnoreCase,RangeResult

however the file is not attached when this line exist in the file.

110132 20140604 UE 014 I No user group found for search pattern *HRO* 0 *HRO* *HRO* GROUP 

 

 

2) inline_ option not working:

preferably I would like to have the joblog message in the mail content instead of in an attachment;

 

I tried this line instead of the line above:

When I try this I notice remaining commands are not performed (when it was on the first [Attachments] line.)

inline_no_HRO_users.txt=Step 2, Job 2:joblog.log?search="UE 014"?options=IgnoreCase,RangeResult

 

complete code:

 

<html><body><p>Hi All, </p><p></p><p>Could you please review the users of your group and confirm that they must be valid? </p><p>Please reply to this mail if any change is needed. </p><p>Thanks,</p> <p></p> <p></p><p></p><i>This email was generated by redwood job ${jobname}:${jobid}.</i></body></html>
[Attachments]
AMO_users.txt = Step 2, Job 1:step1/spool1.txt
HRO_Users.txt = Step 2, Job 2:step1/spool1.txt
ISO_Users.txt = Step 2, Job 3:step1/spool1.txt
Cust_Users.txt = Step 2, Job 4:step1/spool1.txt
Other_users.txt = Step 2, Job 5:step1/spool1.txt
no_HRO_users.txt=Step 2, Job 2:joblog.log?search="UE 014"?options=IgnoreCase,RangeResult
[Headers]
reply-to=${ReplyTo}
[Body]
Content-Type=text/html; Charset=UTF-8

Automate a batch job (Mass activity)

$
0
0

Hi Folks,

I am trying to automate a batch job. Transaction- EL09, it’s mass activity. (Functionality – DM)

In EL16, We have a Meter reading dates (technical name: BEGABLV) which has selection criteria of date range (Which is Sunday to Saturday).And I have create the JD and JC. JC and JD is creating the correct templates in but it’s not selecting the correct the date range for Meter reading dates.

 

Meter reading dates (BEGABLV) = BEGABL-LOW (from date) to BEGABL-HIGH (To date)

TARGET DATE ID =Custom_AWS.calcChainRequestTime(jobId)

 

Test case 1: Below parameter:  not Working (giving error)

BEGABLV=Time.format(Time.expression(parameters.MASS_ACTIVITY_TARGET_DATE_ID, 'add 1 days'), ' yyyyMMdd')

Or

BEGABLV =Time.expression(parameters.MASS_ACTIVITY_TARGET_DATE_ID, 'add 1 days')

Many others exp also.

 

Test case 2:

BEGABLV=  (manually date selection while submitting the chain)

It’s not over writing in SAP. Taking SAP templates +1 date.

Test case 3:

MASS_ACTIITY_SHIFT_DATE= 6 (any integer)

Its working and dates range are shift to 6, don’t full fill my criteria. Because I am not able to put the code here (as it is defined as NUMBER)

So Conclusion is here, its look like I am taking wrong application name for particular MASS Reading date (BEGABLV). Please advice.

 

Regards,

Abhishek Singh

How to monitor a Process Server or a Queue?

$
0
0

Hi

 

We are using Redwood CPS as our Enterprise Scheduler.

 

In the recent months, the below issue has happened twice.

 

The error message I could read in the Redwood Process Server Log is below

 

JCS-116011: Permanent communication failure: Unknown Host : HOST.domain.com

 

I am not sure what breaks the connection.

 

Two Questions that run in my mind:

1. Does this issue directly relate to any known issue anyone aware of?

2. How do I setup monitoring on the Process Server or a Queue so that when they go down I get an e-mail or something at least?

 

Can someone guide me please?

Submit Multiple Job Definitions/Job Chains with same Time window/Submit frame in mass

$
0
0

Hi,

 

We have a requirement to submit multiple Job Definition/Job Chains which are part of common Time Window/Submit frame/Queue....

 

Ex. We have over 50+ different jobs/job chains which will runs Monday to Friday for every 2 hours on same Queue "XXX_Queue".  Instead of submitting each job/job chain manually, we would like to know if we could use any script that can achieve our requirement? since we have couple of other jobs which fall under same scenarios...

 

We are on M33.104 version. Please let me know if any one has any scripts or alternate way of submitting multiple jobs/job chains in mass.

 

 

Thanks in advance!

Nidhi.


Single Job Definition for multiple variants in a job

$
0
0

When we are importing a job to Redwood which has multple steps in SAP, Its getting created as a job chain with steps and each step is triggering a new job in SAP. So if a job has 3 variants, 3 jobs with the same name are created in from Redwood to SAP.  Is there any way we can create a single job for all these three variants instead of Job Chain..

CPS jobs failed

$
0
0

We are on M33.66-60087 and we use CPS to schedule jobs in SAP

 

We have lot of jobs failed in CPS in a half an hour time window and here is the log.

 

@locale@:com.redwood.scheduler.builtin.JobDefinition.SapJobCommand.output.CannotTakeoverSapJob

 

Can any of you please explain what this could be and what steps need to be taken to fix this ?

 

Thanks

How can I create dashboards for critical jobs per application?

$
0
0

I need to create a number of dashboards for management to use for a High level view of critical jobs in the different applications.  The documentation is

not very clear.  I know how to create a dashboard but how do I populate it with information for specific jobs?

Example: BW_CriticalJobs

how to prevent auto changing the scheduled start time?

$
0
0

Hi,

 

We have a job chain with a submit frame to run every 30 min. However, sometimes one occurrence of the job chain run more than 30 min. And the next occurrence is not started as per original schedule until the previous occurrence completed. We have not set up a lock. Is there a way to force the system to start the job chain every 30 min no matter how long each occurrence actually run? This is the business requirement.

 

Best Regards

Eric

Getting the WaitEvents of a job

$
0
0

Hello,

 

I have a job which is waiting for an event. When the event was raised the job starts and should write into its log which WaitEvents were related to itself.

 

 

With this source:

 

Iterator itEvents = jcsJob.getJobWaitEvents();

 

   while(itEvents.hasNext())

    {

      // Get the single event

      Event ev = (Event) itEvents.next();

                jcsOut.println("Event: " + ev.getEventDefinition() + "raised by" + ev.getRaiserObject());

    }

 

I get an error:

 

java.lang.ClassCastException: class com.redwood.scheduler.model.JobWaitEventImpl:redwood.com/scheduler-ear@com.sap.engine.boot.loader.ResourceMultiParentClassLoader@37ee9d62@alive incompatible with interface com.redwood.scheduler.api.model.Event:redwood.com/scheduler-ear@com.sap.engine.boot.loader.ResourceMultiParentClassLoader@37ee9d62@alive


What does it mean?

 

Thanks and best regards

Dana

Viewing all 646 articles
Browse latest View live


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