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

Redwood Cronacle - Save spool by company code name

$
0
0

Hi All,

Can anyone suggest how to save spool by company code name automatically rather than i manually hard code the spool name for each step. I have a program which runs for 130+ company codes and each company code process the data and save a spool. Now we need to download those spools to a drive through redwood Cronacle. the first step in the chain triggers the SAP program which trigger the job in SAP and spools are generated for 130+ company codes.

Now i created second step to save the spool but its not saving all files.

The step1 gets spool in name like step1_spool1.text, step1_spool2.txt, step1_spool3.txt etc.

 

Now i tried to 'jgetfile -j -s "Step 1, job 1:step1_spool1.txt" -o "%destination%\spool1.txt" but now i have to create multiple lines like this and some time we will not have all company codes create spool because it will not have data to process.

Please advice how i can modify the above script to save all spools to a drive.

 

If its not easy to save spool with company code we are ok to save as is like step1_spool1.txt or spool1.txt.

 

Would be happy to share more information.

Thank you,

Arun


Job processor for job 39918679 failed with return code -1073741502

$
0
0

Hi Friends,

 

I am new to CPS. I am getting the following error in CPS. All the jobs were failing with the same status code.

 

Job processor for job 39918679 failed with return code -1073741502


Can any one suggest what to do?


Regards,

Muthukumar.

Time Window - First Business Day of the Week

$
0
0

Hi All,

 

I need to create a Time Window which will be open during First Business Day of the Week.

 

Any assistance will be appreciated.

 

Thanks

Problem in creating time windor for Factory Calendar

$
0
0

Hello All,

 

We have a requirement where we need to create a time window based on a factory calendar. I have imported the factory calendars in CPS Redwood successfully . But while creating a time window for particular factory, we are facing issues in ELEMENTS section of Time window.

 

In ELEMENTS section there are two tabs which needs to be filed.

 

1. and period function :- which I have filled successfully .

2.with parameters :- Facing the issue as what should be filled in here .

 

Kindly suggest .

Looking for a positive response .

 

 

Thanks and Regards,

Ashish Pandit

How to setup chain dependencies in CPS

$
0
0


Hi All,

 

Just need a small help regarding chain dependencies in CPS. We are using free version and below is the requirement:

 

When Chain A is completed, Chains B & C should both start, which are totally independent of each other.

 

Kindly suggest how to accomplish this flow. Thanks in advance.

 

 

Angelo

Importing Web Service in SAP CPS

$
0
0

Hi everyone,

Build version M33.104.

 

We are trying to import web services using the WSDL url.

When i use a URL, that doesn't prompt for userid/password, it is possible to import the job definition.

When i use a URL, that prompts for userid/password (when access through browser), the import fails at initial parsing.

 

8-5-2014 8-34-37 PM.png

 

I maintained a credential with SOAP protocol and endpoint URL same as the WSDL url.

Still no luck. Please let me know what am i doing wrong?

 

To make sure i'm not missing any per-requisites:

  1. I do have an empty slot in WebServices.OutboundServer.limit
    • does that mean i have to create a process server? is yes how?
  2. Maintain the credential
    • I have maintained the credential, but how does the import web services job definition know to use that credential. In other words, how does the credential and Import_Web_Service job definition are linked?

 

Thanks

Nanda

Mass change the steps user in released SM37 jobs

$
0
0

Hello,

 

I wonder if there is a possibility to mass change the user entered in the steps overview of a released job.

 

I know that in the Table TBTCS the Jobowner is saved and in TBTCP I can view the user entered in the steps overview but only for jobs which have already been executed, does anyone of you know which table keeps the steps user for a released job?

 

Kind regards

Florian Wittmann

Connecting to SAP using MSHOST string - doesn't work

$
0
0

Hi all,

CPS version M33.69-61130.

I am trying to connect to a SAP system using the connection string:

 

MSHOST=HOSTNAME R3NAME=SID GROUP=REDWOOD

The hostname corresponds to the hostname of a high availabilty server running on Windows.

I have manually added the following entries into the services file

sapmsSID 3600/tcp

sapdpSID 3200/tcp

sapgwSID 3300/tcp

I am not able to telnet to hostname at port 3600

I am able to open the sapgui using the command

sapgui hostname 00

So the MSHOST string is not connecting.

 

the error i am getting:

8:02:34 AM: Connection Failed: RFC: com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to message server host failed Connect_PM TYPE=B MSHOST=HOSTNAME GROUP=REDWOOD R3NAME=SID MSSERV=sapmsSID PCS=1 LOCATION CPIC (TCP/IP) on local host with Unicode ERROR partner 'XXX.XXX.XXX.XXX:sapmsSID' not reached TIME Mon Jan 14 08:02:33 2013 RELEASE 720 COMPONENT NI (network interface) VERSION 40 RC -10 MODULE nixxi.cpp LINE 3286 DETAIL NiPConnect2: XXX.XXX.XXX.XXX:3600 SYSTEM CALL connect ERRNO 10061 ERRNO TEXT WSAECONNREFUSED: Connection refused COUNTER 6 at com.sap.mw.jco.MiddlewareJRfc.generateJCoException(MiddlewareJRfc.java:557) at com.sap.mw.jco.MiddlewareJRfc$Client.connect(MiddlewareJRfc.java:1099) at com.sap.mw.jco.JCO$Client.connect(JCO.java:3590) at com.redwood.scheduler.connector.sap.rfc.jco2.connection.RfcConnectionCheckerImpl.checkConnection(RfcConnectionCheckerImpl.java:31) at com.redwood.scheduler.connector.sap.rfc.connection.impl.AbstractRfcConnec

Please help me solve this.


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

How to send a job log/Spool once the job completed?

$
0
0

Could you please help me how to send a job log/Spool once the job completed.

 

There was an option is available System Send mail to send a mail once the job completed . So could you please help me how we can send a job log using this option .

 

I have tried the below but i didn't get any mail . Could some one help this please !

 

 

For example :

 

Job chain name : Test_spool

 

                Step1 : Reportstep

 

                                Job definition u2013 XXX_YYY

 

                Step2:  Mailstep

                                 

                                Job definition: system_mail_send

 

Expression :  Reportstep,job<(what i need to mention here )>:reportstep/log.txt

Check the ablove mentioned is correct and correct me , still i didnu2019t get the log in the mail please .

 

 

 

Thanks

Ramkumar

SAP Central Process Scheduling by Redwood

$
0
0

Hi Experts,

 

We are going to install SAP CPS in my landscape , we don't have any idea about SAP CPS  By REDWOOD, so can any one help me for how install and  how to use, send complete guidance for SAP CPS by REDWOOD .

 

Thanks & regards

 

J JANA

Error occured when starting process chain

$
0
0

When we want to start a process chain via SAP_BW_ProcessChainRun we get the following error log:

 

-

-


Failed to start process chain /NSN/C_DSP_TR_GLOBAL_II. No logid was returned by the BW-SCH API.

 

com.redwood.scheduler.connector.sap.rfc.connection.exception.SapBapiException: BAPI exception while calling RSPC_API_CHAIN_START: E RSPC 022 Processes with Error

 

BAPI exception while calling RSPC_API_CHAIN_START: E RSPC 022 Processes with Error

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

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

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

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

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

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

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

     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.BwProcessChainCommand.execute(BwProcessChainCommand.java:98)

     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:56)

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

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

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

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

-

-


 

What could be the reason?

Thanks

Br

Günter

 

Schedule JOB to run on only SAP 2 Instances out of 6 instances

$
0
0

Dear all,

 

Is it possible to schedule a 40 Work Processes job to run on 2 SAP instances (DIA) only, while the SAP system has 6 SAP instances (CI + 5DIA).

 

We are using Control M  + CPS Redwood.

I suppose some RZ12/Logon groups or SM61 would be involved?  Or any concrete trick in CPS/ Control M?

 

 

Thanks in advance!

 

Marian

How to receive mail Alerts from CPS?

$
0
0

Hi Experts,

 

Need help on receiving alert mail from CPS.

 

I do not even want the log files. Just need a alert if a job goes to ERROR status.

 

As far as I analysed, I got to now that we have to submit the definitions System_Mail_Configure and System_Mail_Send with  the necessary details.

 

But though I tried, I did not get any mails.

 

Can you help me out in filling the below blanks.

 

In the job definition System_mail_configure.

 

System_Mail_Configure.jpg

 

Help me in filling the below.

 

Below question might sound silly but please bear.

 

Can I give "DETECT" in From and give any email ID in Server (gmail or my company's mail id)?

System_Mail_Configure_1.jpg

 

 

Similarly, In the job definition System_mail_Send

 

System_mail_send.png

Help me in filling the below.

 

My assumptions:

 

To: My mail id

Subject: Job failure Alert CPS

Text : ---------

Relative Job: Should I give the job chain name/Job name?

Job File: What should I provide here?

Server And From: Can I give same details as provided in System_Mail Configure?

System_mail_send_1.png

 

 

After all this, should I submit these two, first CONFIGURE job and second SEND job?

 

Many thanks in advance!!

 

Thanks

Ramakrishnan R

Job Alert when runtime is unusual

$
0
0

Hi All,

 

Is it possible to determine when a job runs longer than it's usual run?

 

For example:

Job 1 is usually finished after 10minutes but today it finished after 1hour.

 

So what we need is a notification from this job when it runs longer than usual.

Or even a script with the list of all jobs with unusual run.

 

Thanks!

 

 

Alyssa


End of Free of Charge or OEM Version with BPA 9?

$
0
0

Hello,

We have CPS 8.0 with the license Free of Charge now called OEM.

We are trying to migrate from CPS 8.0 to BPA 9.0.

This is a excerpt from the SAP BPA Install Guide version 9.0.13.1.

---------------------

5.6 Installing a License

.....

A OEM license is only available for installations on SAP NetWeaver.

.....

You can also use the OEM license, which does not require you to request a license. On the licensing page, you

need to fill in your company name and choose Generate OEM License.

--------------------

 

In our installation we can´t find "Generate OEM License" button like we did in CPS 8, so we decided to create an OSS ticket.

 

The answer was:

----------------------------

There is no OEM license available for SAP BPA Version9. If you are

interested in obtaining an enterprise license, please contact you

local SAP/Redwood Sales representative.

There does exist a free OEM license for SAP CPS Version8. You can

activate the OEM license in CPS 8 yourself at first logon.

---------------------------

 

Any of idea why the oficial documentation says one thing and the SAP Support the opposite?

 

Who is right?

 

Best regards,

Iñigo

SAP CPS Security Permissions

$
0
0

Dear All,

 

I checked our Netweaver log and find following messages:

 

User XXXX does not have AccessSchedulerBusiness permission: java.security.AccessControlException: No authorization

Category: /Applications/Scheduler
Place: com.redwood.scheduler.security.impl.sap.ume.UMEUser
Application: redwood.com/scheduler-ear

Username | ACCESS.ERROR | null | | Permission=[(com.redwood.scheduler.security.permissions.SchedulerAccessPermission business)]

Category: /System/Security/Audit
Place: com.sap.security.core.util.SecurityAudit  
Application: redwood.com/scheduler-ear
(Username =my Username)

 

These are my userroles in SAP Netweaver UME:

 

  scheduler-user Einfacher Zugriff, sieht keine Objekte, Ist Basis für andere Rollen. UME-Datenbank

  scheduler-isolation-administrator Create/Edit/Delete Isolation Groups and add users to these UME-Datenbank

  scheduler-administrator Kann alle Aktionen im SAP CPS ausführen UME-Datenbank

 

and here my userroles in SAP CPS

 

Redwood System     Administrator     

Redwood System     BAG:9:F:Scheduler_Manager

Redwood System     scheduler administrator     

Redwood System     scheduler user     

Redwood System     BAG:1:F:Scheduler_Manager_Isolation     

Redwood System     scheduler isolation administrator     

Redwood System     scheduler_administrator

Redwood System     scheduler it user     

 

We use SAP CPS Build: M33.42-54458

 

Anyone an idea?

 

 

Kind regards

 

Marc

 

How to setup a chain where a job has 2 dependencies

$
0
0

Hi Experts,

 

Need an advice how to setup a chain wherein one job has 2 dependencies. Pls refer to below. Appreciate any help. Thanks.

 

JobD should start if JobA and JobC is completed

Untitled.jpg

 

 

 


 


 

 

 

 

 

 


   
  

JobD


   
  

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 


   
  

JobC


   
  

 

 

 

 

 

 

 

 

 

 

 


   
  

JobB


   
  

 

 

 

 

 

 

 

 

 

 

 


   
  

JobA


   
  

REL-Function for getting jobfile-location

$
0
0

Hello,

 

I have a chain with two steps. First step is the job "System_ArchiveAuditObjects" which creates a file "archive.xml". In the second step I want to transfer this jobfile to another unix-server.

 

I tried it in this way:

 

Bash-Job with source:

 

chmod o+r-- ${p_source}

cp ${p_source} ${p_target}${p_date}"_"${p_AuditObject}".xml"

and parameters

 

p_JobId: =JobChainParameters.getJobId('Step1,job 1')

p_source: /default

p_target: /Zielpfad/

p_date: =Time.format(Time.expression(Time.expressionNow('trauncate month'),'subtract 1 day'),'yyyyMM')

p_AuditObject: =JobChainParameters.getInValueString('Step 1,job 1','ObjectType')

 

But I got the error message

 

chmod: cannot access `/usr/sap/X0P/J09/j2ee/cluster/server0/scheduler/lis/558560000-558569999/558560930/System_558560930_1001005.xml': No such file or directory

cp: cannot stat `/usr/sap/X0P/J09/j2ee/cluster/server0/scheduler/lis/558560000-558569999/558560930/System_558560930_1001005.xml': No such file or Directory

 

If I try p_source: /default/archive.xml the error message is the same one (also with filename System_xxx_xxx.xml).

 

How can I get this file?

 

Best regards

Dana

Error changing a TableValue by script

$
0
0

Hello,

 

I want to change a value in a table by script.

If I run the script with my own user (permissions scheduler-administrator) it works fine. If an user from another partition use this script he gets an error message. On the table he has full rights. What does the errormessage mean or what could be the problem?

 

Best regards

Dana

 

part of the script:

String    vTableName  = "MonitorTable";
Table vTable = jcsSession.getTableByName(vTableName);
for (Iterator it = jcsSession.executeObjectQuery("select Queue.* from Queue", null); it.hasNext(); )  {  Queue qu = (Queue) it.next();
 String vKey = "QU_" + qu.getName().toUpperCase();   TableValue vTVDefault = vTable.getTableValueBySearchKeySearchColumnName( vKey, "DEFAULTVALUE");  String vTVStr = vTVDefault.getColumnValue();  TableValue vTVMonitor = vTable.getTableValueBySearchKeySearchColumnName( vKey, "MONITOR"  vTVMonitor.setColumnValue(vTVStr);
jcsOut.println("Test");  jcsSession.persist();

Till line 10 it works, the persist doesn't work.

Error message:

-- JOB RUN STACK TRACE --

com.redwood.scheduler.script.api.ScriptEngineEvaluationException

at com.redwood.scheduler.script.java.impl.Java.evaluate(Java.java:87)

at com.redwood.scheduler.scriptjobservice.impl.ScriptJob.execute(ScriptJob.java:147)

at com.redwood.scheduler.systemjobservice.impl.JobWorker.doWork(JobWorker.java:269)

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

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

Caused by: com.redwood.scheduler.script.api.ScriptEngineEvaluationException

at com.redwood.scheduler.script.java.impl.Java.evaluateJava(Java.java:150)

at com.redwood.scheduler.script.java.impl.Java.access$0(Java.java:137)

at com.redwood.scheduler.script.java.impl.Java$1.call(Java.java:80)

at com.redwood.scheduler.script.java.impl.Java.evaluateCallable(Java.java:118)

at com.redwood.scheduler.script.java.impl.Java.evaluate(Java.java:74)

... 4 more

Caused by: com.redwood.scheduler.infrastructure.exception.ReplacementException

at com.redwood.scheduler.infrastructure.util.ExceptionUtil.wrap(ExceptionUtil.java:259)

... 9 more

Caused by: java.lang.reflect.InvocationTargetException

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at com.redwood.scheduler.script.java.impl.Java.evaluateJava(Java.java:146)

... 8 more

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

at com.redwood.scheduler.model.SchedulerSessionImpl.writeDirtyListLocal(SchedulerSessionImpl.java:1012)

at com.redwood.scheduler.model.SchedulerSessionImpl.persist(SchedulerSessionImpl.java:938)

at com.redwood.scheduler.custom.Jobdefinition_BSH_HoldReleaseQueue_WithMonitoringAndPSexecute(Jobdefinition_BSH_HoldReleaseQueue_WithMonitoringAndPS.java:user code 40)

at com.redwood.scheduler.custom.Jobdefinition_BSH_HoldReleaseQueue_WithMonitoringAndPSStub.jcsExecute(Jobdefinition_BSH_HoldReleaseQueue_WithMonitoringAndPSStub.java:32)

... 13 more

Caused by: com.redwood.scheduler.persistence.api.PersistenceException$ModelModificationVetoException: JCS-XXXXX: Modification vetoed: Unexpected exception during listener execution

at com.redwood.scheduler.model.LowLevelPersistenceConfigurationImpl.throwUnexpectedExceptionDuringListenerExecution(LowLevelPersistenceConfigurationImpl.java:657)

at com.redwood.scheduler.persistence.impl.LowLevelPersistenceImpl.informListeners(LowLevelPersistenceImpl.java:1074)

at com.redwood.scheduler.persistence.impl.LowLevelPersistenceImpl.writeDirtyObjectListRetry(LowLevelPersistenceImpl.java:327)

at com.redwood.scheduler.persistence.impl.LowLevelPersistenceImpl.access$0(LowLevelPersistenceImpl.java:245)

at com.redwood.scheduler.persistence.impl.LowLevelPersistenceImpl$WriteDirtyObjectListUnitOfWork.execute(LowLevelPersistenceImpl.java:119)

at com.redwood.scheduler.persistence.impl.OuterPersistenceUnitOfWorkManager.execute(OuterPersistenceUnitOfWorkManager.java:38)

at com.redwood.scheduler.persistence.impl.LowLevelPersistenceImpl.writeDirtyObjectList(LowLevelPersistenceImpl.java:197)

at com.redwood.scheduler.cluster.persistence.ClusteredLowLevelPersistence.writeDirtyObjectList(ClusteredLowLevelPersistence.java:67)

at com.redwood.scheduler.model.SchedulerSessionImpl.writeDirtyListLocal(SchedulerSessionImpl.java:987)

... 16 more

Caused by: java.lang.NullPointerException: while trying to invoke the method com.redwood.scheduler.apiint.model.TableDefinitionInt.getTableDefinitionColumnsInt() of a null object returned from com.redwood.scheduler.apiint.model.TableInt.getTableDefinitionInt()

at com.redwood.scheduler.model.method.impl.TableMethodImpl.createMissingTablesValuesForKeyInt(TableMethodImpl.java:244)

at com.redwood.scheduler.model.TableImpl.createMissingTablesValuesForKeyInt(TableImpl.java:1150)

at com.redwood.scheduler.model.method.impl.TableValueMethodImpl.preparePhaseHandler(TableValueMethodImpl.java:73)

at com.redwood.scheduler.model.BaseSchedulerEntityImpl.preparePhaseHandler(BaseSchedulerEntityImpl.java:1260)

at com.redwood.scheduler.model.listeners.ConstraintCheckPrepareListener.modelModified(ConstraintCheckPrepareListener.java:51)

at com.redwood.scheduler.persistence.impl.LowLevelPersistenceImpl.informListeners(LowLevelPersistenceImpl.java:1063)

... 23 more

Viewing all 1466 articles
Browse latest View live


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