SAP Knowledge Base Article - Public

2775709 - Purchase Requisitions Workflow Restart using SSCUI and BADI

Symptom

When the Purchase Requisitions in SAP S/4 HANA changes, the system restarts the approval if the changes to the Purchase Requisitions are critical.
Example Scenario: Assign 'source of supply' to the Purchase Requisition via app 'Assign and process purchase requisitions' re-triggers workflow.

Environment


S4HC

Reproducing the Issue

When the Purchase Requisitions in SAP S/4 HANA changes, the system restarts the approval if the changes to the Purchase Requisitions are critical. The users can now decide which change is critical for their business process and should influence the restart of Purchase Requisitions approval. This is possible through the following two options:

  1. Override the default conditions that restart the approval workflow in the purchase requisitions using the Self-Service Configuration UI Manage Conditions to Restart Flexible Workflow. In Manage Conditions to Restart Flexible Workflow configuration, available with the Manage your Solutions app, restart of Purchase Requisitions approval can be stopped for specific attributes. 

Column "SS Proc."  is applicable for Purchase Requisitions created from the Self Service Purchase Requisitions App - Create Purchase Requisition. By default, the attributes relevant for self-service procurement are selected and editable. The attributes which are not editable indicates that they are not applicable for Self-Service Procurement. These are Purchase Requisitions with creation indicator, ESTKZ = 'S' i.e., Self-Service Procurement

Column "Prf. Proc." is for Purchaser role is applicable for the Purchase Requisitions created from the Create Purchase Requisition Advanced and Manage Purchase Requisition Professional Applications. By default, the attributes relevant for Professional Procurement are selected and editable. The attributes which are not editable indicates that they are not applicable for Professional Procurement. These are Purchase Requisitions with creation indicator, ESTKZ = 'R' i.e., Realtime (manual).

You can deselect the attributes which on change should not restart the approval workflow.

Example

There is no need to restart the approval  of Self-Service Purchase Requisitions when the Delivery date changes. Deselect the 'SS Proc' column of the attribute 'Delivery Date'.

2. Define own conditions to restart the approval workflow in purchase requisitions Business Add-In (BAdI) Define Conditions to Restart Flexible Workflow.

Additionally, BAdI Define Conditions to Restart Flexible Workflow ( MM_PUR_S4_PR_WFL_RESTART) can be used to further control the restart approval workflow based on attribute values. Create an implementation in Define Conditions to Restart Flexible Workflow using the Custom Fields and Logic app. An example implementation is provided for reference with the BAdI. This BAdI is can be used to influence the approval restart of Purchase requisitions with any creation indicator. Custom fields are not currently supported for this BAdI.

Example

There is no need to restart the approval of Purchase Requisitions for a particular plant, assume plant 'ABCD'. The following code snippet can be implemented using the Custom Fields and Logic app.

IF PURCHASEREQITEMSCURR-PLANT = 'ABCD'. "Purchase requisition plant

    CLEAR RESTARTWORKFLOW.

ENDIF.

 Please refer the help and the what’s new for the details.

Cause

When Source of Supply is assigned, following fields are changed/affected.
• Purchasing Organization
• Purchasing Info Record Number
• Principal Purchase Agreement Number
• Principal Purchase Agreement Item Number

Resolution

Uncheck the following attributes in the respective columns "SS Proc."/"Prf Proc." for NOT re-starting the workflow.
1) Purchasing Organization
2) Purchasing Info Record Number
3) Principal Purchase Agreement Number
4) Principal Purchase Agreement Item Number

See Also

KBA 2665086 to know the default conditions that restart the approval workflow in the purchase requisitions.

KBA 2846174 to know more about the BADI to Define Conditions to Restart Flexible Workflow for Purchase Requisitions.

 

Keywords

S4HANA Cloud, Cloud, Purchase Requisition, Restart workflow, Re-trigger workflow, Advanced, Info Record, Purchase Organization , KBA , MM-FIO-PUR-REL , Fiori UI for Purchasing Approval , MM-FIO-PUR-REQ , Fiori UI for Purchase Requisitions , Problem

Product

SAP S/4HANA Cloud all versions