0% found this document useful (0 votes)
148 views

Restart A Process Chain at A Failed Step

To restart a failed process chain at the failed step, you need to: 1. Set the failed request/step status to green in the database. 2. Run a function module to raise an event forcing the process chain to run from the next step. 3. In the function module, copy fields from the failed step log entry into the function module inputs and set the state to green. This will set the actual process to green status and start the following process in the chain.

Uploaded by

Hari Krishna
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
148 views

Restart A Process Chain at A Failed Step

To restart a failed process chain at the failed step, you need to: 1. Set the failed request/step status to green in the database. 2. Run a function module to raise an event forcing the process chain to run from the next step. 3. In the function module, copy fields from the failed step log entry into the function module inputs and set the state to green. This will set the actual process to green status and start the following process in the chain.

Uploaded by

Hari Krishna
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 1

How is it possible to restart a process chain at a failed step/request?

Sometimes, it doesn't help to just set a request to green status in order to run the process chain
from that step on to the end.
You need to set the failed request/step to green in the database as well as you need to raise the
event that will force the process chain to run to the end from the next request/step on.

Therefore you need to open the messages of a failed step by right clicking on it and selecting
'display messages'.
In the opened popup click on the tab 'Chain'.
In a parallel session goto transaction se16 for table rspcprocesslog and display the entries with
the following selections:
1. copy the variant from the popup to the variante of table rspcprocesslog
2. copy the instance from the popup to the instance of table rspcprocesslog
3. copy the start date from the popup to the batchdate of table rspcprocesslog
Press F8 to display the entries of table rspcprocesslog.
Now open another session and goto transaction se37. Enter RSPC_PROCESS_FINISH as the
name of the function module and run the fm in test mode.
Now copy the entries of table rspcprocesslog to the input parameters of the function module like
described as follows:
1. rspcprocesslog-log_id -> i_logid
2. rspcprocesslog-type -> i_type
3. rspcprocesslog-variante -> i_variant
4. rspcprocesslog-instance -> i_instance
5. enter 'G' for parameter i_state (sets the status to green).
Now press F8 to run the fm.
Now the actual process will be set to green and the following process in the chain will be started
and the chain can run to the end.

Of course you can also set the state of a specific step in the chain to any other possible
value like 'R' = ended with errors, 'F' = finished, 'X' = cancelled ....
Check out the value help on field rspcprocesslog-state in transaction se16 for the possible
values.

You can try this to change the status of the predecessor process to R or X so that repeat is
available for the successor step.

You might also like