SAP Knowledge Base Article - Public

3053155 - Restart Purchase Order Workflow using SSCUI 103345 and BAdI MMPUR_PO_WORKFLOW_RESTART

Symptom

How can a Purchase Order workflow be restarted once it is approved and then a change is done to the field in a PO?

Environment

SAP S/4HANA Cloud

Resolution

  • Configure in SSCUI 103345- Manage Conditions to Restart Flexible Workflow for Purchase Orders:

In this configuration step, you can select various attributes for purchase orders that are relevant for the restart of the flexible workflow. Whenever you update the values of these attributes in the purchase orders, the system triggers a restart of the approval process.

In some scenarios, you might want to disable some of the default restart workflow conditions for purchase orders. You can use this configuration step to disable these conditions to prevent default restart of workflow.

  • In addition to the SSCUI, there is a BADI MMPUR_PO_WORKFLOW_RESTART- Define Conditions to Restart Workflow in Purchase Orders:

With this BADI you will have your own logic to define which changes made to purchase orders will restart the approval process. You can also use this custom logic to override the configurations defined in configuration step Manage Conditions to Restart Flexible Workflow for Purchase Orders.

Consider the following details on the use of SSCUI 103345.

  • Check the logic depending on Purchase order Status:

Case 1:

When a purchase order that was approved is edited and ordered again, workflow will start based on SSCUI restart conditions. If Workflow start/restart BADI is implemented, BAdI decision on start will be considered over and above the decision based on SSCUI start conditions.

Note:This is a case of workflow start and one can see approval details to show new workflow instance and new work items.

Case 2:

When a purchase order is edited while it is undergoing approval and ordered again, workflow will re-start based on SSCUI restart conditions. If Workflow start BAdI is implemented, BAdI decision on restart will be considered over and above the decision based on SSCUI Restart conditions.

Note: This is a case of workflow restart and one can see approval details to show the following :

Always restart : cancel and start new workitem

Conditional restart : continue on existing work item

Case 3:

When a purchase order that was rejected, re-submitting the rejected Purchase Order the business user has to make a change, even a minor change to the Short text or a Header/Item Text. This change will restart the approval process.This will occur independently on SSCUI or BADI implementation.

  • Step conditions cannot figure in our conditional restart evaluation.

During conditional restart, workflow does not check the step conditions in the workflow definition. Once the PO has changed with the conditional restart relevant field, then workflow would check the start condition of the workflow definition and resume from the current step.

Keywords

workflow badi, sscui, 103345, Manage conditions to restart flexible workflow, S4HC, MM-FIO-PUR-PO-WFL, X4BC, S4_1C, S4_PC, Restart badi, wf, purchase order workflow, Restart Purchase Order Workflow using SSCUI 103345, MMPUR_PO_WORKFLOW_RESTART, manage workflows for Purchase Orders , KBA , MM-FIO-PUR-PO-WFL , Purchase Order Workflow , Problem

Product

SAP S/4HANA Cloud Public Edition all versions ; SAP S/4HANA Cloud all versions