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

Re: Need to clear event before raising it but cannot use system_raise clear event

$
0
0

you can check the option "Clears Event" in the wait event tab of the job definition.

 

also you can run system_raiseclearevent to clear the event.

 

thanks

Nanda


Re: Need to clear event before raising it but cannot use system_raise clear event

$
0
0

Actually the problem is I cannot use system_raiseclearevent because of security access issues.

My scenario is job A rasies the event and job depends upon A and the event is cleared after job B completes successfully.

But if someone submitted the job A two times then we will have two instances of event which is raised .This is not desired.

 

Solution: so one way is that to use clears event in wait event tab before Job A .But this will not work.Suppose if the event is not raised then it will be in event wait status and job A will never be triggered.

 

I cannot find any redwood script to clear the event or check the status .

 

Kindly help

Re: Need to clear event before raising it but cannot use system_raise clear event

$
0
0

Hi,

 

Create a Redwood script as below to clear the event.

 

{     

      EventDefinition ed1 = jcsSession.getEventDefinitionByName("EVENTNAME");

     {
    
      ed1.clear();
      jcsSession.persist();
                 
     }

}

Re: Need to clear event before raising it but cannot use system_raise clear event

$
0
0

Hi Tinku,

 

Thanks a lot it solved my problem.

Is there any basic book or tutorial to learn redwood script as I have knowledge of ABAP but I am finding it a bit difficult.

 

Thanks a lot.

 

Manisha

Default value in parameter should show all the events created

$
0
0

Hi

I have created a parameter which is used to pass the event name in the redwood script. But I want to have all the events display as drop down when we click on that parameter.

I  do not know how to pass the value in constraint.

Capture6.JPG

Something similar to what we get when we click on job definition as shown below

Capture5.JPG

Please help.

Re: SFTP from CPS

$
0
0

Thanks for all your inputs .

@ Ooms ,

Are you using the above custom redwood script in CPS 8 for SFTP ?

 


Re: error while trying to access the event:while trying to invoke the method com.redwood.scheduler.api.model.event defintion.clear() of a null object loaded from local variable

$
0
0

Hello,

 

In that case the Event_Name event definition does not exist. Is your event in a Partition that is not GLOBAL? In that case you have to specify the partition as well.

 

EventDefinition ed = jcsSession.getEventDefinitionByName(jcsSession.getPartitionByName("<partition name>"), Event_Name);

 

Regards Gerben

Re: Default value in parameter should show all the events created

$
0
0

If I use the query filter then the value is like as shown below .

 

Capture8.JPG

In that case I need to remove the event definition word and then use it also while searching the value at submit time we need to type Event Defintion followed by event name then only it will search else it will not.

I donot want it this way.I wanted it to serach as soon as we start typing the event name as it does when we search on wait event or raise event tab.

Hope my question is clear.


Re: Need to clear event before raising it but cannot use system_raise clear event

$
0
0

You can create an OSS message with SAP requesting the API documentation. It comes with an examples/tutorials book.

 

thanks

Nanda

Re: Moving File directory from Windows server to BW File system

$
0
0

Hi Tahir,

You can do this using

Copy command in windows  copy "%SourceFile%" "%DestFile%"

 

Regards

Balaji Natarajan

Re: Default value in parameter should show all the events created

$
0
0

Hello,

 

This is no problem, it makes things a lot easier for you. As you can retrieve the EventDefinition directly like this:

 

EventDefinition ed = BusinessKeyLookup.getEventDefinitionByBusinessKey(jcsSession, Event_Name);

 

This way no truncation is required and also you get around the (potential) problem with events in different Partitions.

 

Also, the dropdown will filter, although it is case sensitive, if you type TEST you only get TEST and not Test.

 

Regards Gerben

Re: Default value in parameter should show all the events created

$
0
0

You don't have to type Event Definition, you can start typing any part of the event definition name and the drop down will filter the search automatically.

 

thanks

Nanda

Re: Default value in parameter should show all the events created

$
0
0

There is one difference here, the QueryFilter dropdowns are case sensitives.

 

Regards Gerben

Re: ECC application servers in CPS

$
0
0

I stand corrected, you just have to run SAP_ImportApplicationServers.


thanks

Nanda

Auto submit jobs with any manual intervention

$
0
0

Hello All,

 

We got an epic requirement to auto submit the jobs without manual intervention or Submit the job first time (either with Submit frame)

e.g. We want to run a job A at 22:00 Monday - Sunday but user want to submit the jobs manually with submit frame. We have been asked to do the configuration so it will always auto submit the jobs. I have no idea about what will the best way to do it.


Could you please advice does can we do it-

1) With calender, time window or submit frame.

2) Triggers

3) With Redwood scripts


What is best way doing it and what is limitation and disadvantage doing it (if any advantages also please let me know, the whole idea behind this that they don't operator to submit any jobs)

 

Many thanks,

 

Regards,

Abhishek


Re: error while trying to access the event:while trying to invoke the method com.redwood.scheduler.api.model.event defintion.clear() of a null object loaded from local variable

$
0
0

Thanks Gerben for the reply but I stuck at one more place i am trying to get the value of partition from table and for that i am using  the below query String query = "select EventDefinition.* from EventDefinition where EventDefinition.Name = 'EVT_SIM_PRESOLVE' "; for (Iterator it = jcsSession.executeObjectQuery(query, null); it.hasNext();) {      EventDefinition ED2 = (EventDefinition) it.next();      jcsOut.println("Stopping process server " + ED2.getPartition() +" ,"+ ED2.getName()+ "," + ED2.getDescription()+ ED2.getComment() ); But the problem is when i run this i get some readonly value in the parameter like Partition:3883838(readonly). I want the actual value of partition. Please help

Re: Auto submit jobs without any manual intervention

$
0
0

Hello,

 

You can Import Jobs using the regular import mechanism to submit them.

 

Regards Gerben

Re: Auto submit jobs without any manual intervention

$
0
0

Hi Gerben

 

Thanks for your reply..

 

Actually, We have set of jobs chain A,B and C which will be running from Monday to Sunday say 22:00 GMT. Now, Business Dont want us to submit the jobs through Submit wizard by Submit frame.

 

They want to create a script, trigger  or do some configuration in a job chain so all jobs automatically submit at 22:00 Mon - Sun. They don't want at all to submit this jobs first times also (like it was done in CA7 as i was told not sure how it done in CA7 also).

 

I know its not a good idea, but is it possible to do it in redwood?

 

Regards,

Abhishek

Re: Auto submit jobs without any manual intervention

$
0
0

Hello,

 

As you are probably aware of: the distinction between definitions and the planning of the definitions is separated in Redwood, as in all types of other tools (SAP SM37, Unix cron, and also CA7) these two are combined. So if you setup WHAT you want to run, you also directly specify WHEN it should run.

Obviously there is something to say for both.

My answer still stays the same: you can use the import mechanism to do the initial submit, you can package the job submit together with the definition in the same car file if you want.

 

Regards Gerben

SAP Queue name is not visible when submit "Job Chain", only showing system(Global)

$
0
0

Hi,

 

I have created a Job Chain (SAP CPS) using SAP Definition "SAP_AbapRun" but while submitting this job chain, I am not able to select my "SAP Queue name from drop down list". It's only showing the SYSTEM.

 

See the attached file for where I am missing SAP Queue names.

 

Please let me know, what to do to get SAP Queues names from drop down list.

 

Tanks,

Shiva

Viewing all 2607 articles
Browse latest View live


Latest Images

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