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

CPS - bespoke job to copy Job file to OS archive location

$
0
0

We are currently trying to find the best method to take a Job file (say the XML file from the previous Job in a chain) and copy/write that file to a user-specified OS location.

 

We have a local Platform Agent for OS interaction and assume this will be required.

 

However as of yet we are still postulating on how to do this.

If you write a BASH script type Job Definition you can pass in basic parameters (strings, ints, etc.) and write these to an OS file; but you cannot pass a FILE type parameter and write that to the OS.

 

Our next thought is the RedwoodScipt Class set to see if there is a function out there for this purpose; but then this would have to be a Platform Agent related one we guess.

 

Has anyone written a similar type of script for copying files from the Application layer to an OS location?


Jobs are not getting deleted in CPS

$
0
0

Hi All,

 

While I try to delete a job definition or a job chain in CPS, it throws an error saying REPLY EXPRESSION MISSING. I've currently been using M33.74 build. I would like to know what expression has to be defined and how I can overcome this issue.

 

 

 

Thanks,

Harry

getExpectedRunTime

$
0
0

Hello,

 

I select jobs from database and want to display their ExpectedRunTime in a script.

 

it = jcsSession.executeObjectQuery("select j.* from Job j where j.Description like '%Test%' order by j.Description asc");

 

while(it.hasNext()) {

      Job j = (Job) it.next();

      jcsOut.println("Job: " + j.getDescription());

      jcsOut.println("Time: " + j.ForecastJob().getExpectedRunTime());

}

 

But it doesn't work. The jobs will be listed if I remark the last line.

How can I display the ExpectedRunTime of the jobs?

 

Best regards,

Dana Ullrich

CPS copy run "Job could not be locked" Error

$
0
0

Hello,

we have an issue with one job launched as copy run in CPS, job definition is in SAP.

When the job is scheduled, we receive the following message :

 

com.redwood.scheduler.connector.sap.rfc.connection.exception.SapBapiException: BAPI exception while calling BAPI_XBP_JOB_COPY: E XM 194 Job could not be locked

 

 

BAPI exception while calling BAPI_XBP_JOB_COPY: E XM 194 Job could not be locked [BAPI_XBP_JOB_COPY, , , ]

Parameters:

  Cronacle

  16125500

  APGA_ALL_PEA_S_ATPMSP_02

  0

  APGA_ALL_PEA_S_ATPMSP_02

          at com.redwood.scheduler.connector.sap.rfc.jco2.connection.impl.ClientConnectionImpl.checkBapiReturnCode(ClientConnectionImpl.java:727)

          at com.redwood.scheduler.connector.sap.rfc.jco2.connection.impl.ClientConnectionImpl.call(ClientConnectionImpl.java:533)

          at com.redwood.scheduler.connector.sap.rfc.connection.AbstractRfcConnection$4.doPerform(AbstractRfcConnection.java:301)

          at com.redwood.scheduler.connector.sap.rfc.connection.RemoteFunctionCall.perform(RemoteFunctionCall.java:147)

          at com.redwood.scheduler.connector.sap.rfc.connection.AbstractRfcConnection.perform(AbstractRfcConnection.java:472)

          at com.redwood.scheduler.connector.sap.rfc.connection.AbstractRfcConnection.execute(AbstractRfcConnection.java:294)

          at com.redwood.scheduler.connector.sap.rfc.jco2.connection.impl.SapFunctionModuleWrapper.execute(SapFunctionModuleWrapper.java:200)

          at com.redwood.scheduler.connector.sap.rfc.jco.AbstractSapFunctionModule.execute(AbstractSapFunctionModule.java:109)

          at com.redwood.scheduler.connector.sap.rfc.command.impl.TemplateJobRunCommand.execute(TemplateJobRunCommand.java:148)

          at com.redwood.scheduler.connector.sap.rfc.command.AbstractXbpCommand.doExecute(AbstractXbpCommand.java:86)

          at com.redwood.scheduler.connector.sap.rfc.command.AbstractCommand.execute(AbstractCommand.java:58)

          at com.redwood.scheduler.connector.sap.rfc.service.operation.RunJobOperation.doWork(RunJobOperation.java:104)

          at com.redwood.scheduler.connector.sap.rfc.service.SapJobWork.doWork(SapJobWork.java:38)

          at com.redwood.scheduler.infrastructure.workqueue.Worker.run(Worker.java:76)

          at java.lang.Thread.run(Thread.java:736)

 

 

Anny sugestion, what could cause this ? Sounds for me like CPS cannot access as the resource ( job definition ) is locked in SAP ?

Hostname change of process server

$
0
0

Hello,

Due to a change of our HOSTNAME of process server (SAP), jobs still in status "Scheduled" and never pass to status "Running".

I did installation of SAP CPS Redwood on the new server and run redwood command line :

RS> startup <scheduler> local


In Redwood Explorer, the job “START RFC agent for instance” is in status “running”.

When I submit SAP Jobs they put in status “Scheduled” and don’t go to status running. My jobs still in status "scheduled"
with operator message : "RFC Agent still in starting phase, job is delayed 1 minute"

 

Version of SAP CPS Redwood :  7.0.4.1 SP1

 

When I execute on the process server (Unix) the command line

$ ./redwood.lsb status

it says :

Scheduler SYSJCS.CPSD11 has status: RUNNING

 

Any Idea for this issue ?

Thanks !

 

Job scheduling on Java only SAP instance

$
0
0

Hi,

our service provider plans to move the productive CPS instance to a new hardware.

On this new box, te CPS java instance would reside standalone.

 

Up to now , we were using an SAP ABAB+ OS process server on the existing HW to schedule and FTP reports of the CPS instance.

If we move it to a new box, would we need to set up an ABAP Stack in parallel to get a SAP process server ?

Any suggestions how we could run reports in this CPS standalone environment ?

 

Thanks a lot in advance

 

Uli

SAP CPS - 1 Java server node

$
0
0

Redwood recommend 1 Java server node for running CPS on

However you lose the extra mitigation for failure of a node that you'd get by having 2 (or more)

 

Has anyone got more than 1 server node on NetWeaver AS Java running SAP CPS on top?

 

NB Looking at recent documents I wonder if recommendations have changed to support multi-node installations more?

CPS job forecast report

$
0
0

Hi,

i have a question , in the job monitor there is an option to create a job forecast, which then reports all expected job runs in a time frame defined by a filter.

 

How can i use this feature in reports, i have a list of jobs considered as important and i would like to report their expected runs within the next 24 hours.

 

Best regards

 

Uli


Holding Queue for 3 days how will daily jobs react.

$
0
0

Holding a Queue for 3 days how will daily jobs react? Example job run nightly at 8PM, queue is held day 1 at 4pm and released at 3PM on day 3. Will job wait on day 3 until 8pm to run or will it run when queue is released and 8PM?

The password for OS account sapcps is incorrect

$
0
0

Hello,

 

Since this weekend after the upgrade from M33.10 to M33.87, we have the error "The password for OS account sapcps is incorrect" on one process server (Windows 2008 R2).

 

We tried to change the password but we got still the same error.

 

The process server and the agent have been restarted twice.

 

Thanks for your help.

Report capability in CPS Redwood

$
0
0

Hi All,

 

I am trying to create report on runtime of a jobchain for last 30 days but I also need the run time of each job in the job chain.

How should I proceed to do that?

 

Thanks,

Tanmay Suri

Spool is not returned to Cronacle

$
0
0

Hi Everyone,

 

There is a program which runs in SAP triggered by Cronacle. Program generates two spools in SAP, one is for a team to send the PDF file and the other is for the report spool. Spool is not getting returned to Cronacle. Spool flag is set to yes in the parameters. Is there any configuration which can be made in Cronacle or SAP so that the report spool can be returned to Cronacle. For all other jobs spool is visible in Cronacle.

 

Thanks in advance for the help.

 

 

Regards,

Ramana

SAP CPS - restricting who runs System jobs

$
0
0

In a relatively advanced security model for CPS we have come across an interesting issue.

 

It seems that even with very restricted (View only) privileges assigned to a user, they still have access to submit jobs to the System queue.

 

This is something we want to prevent View-Only users doing (they will just run reports & have visibility).

 

Has anyone come across this issue?

Could not send alert to - Alerting Module

$
0
0

Hello,

 

We are currently using the alerting module to monitor our jobs.

 

We have a basic setup

 

For some reason we always get an OP message "Could not send alert to [emailTXTMSG@company.com]. All this address contains is a distribution list of cell numbers with wireless provider extensions on the end so you can send out through email and receive as a txt message. We get the alert but what ends up happening is the email gateway continues to resend the alert unless we go in a delete the job that failed. The other alert sends out correctly.

 

Any ideas?

 

Thanks.

Extract time from RunStart of a job

$
0
0

Hello,

 

with j.getRunStart().getUTCMilliSecs() I get the starttime of a job with date, time and timezone.

 

I only need the time and timezone. But I want to calculate with the starttime of the job, so "DateTimeZone.formatDuration" is not an option.

How I can get the starttime of a job in format "hh:mm:ss timezone" but not as string.

 

Thanks and best regards

Dana Ullrich


CPS copy run "Job could not be locked" Error

$
0
0

Hello,

we have an issue with one job launched as copy run in CPS, job definition is in SAP.

When the job is scheduled, we receive the following message :

 

com.redwood.scheduler.connector.sap.rfc.connection.exception.SapBapiException: BAPI exception while calling BAPI_XBP_JOB_COPY: E XM 194 Job could not be locked

 

 

BAPI exception while calling BAPI_XBP_JOB_COPY: E XM 194 Job could not be locked [BAPI_XBP_JOB_COPY, , , ]

Parameters:

  Cronacle

  16125500

  APGA_ALL_PEA_S_ATPMSP_02

  0

  APGA_ALL_PEA_S_ATPMSP_02

          at com.redwood.scheduler.connector.sap.rfc.jco2.connection.impl.ClientConnectionImpl.checkBapiReturnCode(ClientConnectionImpl.java:727)

          at com.redwood.scheduler.connector.sap.rfc.jco2.connection.impl.ClientConnectionImpl.call(ClientConnectionImpl.java:533)

          at com.redwood.scheduler.connector.sap.rfc.connection.AbstractRfcConnection$4.doPerform(AbstractRfcConnection.java:301)

          at com.redwood.scheduler.connector.sap.rfc.connection.RemoteFunctionCall.perform(RemoteFunctionCall.java:147)

          at com.redwood.scheduler.connector.sap.rfc.connection.AbstractRfcConnection.perform(AbstractRfcConnection.java:472)

          at com.redwood.scheduler.connector.sap.rfc.connection.AbstractRfcConnection.execute(AbstractRfcConnection.java:294)

          at com.redwood.scheduler.connector.sap.rfc.jco2.connection.impl.SapFunctionModuleWrapper.execute(SapFunctionModuleWrapper.java:200)

          at com.redwood.scheduler.connector.sap.rfc.jco.AbstractSapFunctionModule.execute(AbstractSapFunctionModule.java:109)

          at com.redwood.scheduler.connector.sap.rfc.command.impl.TemplateJobRunCommand.execute(TemplateJobRunCommand.java:148)

          at com.redwood.scheduler.connector.sap.rfc.command.AbstractXbpCommand.doExecute(AbstractXbpCommand.java:86)

          at com.redwood.scheduler.connector.sap.rfc.command.AbstractCommand.execute(AbstractCommand.java:58)

          at com.redwood.scheduler.connector.sap.rfc.service.operation.RunJobOperation.doWork(RunJobOperation.java:104)

          at com.redwood.scheduler.connector.sap.rfc.service.SapJobWork.doWork(SapJobWork.java:38)

          at com.redwood.scheduler.infrastructure.workqueue.Worker.run(Worker.java:76)

          at java.lang.Thread.run(Thread.java:736)

 

 

Anny sugestion, what could cause this ? Sounds for me like CPS cannot access as the resource ( job definition ) is locked in SAP ?

CPS and x.509 Certificate Logon

$
0
0

Hi,

 

we are using the integrated version M33.85-65736 on NW 731 SPS7 and we have set up this AS Java to accept certificate logon. It works without a problem with NWA but unfortunately we need to enter the username and password for the scheduler although we are already logged in into the AS Java.

 

The same applies to another system where there are no certificates. If you log on to NWA you still need to authenticate again if you want to access the scheduler.

 

I checked the installation and security guides but I couldn't find anything.

 

Is this behaviour "by design" or are there configuration settings that need to be changed?

 

Regards

Andreas

Compile failed for Action Post Alert...

$
0
0

Hello,

 

I want to kick off a PostAlert action that will submit another job. The code I have works in the shell when I test but I am unable to compile it when I use it as a PostAlert.

 

{
// code to submit a job running MyJob
// get the job definition
JobDefinition aJobDef  = jcsSession.getJobDefinitionByName("MyJob");

 

// create the job from the job definition
Job aJob = aJobDef.prepare();

 

// assign queue
Queue aQ = jcsSession.getQueueByName("System");
aJob.setQueue(aQ);

 

// submit the job definition and write unsaved data to the database
jcsSession.persist();
}

 

Any suggestions on what I could be missing?

 

Thx,

Brian

SAP CPS : Failed to create the job in the SAP system

$
0
0

Hi All,

 

Recently i came across an issue where job failed with the error - " Failed to create the job in the SAP system".

 

Below is the log :

Failed to create the job in the SAP system
com.redwood.scheduler.api.exception.SchedulerAPIPersistenceException: JCS-XXXXX: Modification vetoed: Unexpected exception during listener execution
com.redwood.scheduler.persistence.api.PersistenceException$ModelModificationVetoException: JCS-XXXXX: Modification vetoed: Unexpected exception during listener execution
java.lang.NullPointerException: null

JCS-122035: Unable to persist: JCS-XXXXX: Modification vetoed: Unexpected exception during listener execution.

 

Please let me know what could be the cause for this issue and is there any fix.

 

 

thanks in advance.

 

 

Regards,

KN

Heartbeat job failed

$
0
0

Hi Gurus,

 

I was importing an job into Redwood. During the import, I suspected, that I have given wrong parameter so I killed this import job. After this, something happened and all the jobs for that Production server started failing and we started getting alerts.

 

The log for the failed jobs read as

 

Socket receive error

OS-10054: An existing connection was forcibly closed by the remote host.

unable to connect to localhost port 21848; error -1

read  instead of OK  from server

Socket creation error: host=null port=152920

 

The Heartbeat job had also got cancelled.

 

Upon investigation, it was discovered that Redwood dropped its connection with the SAP system's DB. Holding the Redwood queue and re-starting the listener service brought everything to normal

 

My doubt over here is that can Redwood connection to SAP DB take a drop if an import job is killed?

 

My understanding is that killing an running job is killing and running SQL statement which is fetching data from the same (Redwood's) Oracle DB or other (SAP system's) Oracle DB. And killing such an SQL MAY result in data corruption or data inconsistency; but definitely not a connection drop! Though we are not considering the rollback and commit concept over here

 

Can anyone please share their experiences on this

 

R.../-

Viewing all 646 articles
Browse latest View live