The purpose of this document is to provide information on how to create an implementation for the BAdI /SAPSRM/BD_WF_PROCESS_RESTART on SRM 7 and above.
The document will describe, which methods and parameters are available in the BAdI /SAPSRM/BD_WF_PROCESS_RESTART to override the standard system behavior for workflow restarts.
In the standard system, there is no activated BAdI implementation. The BAdI is filter-dependent. The filter is a value pair consisting of the Document Type and the Schema Name, which you have specified in Customizing for process level configuration.
VALIDATE_RESTART - Overrules Standard Process Restart
This method overrides the restart behavior of the workflow.
|IS_DOCUMENT||Importing||Purchasing Document (BAdI Interface Parameter)|
|IV_CURRENT_PROCESS_SCHEME||Importing||Process Level Scheme|
|IV_NEXT_PROCESS_SCHEME||Importing||Process Level Scheme|
|IV_DEFAULT_RESTART||Importing||Default system restart indicator|
|EV_RESTART||Exporting||Custom restart indicator|
The BAdI /SAPSRM/BD_WF_PROCESS_RESTART is called in method DETERMINE_PROCESS_RESTART of class /SAPSRM/CL_WF_PROCESS_MANAGER.
SUPPRESS_PROCESS_RESTART - Deprecated method, not used
Implement the VALIDATE_RESTART method. The following value of the variable EV_RESTART will indicate the restart behavior:
The coding can contain complex evaluations, which will determine in which case the workflow should be restarted.
Related SAP Notes/KBAs
KBA: 1463639 Completion level step is approved but shopping cart contains no vendor or no price
KBA: 1700677 BAdI /SAPSRM/BD_WF_PROCESS_CONFIG not executed when a shopping cart is changed during completion step
KBA: 1700706 BAdI /SAPSRM/BD_WF_PROCESS_CONFIG not executed when a shopping cart is ordered, then requestor recalls and edits it