cancel
Showing results for 
Search instead for 
Did you mean: 

Execute Process chain in loop

former_member200211
Active Participant
0 Kudos
712

Hi,

I have process chain created and my requirement is to trigger the process chain multiple times.

I have created one event and used this event to be called by FM 'BP_EVENT_RAISE'. This FM is called in the program as last step in process chain.

The issue is when i schedule the process chain with immediate option in direct scheduling, it executes the process chain only once and does not re-excute the chain even though the condition required statisfies.

Please let me know if any step is missing.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello Lavanya,

the solution to your problem is not difficult.

The process you want to execute I has to be in a separate chain: 'X'.

Now create 2 new chains: 'A' and 'B'.

Chain A will have

START-EVENT

EXECUTE SUBCHAIN X

TRIGGER CHAIN B

Chain B will have

START-EVENT

EXECUTE SUBCHAIN X

TRIGGER CHAIN A

I have used this trick a lot in the past so I know it works fine.

Have fun,

Twan Jans-Beken

Answers (3)

Answers (3)

esjewett
Active Contributor
0 Kudos

Since this is a question about BW, it belongs in the BW space and not the Data Warehousing space. I've moved the thread, but please use the BW space for these types of questions in the future.

Regards,

Ethan

(moderator)

Former Member
0 Kudos

Hi Lavanya,

As said above, check if the check box 'periodic job' is selected while scheduling the process chain.

Regards,

Harish.

Former Member
0 Kudos

Hi ,

Please go through doc , it describ how to execute process chain at multple times through event.

http://scn.sap.com/docs/DOC-28840

Hope it will help you.

Regards,

Anand Mehrotra.

Former Member
0 Kudos

Whille scheduling with 'Immediate' option, select Periodic Job option and try.

former_member200211
Active Participant
0 Kudos

hi Narasa,

Thanks for the helpful answer.

In the start variant of PC, I have used the After Event option and selected Periodic, this helped to trigger the chain the second time when the condition in the last step of program satisfies.

Now the issue is, when PC completes first time, the chian is triggered again and it runs second time, now even before the chain completes, the chain is again triggered for third time...

can you please tell me the cause of this,

Former Member
0 Kudos

Hi Lavanya,

Use 'Check if previous run is active' process type in the process chain after the 'start' process type.

Regards,

Harish.

former_member200211
Active Participant
0 Kudos

Hi.

I could not find this Process type.