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

BAdi /SAPSRM/BD_WF_PROCESS_RESTART processing

Former Member
0 Likes
380

Hi all,

In SRM 7.0, The Badi '/SAPSRM/BD_WF_PROCESS_RESTART' is used to determine if the workflow has to be restarted when it is already in process. For eg., if a shopping cart is in 2nd level approval and the creator of the shopping cart edits the cart, then the current workflow is suspended and it goes for approval from 1st level. In this Badi enhancement, the method 'SUPPRESS_PROCESS_RESTART' is used to determine the restart.

1) I want to know how and where the BAdi is called.

I also see in workflow Ws40000015(sub workflow of WS40000014), a wait for event step which has 'INTERRUPT' event of class '/SAPSRM/CL_WF_PROCESS_SBWF'.

2) Can anyone tell where this event is triggered?

3) Is it not possible to restart a workflow for a shopping if already an instance is running for the same shopping cart?

4) Is it possible to write any code to kill the current running process and start a new instance of the workflow?

Thanks,

Sivagami R

Accepted Solutions (1)

Accepted Solutions (1)

masa_139
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi,

Just info for 4).

Class Interface: /SAPSRM/CL_WF_ADV_FACADE

Methods:

RESTART_PROCESS

CANCEL_PROCESS_FOR_RESTART

START_PROCESS

INTERRUPT_PROCESS

WAPI FM:

SAP_WAPI_ADM_WORKFLOW_CANCEL

SAP_WAPI_ADM_WORKFLOW_RESTART

SAP_WAPI_ADM_WORKFLOW_RESUME

SAP_WAPI_ADM_WORKFLOW_SUSPEND

SAP_WAPI_ADM_WORKITEM_BACK

SAP_WAPI_ADM_WORKITEM_REDORULE

Regards,

Masa

Former Member
0 Likes

Hello Masa,

I would like to that can we restart any particular process level with BAdI /SAPSRM/BD_WF_PROCESS_RESTART.

Regards,

Krish

Answers (1)

Answers (1)

0 Likes

HI Sivangami,

Did you get reason for a wait for event step which has 'INTERRUPT' event of class '/SAPSRM/CL_WF_PROCESS_SBWF.

I am also facing same issue .

Satyajit