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

Repeat a process step in a process chain automatically after error?

Former Member
0 Likes
2,798

Hi Folks,

I got a process chain with selective deletion. From time to time the selective deletion "fails" as another load is running and a lock cannot be set.

In this situation I would like to re-try 5 min later. How do I set this up? Do I need another ABAP prg. process variant (as I can't insert the same again) and connect this with the "unsuccesful" link + debug loop 350 sec?

Or is there any other / better way to accomplish this?

Thanks and best regards,

Axel

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Likes

Hi Axel,

Here you have few more ways to accomplish the requirement mentioned by you.

1) You can write an ABAP to check if the loads are running in the target and then only start the selective deletion once the load is completed.

2) You can also include the loading step which loads the data to the target in the chain before the selective deletion step. Link the steps in such a way that whenever the load is successful, then only selective deletion can start.

3) You can also try including the process for running the load to the target. Create an event which will be raised once the load is complete. And this event can be captured in the other chain where selective deletion is required.

Thanks

Pawan

Answers (3)

Answers (3)

Former Member
0 Likes

Hi Axel,

As you already know that it will be work if repeated after X seconds, You need not go with "unsuccesful" link + debug loop 350 sec , just go with successful link + Debug loop for the selective deletion step.

Hope this helps.

Regards,

Sai

Former Member
0 Likes

Hi Folks,

I set up the "error path" with a repeat step. However, the error path is not executed.

The system always notifies a Termination but the process step (ABAP) in the process chain did not get this status...

The analysis of chain ZXY showed that

process Z_ABAP SEL_DEL1 was cancelled.

However, the process has a metachain or successors that

should be executed when there are errors. Run

4ND9Q5ZEDUMN61SPC043FDBTN did not finish due to termination.

If a metachain exists, it was not informed about the error.

Should run of chain ZDEL and possible

metachain be continued

Is this a system setting? Or what is going on? The chain where the error path is setup is called by another chain.

Thanks and best regards,

Axel

Former Member

What a pain ...

It seems that you need to add the process chain where ABAP sends status to transaction RSPCM and then schedule a monitor batch run to have the process chain process further if an error occurs.

Moreover the process chain gets status red even if at the "error path" all steps process succesfull. I am pretty sure our external scheduling tool won't like it.

So overall I really appreciate if SAP could have on a process an simply auto repeat in 5 min when failing, stop after 3 re-tries feature ....

Best regards,

Axel

Former Member
0 Likes

Hi,

Debug loop will be a good option but make sure that you set sufficient time interval so that overlap doesn't come again.

Regards,

Durgesh.

Former Member
0 Likes

Hi Axel,

The best way is add Debug loop for selective deletion step in your process chain.

before giving wait time, analyse how much is required to finish the other load.

Regards,

Venkatesh