Professional Documents
Culture Documents
Procure to Pay
Flexible Workflow for Purchase Requisitions
David Ahaiwe
PROCURE TO PAY
TABLE OF CONTENTS
PR WORKFLOW OVERVIEW ..........................................................................................................................3
1 CHECK AUTOMATIC WORKFLOW CUSTOMIZING ........................................................................4
2 ACTIVATE FLEXIBLE WORKFLOWS SCENARIO .............................................................................5
3 DEFINE STEP NAMES AND DECISION OPTIONS IN MY INBOX..................................................10
4 DEFINE VISUALIZATION METADATA FOR MY INBOX ....................................................................13
5 DEACTIVATE EVENT TYPE LINKAGES FOR SAP BUSINESS WORKFLOWS ..........................20
6 GENERALIZE TASKS AND ACTIVATE EVENT TYPE LINKAGES FOR FLEXIBLE
WORKFLOW ......................................................................................................................................................21
7 REGISTER GATEWAY SERVICE FOR VALUE HELPS .........................................................................24
8 ADAPT FLEXIBLE WORKFLOW SETTINGS ..........................................................................................26
9 ADAPT THE CONDITIONS UNDER WHICH THE FLEXIBLE WORKFLOW IS RESTARTED .....28
David Ahaiwe
PROCURE TO PAY
PR WORKFLOW OVERVIEW
The flexible workflow is a general function that allows you to define condition-based
workflows for approval processes. The flexible workflow for purchase requisitions allows
you to define one-step or multi-step approval processes for purchase requisitions
according to your requirements. Approvers can then approve or reject their work items in
the app My Inbox.
Overall release
The entire purchase requisition is approved. This type of approval is also referred to as
header-level approval.
The items of a purchase requisition are approved individually. This type of approval is also
referred to as item-level approval.
Approvers receive notifications about new work items in the SAP Fiori launchpad. If
required, you can also configure e-mail notifications to be sent to them. Requestors can
also be notified via e-mail when their purchase requisition has been approved or rejected.
David Ahaiwe 3 |P a g e
PROCURE TO PAY
What to do Ensure that the automatic Customizing is active for the workflow
functionality
David Ahaiwe 4 |P a g e
PROCURE TO PAY
How to Add the workflow scenario IDs that you want to use and activate them. To
do it find the workflow scenarios IDs for approval workflows in Sourcing and
Procurement, see Flexible Workflow in Sourcing and Procurement:
Scenarios and Tasks Overview.
In some of the configuration activities for the flexible workflow, you will need to specify
the workflow scenario ID, sometimes in combination with the IDs of the standard
David Ahaiwe 5 |P a g e
PROCURE TO PAY
workflow tasks. Below, please find an overview of these IDs for all workflow scenarios in
Sourcing and Procurement.
Note
The IDs of tasks for the automatic release are not listed, as they don't need to be used in
any configuration settings.
David Ahaiwe 6 |P a g e
PROCURE TO PAY
David Ahaiwe 7 |P a g e
PROCURE TO PAY
Requisition
Item
David Ahaiwe 8 |P a g e
PROCURE TO PAY
David Ahaiwe 9 |P a g e
PROCURE TO PAY
How to 1. In the Step Name: Overview, check whether the entries listed below
do it are available. If not, choose New Entries and create the settings
below, as required. The step names are used in the app My Inbox to
group the approvers' work items.
David Ahaiwe 10 |P a g e
PROCURE TO PAY
1 Approve POSITIVE
2 Reject NEGATIVE
David Ahaiwe 11 |P a g e
PROCURE TO PAY
David Ahaiwe 12 |P a g e
PROCURE TO PAY
When you use the flexible workflow for the approval of procurement documents, you
have to ensure that the app My Inbox is available and set up for your approvers. To do
this, you have to enter the data listed below in Customizing for Materials Management
under Purchasing Purchase Requisition Flexible Workflow for Purchase
Requisitions Client-Dependent Configuration. Proceed as follows:
1. As the Worklist Client, select SAPUI5 My Inbox or My Inbox (you see either of the
two, depending on your system settings).
2. Select the Task tab and choose Create New Line.
3. Enter the data listed below. Do not fill the column Dynamic.
Note
To fully display the visualization parameter values, you may have to use the horizontal
scrollbars, if available.
For the old workflow for the overall release of regular purchase requisitions (workflow
scenario ID WS00800157 and task ID TS00800547):
SCHEME Sapui5
COMPO cross.fnd.fiori.inbox.annotationBasedTaskUI
NENT_N
AME
QUERY_ service=/sap/opu/odata/sap/C_PURREQUISITION_FS_SRV
PARAM0
0
QUERY_ entity=/C_PurRequisitionFs(PurchaseRequisition='{&_WI_Object_I
PARAM0 D.Number&}')
1
David Ahaiwe 13 |P a g e
PROCURE TO PAY
QUERY_ annotations=/sap/opu/odata/IWFND/CATALOGSERVICE;v=2/Annota
PARAM0 tions(TechnicalName='C_PURREQUISITION_FS_ANNO_MDL',Versi
2 on='0001')/$value
For the old workflow for the release of regular purchase requisition items (workflow
scenario ID WS00800173 and task ID TS00800548):
SCHEME Sapui5
COMPO cross.fnd.fiori.inbox.annotationBasedTaskUI
NENT_N
AME
QUERY_ service=/sap/opu/odata/sap/C_PURREQUISITIONITEM_FS_SRV
PARAM0
0
QUERY_ entity=/C_PurRequisitionItemFs(PurchaseRequisition='{&_WI_Obje
PARAM0 ct_ID.Number&}',PurchaseRequisitionItem='{&_WI_Object_ID.Ite
1 m&}')
QUERY_ annotations=/sap/opu/odata/IWFND/CATALOGSERVICE;v=2/Annota
PARAM0 tions(TechnicalName='C_PURREQUISITIONITEM_FS_ANNO_MDL',
2 Version='0001')/$value
For the workflow for the overall release of regular purchase requisitions (workflow
scenario ID WS02000458 and task ID TS02000702):
SCHEME Sapui5
David Ahaiwe 14 |P a g e
PROCURE TO PAY
COMPO cross.fnd.fiori.inbox.annotationBasedTaskUI
NENT_N
AME
QUERY_ service=/sap/opu/odata/SAP/C_PURREQUISITION_FS_SRV
PARAM0
0
QUERY_ entity=/C_PurRequisitionFs(PurchaseRequisition='{OBJKEY}')
PARAM0
1
QUERY_ annotations=/sap/opu/odata/IWFND/CATALOGSERVICE;v=2/Annota
PARAM0 tions(TechnicalName='C_PURREQUISITION_FS_ANNO_MDL',Versi
2 on='0001')/$value
For the workflow for the release of regular purchase requisition items (workflow
scenario ID WS02000471 and task ID TS02000714):
SCHE Sapui5
ME
COMP cross.fnd.fiori.inbox.annotationBasedTaskUI
ONEN
T_NA
ME
QUER service=/sap/opu/odata/sap/C_PURREQUISITIONITEM_FS_SRV
Y_PA
RAM0
0
QUER entity=/C_PurRequisitionItemFs(PurchaseRequisition='{&_WI_OBJEC
Y_PA T_ID.MS_PUR_REQ_ITEM.PURCHASEREQUISITION&}',PurchaseRequi
David Ahaiwe 15 |P a g e
PROCURE TO PAY
RAM0 sitionItem='{&_WI_OBJECT_ID.MS_PUR_REQ_ITEM.PURCHASEREQU
1 ISITIONITEM&}')
QUER annotations=/sap/opu/odata/IWFND/CATALOGSERVICE;v=2/Annotatio
Y_PA ns(TechnicalName='C_PURREQUISITIONITEM_FS_ANNO_MDL',Versi
RAM0 on='0001')/$value
2
SCHEME Sapui5
COMPO cross.fnd.fiori.inbox.annotationBasedTaskUI
NENT_N
AME
QUERY_ service=/sap/opu/odata/SAP/C_PURREQUISITION_FS_SRV
PARAM0
0
QUERY_ entity=/C_PurRequisitionFs(PurchaseRequisition='{OBJKEY}')
PARAM0
1
QUERY_ annotations=/sap/opu/odata/IWFND/CATALOGSERVICE;v=2/Annota
PARAM0 tions(TechnicalName='C_PURREQUISITION_FS_ANNO_MDL',Versi
2 on='0001')/$value
David Ahaiwe 16 |P a g e
PROCURE TO PAY
SCHE Sapui5
ME
COMP cross.fnd.fiori.inbox.annotationBasedTaskUI
ONEN
T_NA
ME
QUER service=/sap/opu/odata/sap/C_PURREQUISITIONITEM_FS_SRV
Y_PAR
AM00
QUER entity=/C_PurRequisitionItemFs(PurchaseRequisition='{&_WI_OBJEC
Y_PAR T_ID.MS_CPR_ITEM.PURCHASEREQUISITION&}',PurchaseRequisition
AM01 Item='{&_WI_OBJECT_ID.MS_CPR_ITEM.PURCHASEREQUISITIONITE
M&}')
QUER annotations=/sap/opu/odata/IWFND/CATALOGSERVICE;v=2/Annotati
Y_PAR ons(TechnicalName='C_PURREQUISITIONITEM_FS_ANNO_MDL
AM02
David Ahaiwe 17 |P a g e
PROCURE TO PAY
David Ahaiwe 18 |P a g e
PROCURE TO PAY
David Ahaiwe 19 |P a g e
PROCURE TO PAY
Note
As a rule, activating flexible workflow scenarios (see above Activate flexible workflow
scenarios) is sufficient to override old workflow scenarios. To be on the safe side, you can
additionally deactivate any old workflow scenarios you may have used previously.
More See the product assistance that is linked from the transaction.
information
David Ahaiwe 20 |P a g e
PROCURE TO PAY
What to do You have to ensure that the system events are linked to your workflow scenarios, and you
have to define the potential agents of workflow tasks to clearly define the organizational
responsibility for processing work items. Perform the Customizing steps described below.
More To generalize your workflow tasks, navigate to the required SAP application component,
information for example MM-PUR-REQ - Purchase Requisitions and proceed as follows:
2. Select a standard task for your business object. (The IDs of tasks start with TS).
See Flexible Workflow in Sourcing and Procurement: Scenarios and Tasks
Overview. Do not select a background task.
2. Select a workflow scenario for your business object. (The IDs of workflow
scenarios start with WS).
David Ahaiwe 21 |P a g e
PROCURE TO PAY
David Ahaiwe 22 |P a g e
PROCURE TO PAY
David Ahaiwe 23 |P a g e
PROCURE TO PAY
What to do You have to register an OData service to enable the value help in the flexible workflow.
More 1. On the Activate and Maintain Services screen, choose Add Service.
information
2. On the Add Selected Services screen, use the value help of the System Alias field
to select the required back end system. (It must be an SAP S/4HANA system).
5. On the subsequent Add Service screen, enter the required data and continue.
David Ahaiwe 24 |P a g e
PROCURE TO PAY
David Ahaiwe 25 |P a g e
PROCURE TO PAY
Note
More See the system documentation available for this Customizing activity.
information
Default Settings for Users
David Ahaiwe 26 |P a g e
PROCURE TO PAY
David Ahaiwe 27 |P a g e
PROCURE TO PAY
What to do Changes to certain fields of a purchase requisition trigger a restart of the workflow. A
configuration step is available that allows you to select or deselect the fields that exist in
purchase requisitions. Whenever the values of these fields are then updated in a purchase
requisition, the system triggers a restart of the approval process. Use the columns in the
Customizing activity as follows:
▪ Column SSC Proc. lists the fields in the app Create Purchase Requisitions.
▪ Column Prf. Proc. lists the fields in the apps Create Purchase Requisitions -
Advanced and Manage Purchase Requisitions - Professional.
More See the system documentation available for this Customizing activity.
information
Note
A Business Add-In (BAdI) is also available that enables you to define which changes made
to purchase requisitions will restart the approval process. See Custom Fields and Logic.
David Ahaiwe 28 |P a g e
PROCURE TO PAY
David Ahaiwe 29 |P a g e
PROCURE TO PAY
David Ahaiwe 30 |P a g e