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

Re: Redwood group box not showing as Error

$
0
0

I tried that option but if the step1 fails step2 goes to chained status..


Re: Import Existing jobs into cps redwood ?

$
0
0

Hi Chinna,

 

I referred above links, but I am able to schedule standard job from cps redwood i.e SAP_IMPORTCCMSJOBS but getting the following error from stdout.log. Please find

 

Import Failed

BAPI exception while calling BAPI_XBP_JOB_SELECT: E XM 057 No job was found that corresponds to the specification [BAPI_XBP_JOB_SELECT, , , ]

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

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

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

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

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

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

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

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

at com.redwood.scheduler.connector.sap.rfc.job.util.CcmsJobFinder.findMatchingJobs(CcmsJobFinder.java:229)

at com.redwood.scheduler.connector.sap.rfc.command.impl.ImportCcmsJobsCommand.execute(ImportCcmsJobsCommand.java:91)

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

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

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

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

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

Re: JDBC connection to remote databases

$
0
0

Hello Nanda,

 

1) please contact your Redwood account manager

2) the connector executes the stored procedure or query that you try to run, this automatically makes it wait for it to finish and catch the output and potential exceptions

3) None really

4) Using a JDBC process server gets around two issues you face with the MSSQL command line tooling, and there is an additional benifit.

     a) the JDBC process server keeps checking the connection to the database, if the database is not there, the process server goes red and jobs will hold up until the database is available again. With command line script, they will just all fail and you will have to figure out which one you have to restart and make the process catch up again

     b) the MSSQL command line tooling does not wait for stored procedures or MSSQL jobs to finish, so you have to customize additional controls around it

     c) additional benefit is that you can directly interact with the remote database through RedwoodScript using a Credential to connect. This way it is even easier to do some smart dynamic processing

 

Regards Gerben

Re: Import Existing jobs into cps redwood ?

$
0
0

hi Videesh,

What are the parameters you input before running the CCMS import job?

Keep in mind that, this import job just imports the job definition and not the schedule.

For example, the job information like program, variant will be downloaded to Redwood, but information on when the job should run, the frequency of the job are downloaded. You have to manually schedule the jobs.

 

Or use interception.

 

Thanks

Nanda

Re: Redwood group box not showing as Error

$
0
0

can you please post a screenshot of your status handler?

 

Thanks

Nanda

Re: Redwood group box not showing as Error

Re: Redwood group box not showing as Error

$
0
0

In your screenshot, the status handler still shows that "On Error" - Continue, You have to change that.

In the status handler section, except for on Completed, for all the other options set it to Raise error and also the exit code. You have to do that for all the steps that you need to reflect this scenario.

 

Also make sure to reschedule the job. Changing the job chain definition doesn't automatically reflect in the schedule. So you have to cancel the existing schedule and then reschedule the job.

 

Thanks

Nanda

Re: Redwood group box not showing as Error

$
0
0

If I set it to Raise error and also the exit code , if it failed in step 1 then it will not go to step2 ... step2 will be as chained..



Re: Redwood script error and no output for redwood script job?

$
0
0

Hello Nanda,

 

You can pass in parameters to the query using the second argument in the executeObjectQuery method. The parameters are replacing the ? you add in the query in order of the array if you use more than one parameter.

 

For example:

 

{  for (Iterator it = jcsSession.executeObjectQuery("select jd.* from JobDefinition jd, Partition p where jd.BranchedLLPVersion = -1 and jd.Partition = p.UniqueId and p.Name = ?", new Object [] {PAR1}); it.hasNext(); )    {    JobDefinition jobdef = (JobDefinition) it.next();    jcsOut.println(jobdef.getName());  }
}

Regards Gerben

Re: Redwood script error and no output for redwood script job?

$
0
0

Thanks a lot Gerben, I learnt about the binding variables today the hard way.

 

Regards

Nanda

Re: Error when defining Solman connection

$
0
0

Hi Vladimir,

 

Please create an OSS note. Martin Lauer might know of a PDF With more current information.

 

Also, let us know the outcome, so we can help others in the future !!!!

 

Regards,

 

HP

Re: Redwood script error and no output for redwood script job?

$
0
0

Hi Nanda,

 

You can also just use plain java and do string replacements:

 

String sql = "select jd.* from JobDefinition jd where jd.Name like '%" + PAR1 + "%'";

 

But that would make you vulnerable to sql injection of course.

 

Regards Gerben

How to download existing job list from CPS

$
0
0

Hi,

 

I am new to CPS.

 

Our client is using CPS, and are looking for option to download the latest jobs that are set in CPS, so that future changes can be suggested accordingly. But I couldn't find any option to download (in excel) full list of jobs.

 

Can CPS guru suggest, if this is possible and if yes, how to extract the details.

 

Regards,

NR

Re: How to download existing job list from CPS

$
0
0

Hi NR,

 

You should take a close look at reports.

 

In SCN (here) click content, then fill report into the filter, you will see many questions on the matter.

 

Eg:

 

Reporting in SAP CPS

 

Regards,

 

HP

Re: Issue related to SAP CPS

$
0
0

Hi Nanda,

 

Please refer the screen shots here.

 

CPS Report 1.jpg

 

 

 

 

CPS Report 2.jpg


Re: Issue related to SAP CPS

$
0
0

hey Kedar,

For Job file, you just have to mention * or *.html.

* - will attach all the output files including logs

*.html - only the html outputs

For Relative job field, please provide the following parameters:

Generate Report, Job 1

 

then submit the job,

Re: Reporting in SAP CPS

$
0
0

You run the SQL command directly in the database level and export the results as a file report. (or)

you can create a New job definition of type :Redwood Script and paste the following code and save & close.

 

import com.redwood.scheduler.api.model.report.Reporter;
import com.redwood.scheduler.api.model.report.ReportDestination;
{
String query = "Select JobDefinitionParameter.JobDefinition from JobDefinitionParameter where JobDefinitionParameter.DefaultExpression = 'sample@mail.com'";
Reporter reporter = jcsSession.createReporter(jcsOut);
ReportDestination dest = reporter.getCSVReportDestination();
jcsSession.executeQuery(query, null, dest);
}

 

Then run the job, and you will get an output in CSV format.

 

Thanks

Nanda

Re: client software using Redwood

$
0
0

hi nanda,

 

i used ETPRJSCHEDULER33P_104-20007176.SCA and tried to upgrade using SUM , i get the below error.

 

• 001 : Component sap.com/ETPRJSCHEDULER cannot be updated to higher release

 

I tried to upgrade using JSPM

 

the component is not picked up when i choose new software or single support packages

 

Please help

 

Thanks

Redwood Script - Application assignment issue

$
0
0

Hi,

Build version M33.104.

 

I'm trying to submit the SAP_BW_ImportProcessChains using Redwood Script and  when i used the following code:

Application app = jcsSession.getApplicationByName("TEST");
aJob.getJobParameterByName("APPLICATION").setInValueString(app.getName());

there is no output, the job definition doesn't get created in CPS.

 

I also tried the following alternatives:

Application app = jcsSession.getApplicationByName("GLOBAL.TEST");
aJob.getJobParameterByName("APPLICATION").setInValueString(app.getName());

also

Application app = jcsSession.getApplicationByName("TEST");
aJob.getJobParameterByName("APPLICATION").setInValueString(app.getUniqueId().toString()); //from the cookbook

Still no, output. and this time, when i checked the job parameters, it had an number value for the Application.

The application TEST is in the GLOBAL partition.

 

when i comment the above two lines of code , the import completes successfully.

I also experienced the same issue, when i tried to set the PARTITION parameter for Import Process Chains same way as above.

 

Please let me know how to correct my issue.

 

Thanks

Nanda

Re: Redwood Script - Application assignment issue

$
0
0

Hi Nanda,

 

These SAP Job definitions have hidden constraints. What I would do is submit a Simulate run with the parameters you want, the from the shell you do:

 

{

Long jid = new Long(123);

Job aJob = jcsSession.getJobByJobId(jid);

String val = aJob.getJobParameterByName("APPLICATION").getInValueString();

JcsOur.println(val);

}


I assume you will get something like GLOBAL.TEST$2, this is the business key, you use getBusinessKey() on the application to get the value.


You can have 100's of applications named Test. In different partitions, in different parent applications, and a combination thereof.



Regards,


HP

Viewing all 2607 articles
Browse latest View live


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