Documente Academic
Documente Profesional
Documente Cultură
DRIVEN BY VALUES
Published at
KANIKA CHOPRA
ES-SAP
101884
Declaration
I hereby declare that this document is based on my personal experiences. To the best of my knowledge, this
document does not contain any material that infringes the copyrights of any other individual or organization
including the customers of Infosys.
Published at SAPTechnical.COM 1
INFOSYS TECHNOLOGIES LIMITED POWERED BY INTELLECT
DRIVEN BY VALUES
PAGE OF CONTENTS
1. INTRODUCTION 3
2. TRANSACTIONS TO BE USED 3
3. THE STEP-BY-STEP PROCEDURE 4
3.1 CREATE 2 CONTAINER ELEMENTS 5
3.1.1 CREATOR14 5
3.1.2 BUS2012 6
3.2 START CONDITION 6
3.2.1 BASIC TAB 7
3.2.2 ACTIVE – START EVENTS 8
3.2.3 BINDING – START EVENTS 8
3.2.4 START CONDITION 9
3.3 CONDITION STEP TYPE 11
3.4 ACTIVITY STEP TYPE 13
3.4.1 TASK 14
3.4.1.1 TASK CREATION 15
3.4.1.2 TASK BINDING 16
3.4.2 DEADLINE MONITORING 17
3.5 REMINDER MAIL 18
3.6 PROCESS CONTROL 20
4.0 COMPLETE WORKFLOW SCENARIO 21
5.0 QUESTIONS AND CONCEPTS ON THIS SCENARIO 22
5.1 SWE4 – EVENT TRACE 22
5.2 ME22N – PO CHANGE 22
5.3 SWEL – DISPLAY EVENT TRACE 23
5.4 WORKFLOW CHECKS 24
5.4.1 FOR WORKFLOW STARTED 24
5.4.2 FOR WORKFLOW MAIL IN SAP-INBOX 25
5.4.3 FOR REMINDER MAIL IN SAP-INBOX 26
Note: Before going through this document, the beginner should have knowledge about
Business objects <BO> and tasks/events.
Published at SAPTechnical.COM 2
INFOSYS TECHNOLOGIES LIMITED POWERED BY INTELLECT
DRIVEN BY VALUES
This scenario is based on Purchase Order Change. This scenario will prove helpful to all
those people who are absolutely new to WORKFLOWS in SAP.
As per the very first condition, the workflow should trigger on PO change that is whenever
a PO is changed; this Workflow should trigger automatically.
As per the second condition, the PO that is changed should always be NB type. On any other
kind of PO change, this Workflow should not trigger.
As per the third condition, who so ever changes the PO, if it is not the one who has created
it, a mail should go to the PO creator to inform him that his this PO number is changed.
As per the fourth condition, if the PO creator does not checks the original mail, a reminder
mail should go to him after 10 minutes, informing him about the status of the earlier mail.
There are some transactions that need to be used and are as follows:-
2. TRANSACTIONS TO BE USED
SWDD – Workflow Definition {here the workflow creation will take place}
SBWP – SAP Inbox {here we can check both the mail and the reminder mail}
ME22N – Purchase Order Change {this is used to change the purchase order}
PFTC – Task Maintenance {here we create a task}
SWO1 – Object Builder {transaction used to create, display and modify business objects}
For a beginner, the following concepts used in this scenario will prove helpful.
Start Condition
Deadline Monitoring
Step Types <Condition, Activity, Mail>
Published at SAPTechnical.COM 3
INFOSYS TECHNOLOGIES LIMITED POWERED BY INTELLECT
DRIVEN BY VALUES
Click the create button and you will see a new workflow.
Published at SAPTechnical.COM 4
INFOSYS TECHNOLOGIES LIMITED POWERED BY INTELLECT
DRIVEN BY VALUES
3.1 - Create 2 container elements in the Workflow container, since the values need
to be transferred into those container elements. The data transfer takes place
from task -> event -> workflow -> method.
3.1.1 - Create the first container element as creator14 of the type Workflow
Initiator with table name as WFSYST and field name as INITIATOR.
Published at SAPTechnical.COM 5
INFOSYS TECHNOLOGIES LIMITED POWERED BY INTELLECT
DRIVEN BY VALUES
Go to the Properties Tab and in the parameter settings check the Import checkbox for
both the container elements.
3.1.2 - Create another container element of BOR type and name it as BUS2012 and
using Business Object<BO> 2012. BO BUS2012 is used for Purchase Order.
Published at SAPTechnical.COM 6
INFOSYS TECHNOLOGIES LIMITED POWERED BY INTELLECT
DRIVEN BY VALUES
3.2.1 - The tab with basic data opens up. Enter the Workflow name and Workflow
Description and change the release status to Released.
Click on the Start Events tab – here we will give our start conditions.
Published at SAPTechnical.COM 7
INFOSYS TECHNOLOGIES LIMITED POWERED BY INTELLECT
DRIVEN BY VALUES
3.2.2 - Give the category as BO…object type as BUS2012 and event as Changed.
<Because WF should trigger on PO change>.Now press active and click √, the Active
button goes GREEN.
Published at SAPTechnical.COM 8
INFOSYS TECHNOLOGIES LIMITED POWERED BY INTELLECT
DRIVEN BY VALUES
3.2.3 - Now click the Binding button. Drag and Drop the elements from the
container and equate them. Click “√” and the binding button goes GREEN.
3.2.4 - Now click the Condition Tab. Here we have to specify the condition of PO
type should be NB...NB type PO’s are standard PO. Click the _EVT_OBJECT
Click on the PurchasingDocType container Element and equate it to NB.We will get a
condition in the last Rectangular Window.
Published at SAPTechnical.COM 9
INFOSYS TECHNOLOGIES LIMITED POWERED BY INTELLECT
DRIVEN BY VALUES
Now SAVE and go back. The workflow now should look like this.
Published at SAPTechnical.COM 10
INFOSYS TECHNOLOGIES LIMITED POWERED BY INTELLECT
DRIVEN BY VALUES
3.3 - Now double click on the un-defined step, create a Condition step since we
have to put a condition of checking where creator and changer are not-equal/equal.
Published at SAPTechnical.COM 11
INFOSYS TECHNOLOGIES LIMITED POWERED BY INTELLECT
DRIVEN BY VALUES
Creator14 will contain the value of one who has created that PO and
_Wf_Initiator will contain the value of the one who has changed that PO.
Click on “Click here to create new condition” and give the following condition.
Published at SAPTechnical.COM 12
INFOSYS TECHNOLOGIES LIMITED POWERED BY INTELLECT
DRIVEN BY VALUES
Published at SAPTechnical.COM 13
INFOSYS TECHNOLOGIES LIMITED POWERED BY INTELLECT
DRIVEN BY VALUES
3.4 - Go to that “both are different line” and then create an ACTIVITY.
The screen asks for a task, we have to create a new task now.
Published at SAPTechnical.COM 14
INFOSYS TECHNOLOGIES LIMITED POWERED BY INTELLECT
DRIVEN BY VALUES
The OBJECT CATEGORY/METHOD/TYPE are the ones that we have already used.
Published at SAPTechnical.COM 15
INFOSYS TECHNOLOGIES LIMITED POWERED BY INTELLECT
DRIVEN BY VALUES
3.4.1.2 - Click the Binding Button and press Transfer, and with that Automatic
binding will take place. After that the binding will show Green.
Published at SAPTechnical.COM 16
INFOSYS TECHNOLOGIES LIMITED POWERED BY INTELLECT
DRIVEN BY VALUES
After that the task will be created. Now simply we have to use this task name in that
activity and then press Enter.
Now assign the agents. Select the option user and give the server name of the creator.
Since the recipient of the mail is the creator.
Published at SAPTechnical.COM 17
INFOSYS TECHNOLOGIES LIMITED POWERED BY INTELLECT
DRIVEN BY VALUES
3.4.2 - Now clicks the LATEST END tab for DEADLINE MONITORING of 10
minutes and insert the following values.
Published at SAPTechnical.COM 18
INFOSYS TECHNOLOGIES LIMITED POWERED BY INTELLECT
DRIVEN BY VALUES
3.5 - Now on the Reminder mail branch create a SEND MAIL <reminder mail> step
type.
Published at SAPTechnical.COM 19
INFOSYS TECHNOLOGIES LIMITED POWERED BY INTELLECT
DRIVEN BY VALUES
Now Insert the following values in the Mail Step Type. In ABBR and NAME give any
Z name of your choice.
Published at SAPTechnical.COM 20
INFOSYS TECHNOLOGIES LIMITED POWERED BY INTELLECT
DRIVEN BY VALUES
Now the scenario portion is complete as of now. The thing is that we have to
complete the workflow after sending a reminder mail.
3.6 - For that we use a Step Type called as PROCESS CONTROL. After the send
mail activity create the process control step type to end the workflow.
Published at SAPTechnical.COM 21
INFOSYS TECHNOLOGIES LIMITED POWERED BY INTELLECT
DRIVEN BY VALUES
Now once the WORKFLOW is complete, SAVE & ACTIVATE the workflow. Remove
all errors and warnings. It should activate with 0 errors and 0 warnings..!!
Published at SAPTechnical.COM 22
INFOSYS TECHNOLOGIES LIMITED POWERED BY INTELLECT
DRIVEN BY VALUES
Published at SAPTechnical.COM 23
INFOSYS TECHNOLOGIES LIMITED POWERED BY INTELLECT
DRIVEN BY VALUES
Now we can see here the BO used is shown and the Workflows that are associated
with it are also there. The status of workflow is also shown with being active/error.
The Date and Time of the Workflows is also shown.
Published at SAPTechnical.COM 24
INFOSYS TECHNOLOGIES LIMITED POWERED BY INTELLECT
DRIVEN BY VALUES
Now we know that our workflow has triggered, that means our purchase order has
changed and the PO is of NB type. Now the issue is that we have to check whether the
person who has created or changed the PO are same or different. If they are
different, we should get a mail.
For this what we have done earlier is that, on the server which we are working, we have
created the 2 users. One user is to create the PO and other user to change the PO. So
that they both can be different and we can get a mail.
Another thing that we can do is that go to the condition step type and change the
condition from equal to not-equal, and use the same server without any user.
This will be simply for checking if other users on server are not available, as this is not
the correct method.
5.4.1- Now we move to Transaction SBWP – SAP INBOX. Click OUTBOX and Click
STARTED WORKFLOWS. There we can see our Workflow being started.
Published at SAPTechnical.COM 25
INFOSYS TECHNOLOGIES LIMITED POWERED BY INTELLECT
DRIVEN BY VALUES
5.4.2 - Now go to INBOX -> WORKFLOWS, here you can see your mail being sent
as an activity to the PO Creator.
Do not double click on this activity and do not Confirm Work Item. As doing this
would mean PO creator has checked the mail and there is no need of reminder mail.
Incase if YOU choose to click Complete Work Item, This would remove the activity from
the workflows and hence, no reminder mail would be there.
Published at SAPTechnical.COM 26
INFOSYS TECHNOLOGIES LIMITED POWERED BY INTELLECT
DRIVEN BY VALUES
5.4.3 - To check for the Reminder Mail, wait for 10 minutes. Go to INBOX ->
UNREAD DOCUMENTS. Here we can see the Reminder mail.
For more Tips and Tutorials on various technical areas, please visit
Published at SAPTechnical.COM 27