cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Process chain started by event

Former Member
0 Likes
1,564

Hi experts

I have a similar requirement as described in this blog:

http://scn.sap.com/thread/2091800

Process chain must be started between 08:00 and 16:00 on an hourly based period.

We have not understood how to schedule the event which is in the start variant of the process chain:

How do we trigger the process chain every hour in the daily time frame?

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Likes

This message was moderated.

Former Member
0 Likes

Hi Dee

This means, I don't need the event base in the start variant, correct?

Thx

Former Member
0 Likes

No you don't need to..

KodandaPani_KV
Active Contributor
0 Likes

Hi,

can you try the below options it will run every day 2 times - for this no need for any logic.

othere you can use the infopacakge level event trigger.

Thanks,

Phani.

Loed
Active Contributor
0 Likes

Hi Thomas,

As Deepinder said, just use the DECISION BETWEEN MULTIPLE ALTERNATIVES to satisfy your requirement..

Just add that object in your chain and create the formula below:

Afterwards, schedule your chain to run HOURLY:

The result will be, chain will run every hour but will get an error if the time is not between 08:00:00 and 16:00:00..

Regards,

Loed

Former Member
0 Likes

Hi Loed/ Thomas,

To get rid of the error, you can point this to a dummy program that does nothing (which can end if the condition is not true).

Now you are set to go and this is much more easier way to achieve your requirement.

Hope it helps.

Cheers!

Deepinder

Loed
Active Contributor
0 Likes

Hi Deepinder,

Thanks for the suggestion..

Regards,

Loed

Former Member
0 Likes

Hi Loed

I am getting an error with the decision variant:

any ideas where the error might be?

Thanks

Loed
Active Contributor
0 Likes

Hi Thomas,

Can you post your process chain? In what process did the error occur?

Regards,

Loed

Former Member
0 Likes
Former Member
0 Likes

Hey Thomas,

Is the server time in-sync with the system time? (that is, between 8:30 and 6:30)

-Deepinder

Loed
Active Contributor
0 Likes

Hi Thomas,,

What time did the chain start its first run?

Regards,

Loed

Former Member
0 Likes

It starts every hour.

Loed
Active Contributor
0 Likes

Hi Thomas,

Yeah..But when you tried to run this chain, what time did you start it? Is it 13:00?

Because if you started it at 13:00, I can't see any problem with your configuration..It should not give any error..

Regards,

Loed

Answers (5)

Answers (5)

RamanKorrapati
Active Contributor
0 Likes

Hi Thomas,

Why you need to go on event basis? is there any mandatory/dependences?

if not then we can handle it your issue with without much  hassle.

Lets assume it as you need to run your job hourly once from 8AM to 4PM and your chain will take 40mts every time.

if yes then just create a 8 jobs and schedule them on daily basis.

First job need to run at 9AM - daily

next one 10 AM- daily,   go on upto 4pm , like that way you can schedule your jobs on daily basis.

Thanks

Former Member
0 Likes

Yes, you are right. I know this.

But would like to test variant by alternative in the chain.

Thanks a lot.

Former Member
0 Likes

Repeat scheduling option will help you in this scenario.

create repeat schedules for Every hour for daily.

Schedule it for 8 AM Daily

then select that job -> select repeat scheduling option from menu and set it for 9 AM Daily.

Repeat the Above step till 6 PM schedule. and hence you will have multiple schedules for daily.

Loed
Active Contributor
0 Likes

Hi Thomas,

What did you try so far as solution to your requirement?\

Regards,

Loed

Former Member
0 Likes

Hi Thomas,

If you don't want to create a process chain. You can simply schedule same process chain in different timings. Say one schedule for 8:00 AM. One for 9:00 AM .. and so on until 16:00.

Hope this helps.

Regards,

Former Member
0 Likes

You mean 8 different process chains?

Former Member
0 Likes

Hi Thomas,

No.  mean schedule a process chain say it will execute at 8:00 AM tomorrow. Go and check the scheduled process chain job. Copy that job 8 times and edit each job and schedule it as per requirement ie for next 8 hours. on a daily basis.

Hope this helps.

Regards,

Former Member
0 Likes

logic. Thx

Former Member
0 Likes

Hi Thomas,

There are lot of ways you can schdule your chain.

1)You want to  execute chain hourly between 8 to :16 then you can execute infopackage hrls and it will trigger event which will start your pc.

read this blog.

How to schedule process Chain based on after job - Periodically

2)sugeestion by deepinder

hope it will help.

Regards,

Ganesh Bothe

Former Member
0 Likes

Hi Ganesh

You wrote:

Here you can mention cancel job after X run also.

suppose you want to execute infopackage for 5 days then you should maintain 5.

Where do you set the "cancel" information in infopackage?

I need to schedule on an hourly base for 8 times (between 08:00 and 16:00).

Thanks

Former Member
0 Likes

Hi Thomas,

This blog you can use as guide line In your case you can execute infopackage hourly and you want it for 8 runs then cancen job after 8 runs this is one option try it in dev and check.

other thing whatever thread you have mention in your post it is answred thread that solution also works in your case.create job which will trigger your event based cahin.

its up to you which solution you want to use.

Regards,

Ganesh Bothe

Former Member
0 Likes

Hi Ganesh

Do you fill up the job and the subsequect process in one step?

Or do you have to run the process chain initially with the scheduled job, and thereafter create the event and modify the start variant of the process chain?

Thanks

Thomas

Former Member
0 Likes

Hi Thomas,

Can you please try the solution mentioned in following thread?

http://scn.sap.com/thread/2091800

Here you chain wll be event based process chain YOu have schduled 8 jobs hourly which will trigger your process chain each time inthis way you will achive your requirement.

I would suggest try it in dev all options mentioned by expert then keep which you think good so that you will resolve your issue

Regards,

Ganesh Bothe