Professional Documents
Culture Documents
This guide is about our experience with Customization of flexible workflow for Purchase Orders, the issue
we faced and the resolutions for the same. The below information can also be used as a reference for the
configuration of flexible workflow for others scenarios.
Pre requisite:
Ensure that the automatic Customizing is active for the workflow functionality in SWU3 TCode.
Twitter @mistersharesap
1|Page
Flexible workflow for purchase order
Go to the following the path in SPRO: SAPNETWEAVER–> Application Server –> Business Management
–> SAP Business Workflow –> Flexible Workflow –> Scenario Activation
Twitter @mistersharesap
2|Page
Flexible workflow for purchase order
Twitter @mistersharesap
3|Page
Flexible workflow for purchase order
Twitter @mistersharesap
4|Page
Flexible workflow for purchase order
Twitter @mistersharesap
5|Page
Flexible workflow for purchase order
Open the Manage Workflow for Purchase Orders. The application is blank with the message “There are
currently no scenarios available
Twitter @mistersharesap
6|Page
Flexible workflow for purchase order
Click the Add button to create a new workflow for purchase orders.
Twitter @mistersharesap
7|Page
Flexible workflow for purchase order
Twitter @mistersharesap
8|Page
Flexible workflow for purchase order
Twitter @mistersharesap
9|Page
Flexible workflow for purchase order
To add the Step sequence click the add button in the Step Sequence Section.
Twitter @mistersharesap
10 | P a g e
Flexible workflow for purchase order
In the New Step page, Enter the Step Name and Step Type as Release of Purchase Order
Twitter @mistersharesap
11 | P a g e
Flexible workflow for purchase order
For Recipients Select User for Assignment By. For the user field, select a user from the Search help.
Twitter @mistersharesap
12 | P a g e
Flexible workflow for purchase order
Twitter @mistersharesap
13 | P a g e
Flexible workflow for purchase order
Twitter @mistersharesap
14 | P a g e
Flexible workflow for purchase order
Twitter @mistersharesap
15 | P a g e
Flexible workflow for purchase order
Activate HR Integration
Go to SM30
Twitter @mistersharesap
16 | P a g e
Flexible workflow for purchase order
Twitter @mistersharesap
17 | P a g e
Flexible workflow for purchase order
Twitter @mistersharesap
18 | P a g e
Flexible workflow for purchase order
Twitter @mistersharesap
19 | P a g e
Flexible workflow for purchase order
Before, employee has to be created as a business partner and synchronization with hr data Once done the
data will be visible in the search help
Twitter @mistersharesap
20 | P a g e
Flexible workflow for purchase order
*
In the Step Conditions tab, provide the relevant triggers for this specific step. We can provide as many
conditions as we want, these conditions will be responsible for triggering this step
Twitter @mistersharesap
21 | P a g e
Flexible workflow for purchase order
No change is needed for Deadlines or Exception Handling, click the Add Button to Add the above step to the
workflow.
Twitter @mistersharesap
22 | P a g e
Flexible workflow for purchase order
Twitter @mistersharesap
23 | P a g e
Flexible workflow for purchase order
Click the Define Order button to ensure that the workflow gets triggered if the Start conditions are met.
Twitter @mistersharesap
24 | P a g e
Flexible workflow for purchase order
Twitter @mistersharesap
25 | P a g e
Flexible workflow for purchase order
Significance of Order field: If the start/trigger conditions of our workflow at order 1 are not met then it will
check the start/trigger conditions of the workflow at order 2 (given the status is active) and so on.
create a Purchase order in the Manage Purchase order application. We can see the Approval Details for the
Purchase Order in the Approval Details tab.
Twitter @mistersharesap
26 | P a g e
Flexible workflow for purchase order
Twitter @mistersharesap
27 | P a g e
Flexible workflow for purchase order
Twitter @mistersharesap
28 | P a g e
Flexible workflow for purchase order
Open the My Inbox application for If the relevant task is not visible do the below steps
Twitter @mistersharesap
29 | P a g e
Flexible workflow for purchase order
In SPRO go to Materials Management –> Purchasing –> Purchase Order –> Flexible Workflow for Purchase
Orders –> Activate Flexible workflow for Purchase Orders
Twitter @mistersharesap
30 | P a g e
Flexible workflow for purchase order
Twitter @mistersharesap
31 | P a g e
Flexible workflow for purchase order
Go to SAP Gateway Service Enablement –> Content –> Workflow Settings –> Maintain Task Names and
Decision Options
Twitter @mistersharesap
32 | P a g e
Flexible workflow for purchase order
Twitter @mistersharesap
33 | P a g e
Flexible workflow for purchase order
Select the above entry and click on Decision Keys and maintain the two Decision keys as below
Twitter @mistersharesap
34 | P a g e
Flexible workflow for purchase order
Twitter @mistersharesap
35 | P a g e
Flexible workflow for purchase order
Assign Agents and Activate Event Linkages for Workflow ID WS 00800238 and TS 00800531
SAP Netweaver –> Application Server –> Business Management –> SAP Business –>Workflow –>
Perform task-specific Customizing
Twitter @mistersharesap
36 | P a g e
Flexible workflow for purchase order
Twitter @mistersharesap
37 | P a g e
Flexible workflow for purchase order
Click Assign Agents –> select line with TS00800531 –> Click Attributes and select General Task–>click
Transfer
Twitter @mistersharesap
38 | P a g e
Flexible workflow for purchase order
Twitter @mistersharesap
39 | P a g e
Flexible workflow for purchase order
Twitter @mistersharesap
40 | P a g e
Flexible workflow for purchase order
Click Activate Event Linking–>Expand the hierarchy to display the relevant event for WS00800238 –
>Activate the linkage for the listed event by clicking on the Deactivated button
Twitter @mistersharesap
41 | P a g e
Flexible workflow for purchase order
Once done the task will be visible in the My Inbox application, but still, there is no mail received by the
recipient.
Twitter @mistersharesap
42 | P a g e
Flexible workflow for purchase order
Now let’s set up the Email transmission. The prerequisite to set up the Email is as below:
In Transaction Code S_ATO_SETUP, set up Adaptation Transport organizer with specific data using YY1_ as
prefix and sandbox prefix as YY9_.
Twitter @mistersharesap
43 | P a g e
Flexible workflow for purchase order
Twitter @mistersharesap
44 | P a g e
Flexible workflow for purchase order
Twitter @mistersharesap
45 | P a g e
Flexible workflow for purchase order
Open the Maintain Email Template application. In the pre-delivered section find the template
SWF_CRT_NOTIFY_RECIPIENTS.
Twitter @mistersharesap
46 | P a g e
Flexible workflow for purchase order
Copy the above-mentioned template for each of the workflow scenarios. e.g. YY1_00800238_CRT_ALL for
PO. This workflow template will be triggered to notify the recipients of the newly created PO, or whenever
there is a PO task for approval.
Test again by creating a PO. If the mail is still not getting triggered Report
RSWF_OUTPUT_MANAGEMENT needs to be executed manually with parameter productive in order to
release the emails manually
Twitter @mistersharesap
47 | P a g e
Flexible workflow for purchase order
Twitter @mistersharesap
48 | P a g e
Flexible workflow for purchase order
SLG1
Twitter @mistersharesap
49 | P a g e
Flexible workflow for purchase order
Twitter @mistersharesap
50 | P a g e