SAP Business Workflow - Quick Guide
SAP Business Workflow - Quick Guide
SAP Business Workflows are predefined in SAP R/3 system and the users can also create
their new workflows. The workflow allows the users to manage business processes in an
efficient manner such that it can be aligned with compliance.
Workflows ensure that right information is sent to the right person at the right time in a
correct sequence.
To perform a complex task in SAP system such as invoice approval, purchase request, etc.
involves going through different steps. These steps can be performed manually or by using
some formal communication such as email, notes, etc. When the tasks are performed
manually, there are some common problems associated with it, such as −
https://www.tutorialspoint.com/sap_business_workflow/sap_business_workflow_quick_guide.htm 1/88
11/4/24, 12:24 PM SAP Business Workflow - Quick Guide
The above image depicts a SAP Workflow process. It is a tool for automating business
processes and works uniformly across all the applications. As you can see, it is suitable
where the business processes involve multiple people or a group of people.
Business workflows can easily be integrated with Organization Management and SAP
NetWeaver BI for analysis purposes so it can easily determine the business processes that
suits your organization.
The above image shows a standard Purchase Requisition process. It shows that each step
involves wait time in the business process and with the use of a standard SAP Workflow,
this wait time can be eliminated.
Raising PO, Invoice, and Sales Order - All require approval from specific
stakeholders and involves multiple steps. Hence, a lot of wait time is added to the
cycle.
Auditing and Compliance - Areas where auditing is required or any specific
compliance has to be based on courtly laws, SOX, etc. They are tough to manage
using manual business process.
Specific Processes - Processes which involve standard repeated steps and follow
specific business rules. Example: When a new BP is created, you need to define
contact information, credit limit, and other information for managing process. It is
recommended to manage these specific processes using SAP Workflow.
With the use of SAP Workflows, organizations can easily overcome these challenges and
can also perform detailed reporting such as executing time, wait time, etc.
https://www.tutorialspoint.com/sap_business_workflow/sap_business_workflow_quick_guide.htm 2/88
11/4/24, 12:24 PM SAP Business Workflow - Quick Guide
Note − The Workflow wizard creates workflows, which are not complete and is used only
as a framework.
To create the workflows which meets your business process requirement, you should use
the Workflow Builder.
With the use of SAP Workflows, it is easy for users to know what tasks have to be
performed. Work items are sent to the user in notifications and with a single click,
it calls the correct T-code and navigates to the required screen in the application.
SAP applications contain workflows, which are ready to use. Users can also edit the
predefined business workflows to map them with the organization’s processes.
With the use of different workflow wizards, users can also create a specific part of
Business workflows. The workflow builder can be used to display and to make
https://www.tutorialspoint.com/sap_business_workflow/sap_business_workflow_quick_guide.htm 3/88
11/4/24, 12:24 PM SAP Business Workflow - Quick Guide
Workflows are not bound to specific SAP applications and it can be customized.
One of the main benefit of using SAP Workflow is that it is similar across all SAP
applications.
Workflows are useful for processes that include several people or group of people,
sequence of tasks, and coordination between different objects.
Following image shows a sample Workflow for notification of absence in the Workflow
Builder.
Business Object
Business Process
Organization Model
In SAP Workflow, business processes are defined in the Workflow Builder. Each work
process is termed as an activity and contains a single step task or workflow template.
Business logic using ABAP code are defined in Business Objects.
The organization model contains people or group of people, who are responsible for taking
actions in a Business Workflow. People who are responsible for taking an action is also
https://www.tutorialspoint.com/sap_business_workflow/sap_business_workflow_quick_guide.htm 4/88
11/4/24, 12:24 PM SAP Business Workflow - Quick Guide
known as an actual agent and they are defined in the workflow activity in the Business
Workflow.
Actual agents are agents that actually take an action in the Workflow such as approving a
business document, sending email notifications or creating some document in the
Workflow.
SAP System contains different predefined business objects, events, and methods.
Following are the common Business Objects in SAP PLM −
BUS1080 BOM
BUS1003 Class
BUS7051 Notification
For each object in SAP system, it comes with a standard set of events and methods to
take action on that object. Most common methods and events are −
In SAP system, Business Objects are known to reduce the complexity of SAP system by
dividing it into smaller units. Each business object is commonly defined with these
properties −
Object Name − It is used for external identification of the business object. Using
this property, the external system can interact with SAP system.
Super Type − It is the parent object from which all the components of the BO are
inherited.
Business Object
Business Process
Organization Model
In SAP Workflow architecture, business object is the smallest unit and is at the bottom
level. Business Object in SAP Business Workflow is defined as a collection of methods or
events for an entity in the business process. Few common Business Objects in SAP system
include: Customer, Material, and Vendor. With the use of Business Objects, all services are
provided in the form of executable methods.
In the Workflow architecture, business processes are at the middle level and they define
the steps to be performed as part of the Workflow. Business processes are defined in the
Workflow Builder. Each work process is termed as an activity and contains a single step
task or the workflow template. Business logic using ABAP code are defined in Business
Objects.
In SAP Workflow architecture, organization model is the top layer. Organization model
contains people or group of people who are responsible for taking actions in a Business
https://www.tutorialspoint.com/sap_business_workflow/sap_business_workflow_quick_guide.htm 6/88
11/4/24, 12:24 PM SAP Business Workflow - Quick Guide
Workflow. People who are responsible for taking an action is also known as actual agent
and they are defined in the workflow activity of the Business Workflow.
You can create new Business Object using Business Object Builder. Events in Business
Object are responsible for the initial start of the workflow and also for the termination of
the workflow. Events are also used to call subsequent tasks in the workflow. All the tasks
defined under the Workflow will be executed in the mentioned order as per the Workflow
definition.
Release Document
Post Invoice
Approve Absence
Run Report
Change Material
Call
The following image depicts how a task is performed in SAP Workflow and how it interacts
with object type and object methods, organization model, events and texts.
https://www.tutorialspoint.com/sap_business_workflow/sap_business_workflow_quick_guide.htm 7/88
11/4/24, 12:24 PM SAP Business Workflow - Quick Guide
In SAP Workflow, business processes are defined in the Workflow Builder. Each step is
defined in the Workflow builder and is called an activity. A single step task or workflow
template is defined in each of the activities.
Overview
Step types
Workflow Builder
Tasks
Messages
Triggering Events
Events
Terminating Events
Business logic is defined in business object and Business Object contains attributes, events
and methods in the workflow. Methods contain ABAP code to define tasks. Each and every
standard task in the Workflow is linked to a method and a Business Object.
In the organizational model, people/group of people are responsible for performing actions
as per the organizational structure. All these are defined in the Workflow Builder. You can
view or create Workflow using T-Code: SWDD (Workflow Builder).
https://www.tutorialspoint.com/sap_business_workflow/sap_business_workflow_quick_guide.htm 8/88
11/4/24, 12:24 PM SAP Business Workflow - Quick Guide
An object in the Workflow represents a Business entity in SAP system. Common entity
example includes: Purchase Order, Material, Vendor, etc.
With the use of Business Objects, different components in SAP system can
communicate with each other.
With the use of BAPI’s and Business Objects, SAP system can communicate with
non-SAP system.
Key Fields
Character based
Attribute
https://www.tutorialspoint.com/sap_business_workflow/sap_business_workflow_quick_guide.htm 9/88
11/4/24, 12:24 PM SAP Business Workflow - Quick Guide
Events
Methods
Interface Types
Modeled − This status shows a BO as only defined - i.e. method and its signature
Implemented − This status shows that ABAP implementation is done and you can
use BO for testing purposes
https://www.tutorialspoint.com/sap_business_workflow/sap_business_workflow_quick_guide.htm 10/88
11/4/24, 12:24 PM SAP Business Workflow - Quick Guide
Step 2 − Click Create. The following window opens. Define the object Supertype.
Step 3 − Fill in all the other details. Select the application from the search list as shown in
the following screenshot.
https://www.tutorialspoint.com/sap_business_workflow/sap_business_workflow_quick_guide.htm 11/88
11/4/24, 12:24 PM SAP Business Workflow - Quick Guide
Step 4 − Next, save the package. Save package in “Z” package as shown in the following
screenshot.
https://www.tutorialspoint.com/sap_business_workflow/sap_business_workflow_quick_guide.htm 12/88
11/4/24, 12:24 PM SAP Business Workflow - Quick Guide
Step 5 − To change the release status of object type, go to Edit → Change Release Status
→ Object Type → To Implemented.
Step 6 − Click the Object type and go to Edit. Again to change the release status, go to
Change Release Status → Object Type → To released.
Step 7 − In the following window, click Methods → Create button. A pop-up will open,
select 'No'. Pass the method name and description as in the following screenshot and click
the Tick button.
https://www.tutorialspoint.com/sap_business_workflow/sap_business_workflow_quick_guide.htm 13/88
11/4/24, 12:24 PM SAP Business Workflow - Quick Guide
Step 8 − Now, select the method created. Go to Edit → Change Release Status. Here, first
implement the object type component and then release it.
https://www.tutorialspoint.com/sap_business_workflow/sap_business_workflow_quick_guide.htm 14/88
11/4/24, 12:24 PM SAP Business Workflow - Quick Guide
Step 9 − Note that a tick mark in front of the method and BO shows that it is created
successfully. Add parameters to the method by clicking the Create button.
Step 10 − Navigate to “Program” tab for adding code to the method as shown in the
following screenshot. Click the Save button to save a created object.
https://www.tutorialspoint.com/sap_business_workflow/sap_business_workflow_quick_guide.htm 15/88
11/4/24, 12:24 PM SAP Business Workflow - Quick Guide
Explore our latest online courses and learn new skills at your own pace. Enroll and
become a certified expert to boost your career.
https://www.tutorialspoint.com/sap_business_workflow/sap_business_workflow_quick_guide.htm 16/88
11/4/24, 12:24 PM SAP Business Workflow - Quick Guide
If the import parameters of a SAP workflow contain data, you can start them manually and
it includes workflows with triggering events.
You can use T-codes: "SWUI" and "SWUS" as shown in the following screenshot. In these
transactions, you can trigger already defined SAP workflows.
You can select the Workflow from left and use option - Start or Start with Details. On the
right side, it shows details about the Workflow. Once you click Start, the next step is to
enter the decision step.
https://www.tutorialspoint.com/sap_business_workflow/sap_business_workflow_quick_guide.htm 17/88
11/4/24, 12:24 PM SAP Business Workflow - Quick Guide
To start a Workflow manually, you have to navigate to SAP Business Workplace (T-code:
SBWP). In SAP system, Business Workplace is a work area that is used to perform
business processes and is accessed via SAP GUI and not by a web browser or any
application. All the requests received by a manager in his inbox is known as WORK ITEM.
https://www.tutorialspoint.com/sap_business_workflow/sap_business_workflow_quick_guide.htm 18/88
11/4/24, 12:24 PM SAP Business Workflow - Quick Guide
Note that the screen for starting SAP workflows has two parts - You have all the workflows
for which you have possible agents defined on the left-hand side and on the right side you
can see the details of the workflow selected.
To start a workflow, you need to select the workflow and then click the
icon on the left screen area or the Start function on the right screen area.
When you start a workflow, you can also add information such as notes, deadlines or
attachments. You have the following tab pages −
https://www.tutorialspoint.com/sap_business_workflow/sap_business_workflow_quick_guide.htm 19/88
11/4/24, 12:24 PM SAP Business Workflow - Quick Guide
Properties
In this tab, you can define the priority of the workflow. You also have an option to set a
flag - “Create flag for started workflow in inbox”. This option gets a work item in your
inbox when you start workflow manually.
Note, that this flag is deleted automatically when the workflow is terminated.
Page 0 Attachments
You can use this to create, display, import, and delete attachments.
To use the function Start Workflow, you have to navigate to Office → Start Workflow.
You can also navigate to Tools → Business Workflow → Development → Runtime Tools - >
Start Workflow.
https://www.tutorialspoint.com/sap_business_workflow/sap_business_workflow_quick_guide.htm 20/88
11/4/24, 12:24 PM SAP Business Workflow - Quick Guide
You have the following selection criteria available for selecting a particular workflow −
Start Condition
Using this you can perform a search for the name of a particular start condition defined for
a workflow.
https://www.tutorialspoint.com/sap_business_workflow/sap_business_workflow_quick_guide.htm 21/88
11/4/24, 12:24 PM SAP Business Workflow - Quick Guide
Business Object
This option is used to perform a search for workflows with start conditions using a
particular object type.
Event
In this option you have all the events for the chosen object type, that are linked with
workflows as triggering events are available for selection.
Workflow
This is used to perform a direct search for workflows with start conditions.
Direct Text Entry Mode − In this mode you can directly pass the expressions and
operators using F4 Input help.
PC Mode − This is also called the mouse-oriented mode. The screen of the
condition editor is divided into three areas, namely operators, expression, and
processing.
Logical Operators
https://www.tutorialspoint.com/sap_business_workflow/sap_business_workflow_quick_guide.htm 22/88
11/4/24, 12:24 PM SAP Business Workflow - Quick Guide
Note − “NOT” is stronger than “AND”, and “AND” is stronger than “OR” operator.
System fields
Container elements
You can also define the personal settings of the Condition Editor as below. This includes
settings related to −
Display
User Interface
Call mode
Technical Options
https://www.tutorialspoint.com/sap_business_workflow/sap_business_workflow_quick_guide.htm 23/88
11/4/24, 12:24 PM SAP Business Workflow - Quick Guide
In SAP Workflow, an administrator is responsible for managing workflows and for ensuring
that workflows are executed, transported workflows are enabled, and the workflow engine
is monitored.
SWI2 is T-code used for analysis of Workitem. However, it provides different filtering
options for the following transactions −
https://www.tutorialspoint.com/sap_business_workflow/sap_business_workflow_quick_guide.htm 24/88
11/4/24, 12:24 PM SAP Business Workflow - Quick Guide
swi2_freq
swi2_adm1
swi2_dead
swi2_diag
swpr
swpc
swwl
swui
swud
swi5
swu8
sbwp
swel
swels
swu0
swue
swu1
swu2
swu_obuf
swld
swb_cond
swus
swi1
swi6
swu3
We will cover these T-codes and other important transactions with description later in this
tutorial.
A Workflow administration performs various tasks which can be divided into the following
categories −
Workflow Runtime
https://www.tutorialspoint.com/sap_business_workflow/sap_business_workflow_quick_guide.htm 25/88
11/4/24, 12:24 PM SAP Business Workflow - Quick Guide
Event Manager
WebFlow
Workflow runtime contains different Transactions, which can be used to monitor and
control the execution of workflows. T-code: SWDC_RUNTIME
Event Queue
https://www.tutorialspoint.com/sap_business_workflow/sap_business_workflow_quick_guide.htm 26/88
11/4/24, 12:24 PM SAP Business Workflow - Quick Guide
Event data
Triggering program
Triggering object
Event name
Following are the useful transactions under SAP Workflow in ABAP development −
https://www.tutorialspoint.com/sap_business_workflow/sap_business_workflow_quick_guide.htm 27/88
11/4/24, 12:24 PM SAP Business Workflow - Quick Guide
https://www.tutorialspoint.com/sap_business_workflow/sap_business_workflow_quick_guide.htm 28/88
11/4/24, 12:24 PM SAP Business Workflow - Quick Guide
https://www.tutorialspoint.com/sap_business_workflow/sap_business_workflow_quick_guide.htm 29/88
11/4/24, 12:24 PM SAP Business Workflow - Quick Guide
https://www.tutorialspoint.com/sap_business_workflow/sap_business_workflow_quick_guide.htm 30/88
11/4/24, 12:24 PM SAP Business Workflow - Quick Guide
https://www.tutorialspoint.com/sap_business_workflow/sap_business_workflow_quick_guide.htm 31/88
11/4/24, 12:24 PM SAP Business Workflow - Quick Guide
Agent
Deadlines
Other
You can access the processing of workflows with errors navigating to this path: Tools →
Business Workflow → Administration → Workflow Runtime → Diagnosis of Workflows with
Errors.
https://www.tutorialspoint.com/sap_business_workflow/sap_business_workflow_quick_guide.htm 32/88
11/4/24, 12:24 PM SAP Business Workflow - Quick Guide
You can use T-code: SWI2_DIAG (Diagnosis of Workflows with Errors) - which is defined as
the standard SAP code available within R/3 SAP systems depending on your version and
release.
https://www.tutorialspoint.com/sap_business_workflow/sap_business_workflow_quick_guide.htm 33/88
11/4/24, 12:24 PM SAP Business Workflow - Quick Guide
You can see the error cause in the workflow diagnosis and also “Restart workflow” from
here.
Activity
User decision
Wait
For each workflow definition, you can create a separate workflow configuration. You can
activate a workflow configuration separately and when a workflow is run, it checks for the
activated workflow configuration.
Note − Data in the workflow configuration always take precedence from data in the
workflow definition.
https://www.tutorialspoint.com/sap_business_workflow/sap_business_workflow_quick_guide.htm 34/88
11/4/24, 12:24 PM SAP Business Workflow - Quick Guide
This opens the window with the name - Process Workflow Configuration. You have to
double-click on a step in the workflow definition to display the step definition to enter the
values. When the workflow is executed, these values are then used at runtime instead of
the values mentioned in the definition of the workflow.
https://www.tutorialspoint.com/sap_business_workflow/sap_business_workflow_quick_guide.htm 35/88
11/4/24, 12:24 PM SAP Business Workflow - Quick Guide
When a workflow configuration is saved, it is by default active. You can also delete a
configuration by navigating to Configuration → Delete.
You can open the workflow configuration of the open workflow directly from the Workflow
Builder.
In the workflow configuration, you can adapt a workflow individually without changing the
workflow itself. One use of the workflow configuration is for workflows supplied by SAP,
which you cannot edit yourself. In the workflow configuration, you can make specifications
in the selected input fields, which are given priority in the evaluation during execution.
https://www.tutorialspoint.com/sap_business_workflow/sap_business_workflow_quick_guide.htm 36/88
11/4/24, 12:24 PM SAP Business Workflow - Quick Guide
For example, you can adapt the selection of the responsible agents or the message
recipients for completion of all the steps. You can also adapt a defined deadline monitoring
to meet your own requirements.
Note − Workflow configuration is specific to the client in SAP system. It is also possible to
transport a workflow definition from one client to another client - only active version of
workflow definition is transported. In case WF definition exists in the target system with
the same version number and no workflows are running, then it is overwritten, otherwise
it is saved with the free version number.
While using other SAP GUI, tree view is displayed in the Workflow Builder.
In the Graphical view of the Workflow builder, following sections are defined −
Workflow
Information
Navigation
Objects
Messages
Step Types
Overview
The overview area is not displayed in Tree view. On the left side, you have an object,
navigation and information pane. In the middle of the screen, you have the Message and
the Workflow pane and on the right side you have the Overview and Step Types.
https://www.tutorialspoint.com/sap_business_workflow/sap_business_workflow_quick_guide.htm 37/88
11/4/24, 12:24 PM SAP Business Workflow - Quick Guide
Navigation Pane
In the Navigation pane, you have the workflow steps displayed as per the workflow
definition display. Users can also navigate directly to any step definition from the list of
steps. This is also used to edit the workflow from the context menu.
Messages − In the Message pane, it contains all the messages and search results, which
are generated in where-used lists and workflow tests are displayed here.
Information − This pane is used to display the workflow loaded and its definition, the
status of the respective workflow and the version number in the system.
https://www.tutorialspoint.com/sap_business_workflow/sap_business_workflow_quick_guide.htm 38/88
11/4/24, 12:24 PM SAP Business Workflow - Quick Guide
To call the alphanumeric display of the Workflow Builder directly, navigate to Tools →
Business Workflow → Development → Definition Tools → Workflow Builder → Workflow
Builder (Alphanumeric).
You can navigate between the change mode and the display mode by using the option
. You can also select a different workflow for processing by navigating to Tools → Business
Workflow → Development → Definition Tools → Workflow Builder → Workflow Builder
(Selection).
In case you want to call Workflow Builder directly with a new and empty workflow,
navigate to Tools → Business Workflow → Development → Definition Tools → Workflow
Builder → Workflow Builder: Create Workflow.
https://www.tutorialspoint.com/sap_business_workflow/sap_business_workflow_quick_guide.htm 39/88
11/4/24, 12:24 PM SAP Business Workflow - Quick Guide
Start workflow. When you call a new workflow from the definition of multistep task in
which triggering events are defined, it is shown using the symbol
In the Graphical workflow definition, you can add a new workflow definition using an
undefined step with an outcome and is shown by the symbol
Important transaction codes related to Workflow Builder and configuration are tabulated
below.
https://www.tutorialspoint.com/sap_business_workflow/sap_business_workflow_quick_guide.htm 40/88
11/4/24, 12:24 PM SAP Business Workflow - Quick Guide
Triggering events
Tasks in steps
Wait steps
Event creators
In case your workflow contains such step types, during import they are replaced by
empty steps
Complex conditions
https://www.tutorialspoint.com/sap_business_workflow/sap_business_workflow_quick_guide.htm 41/88
11/4/24, 12:24 PM SAP Business Workflow - Quick Guide
You can also navigate to view BPML Export → Click Export to xml file and then save the file
locally on your system.
You can use this file while importing under Workflow option at the top. To import this,
navigate to Workflow → Import/Export → Import from XML file.
https://www.tutorialspoint.com/sap_business_workflow/sap_business_workflow_quick_guide.htm 42/88
11/4/24, 12:24 PM SAP Business Workflow - Quick Guide
To change an undefined step in the workflow, double-click on the undefined step and this
will open Step Selection. Select a Step Type as shown in the following screenshot.
https://www.tutorialspoint.com/sap_business_workflow/sap_business_workflow_quick_guide.htm 43/88
11/4/24, 12:24 PM SAP Business Workflow - Quick Guide
There are different Step types you can select as per the requirement. Following are some
common step types, their symbols in the workflow and description.
Document from
A document is created from a document template.
template
https://www.tutorialspoint.com/sap_business_workflow/sap_business_workflow_quick_guide.htm 44/88
11/4/24, 12:24 PM SAP Business Workflow - Quick Guide
Send mail The text entered in this step type is sent as an e-mail.
The system waits for a specific event. The work item is only
Wait for event completed if the expected event occurs. The event can also
be triggered by the occurrence of an XML document.
When you insert a new step in an existing workflow, its position depends on the step or
the outcome previously selected.
Where do you want to insert the step What do you have to select
https://www.tutorialspoint.com/sap_business_workflow/sap_business_workflow_quick_guide.htm 45/88
11/4/24, 12:24 PM SAP Business Workflow - Quick Guide
The
As a new branch of a fork
symbol before the fork
Event
Local Event
Work Item
When a wait step is waiting for an event, it is terminated when a specific event occurs.
The event ends all the wait steps waiting for that specific event. This is commonly used −
Same way it works when waiting for a local event, condition or event from other workflow.
An object in the workflow represents a business entity in SAP system. Common entity
example includes: Purchase Order, Material, Vendor, etc. You can also access Business
Object Repository using Business Object Repository Browser. To call the Business Object
Repository Browser from the Business Object Builder, you have to select Business Object
Repository and select the number of object types to be displayed in the dialog box.
https://www.tutorialspoint.com/sap_business_workflow/sap_business_workflow_quick_guide.htm 46/88
11/4/24, 12:24 PM SAP Business Workflow - Quick Guide
When you open Business Object Builder by navigating to Tools → Business Workflow →
Development → Definition tools → Business Object Builder, you can see the option of
Business Object Repository at the top menu.
In Business Object Repository Browser: Entry Screen, Select Filter Other settings to
specify individual filter criteria.
To start Business Object Builder, you have to navigate to Tools → Business Workflow →
Development → Definition Tools → Business Object Builder.
To create a Business Object, you can use T-code Business Object Builder (SWO1).
https://www.tutorialspoint.com/sap_business_workflow/sap_business_workflow_quick_guide.htm 47/88
11/4/24, 12:24 PM SAP Business Workflow - Quick Guide
Once you click Create, in the next window you have to define the object Super type. All
these steps are defined in the previous topic under Business Object definition. To switch
directly to the maintenance of an object type, you need to enter the ID of the object type
and click Display or Change button in the initial screen.
Following screenshot shows a Business Object and how to change the status of an object
in the repository.
https://www.tutorialspoint.com/sap_business_workflow/sap_business_workflow_quick_guide.htm 48/88
11/4/24, 12:24 PM SAP Business Workflow - Quick Guide
With the use of IF_WORKFLOW Interface, you can use ABAP classes in SAP WebFlow
Engine. In SAP system, a WebFlow Engine (SAP Business Workflow) is used to define and
map the business processes, which are not mapped. It includes the release or approval
processes and also complex processes such as creating a Purchase Order, etc. and
different actions of the departments involved. SAP WebFlow Engine is mostly used for the
processes, which are repeated in nature or involves actions from large number of agents
in a predefined order.
A WebFlow Engine can also be used to handle errors in the existing processes and
workflows. Using WebFlow Engine, you can also start a workflow when predefined events
occur.
BI_PERSISTENT~FIND_BY_LPOR
BI_PERSISTENT~REFRESH
BI_OBJECT~EXECUTE_DEFAULT_METHOD
BI_PERSISTENT~LPOR
BI_OBJECT~DEFAULT_ATTRIBUTE_VALUE
BI_OBJECT~RELEASE
https://www.tutorialspoint.com/sap_business_workflow/sap_business_workflow_quick_guide.htm 49/88
11/4/24, 12:24 PM SAP Business Workflow - Quick Guide
Go to the Interface tab, add the IF_WORKFLOW interface. Once you add this interface, it
also adds two sub-interfaces: BI_OBJECT and BI_PERSISTENT. When you move to the
Methods tab and you will see some methods of these interfaces have been automatically
inherited to ABAP Class.
For a Utility class to implement IF_WORKFLOW interface, you need to open each of the
methods inherited from the IF_WORKFLOW interface, and then activate the empty source
code → activate the ABAP Class.
Note − When you implement IF_WORKFLOW interface in a class, it can be used in any of
the workflows. An ABAP class is automatically released to be used with the implementation
of this interface. You should only make compatibility changes after the implementation of
the interface and shouldn’t remove attributes, type changes, or methods. In SAP system,
it doesn’t define a list where it mentions that the class is in use in these workflows.
Extended Notifications
You can also configure SAP Workflows to extend the notifications to users that they have
work to perform and this can be done using email notifications in MS Outlook or Lotus
Notes. You can also ease the work item selection by providing a simplified view of work
items.
In SAP Workflow, you can also carry out performance analysis using Transaction
SWI2_DURA (Work Items by Processing Duration). This can be used to check different
performance parameters such as Average Processing Time of Tasks, etc.
https://www.tutorialspoint.com/sap_business_workflow/sap_business_workflow_quick_guide.htm 50/88
11/4/24, 12:24 PM SAP Business Workflow - Quick Guide
With the use of extended notification for SAP Business Workflow, you can notify the users
about work items that need to be processed. You can send work items to groupware. For
example, MS Outlook or Lotus Notes with backend transactions that the user can directly
access and take actions.
SAP MAPI contains SAPoffice Message Store, transport and address book (mpsap32.dll),
Executable programs, workflow and business object attachment interpreter (mpinterp.exe,
mpbusobj.exe and mpstub.exe), files for column display for workflows and PST file
(personal folders) for special SAPforms Outlook form for offline workflow support and
setup.
Report RSWUWFML is a standard executable ABAP Report in SAP system used to send
Outlook email notifications to the agent in the Workflow about workitems in the agent SAP
inbox.
Extended
Feature for workflow MAPI RSWUWFML RSWUWML2
notification
https://www.tutorialspoint.com/sap_business_workflow/sap_business_workflow_quick_guide.htm 51/88
11/4/24, 12:24 PM SAP Business Workflow - Quick Guide
Enhanced address
- - X X
determination
Enhanced substitution
- - X X
handling
Generic decisions - - - X
Notifications Configuration
SWN_SELSEN is a standard executable ABAP Report that you can use to select and send
the workitems. You can run this report periodically.
https://www.tutorialspoint.com/sap_business_workflow/sap_business_workflow_quick_guide.htm 52/88
11/4/24, 12:24 PM SAP Business Workflow - Quick Guide
On the left side under the dialog structure, there are different options such as −
Business Scenario
Schedule Selection
Delivery Schedule
General Settings
Handler Assignment
Message Template
Delivery Type
You can select any dialog structure and click New Entries to add an entry for notification
configuration in SAP system.
Transaction SWNADMIN is for basic administration. When you run this T-code, you will be
prompted as below.
https://www.tutorialspoint.com/sap_business_workflow/sap_business_workflow_quick_guide.htm 53/88
11/4/24, 12:24 PM SAP Business Workflow - Quick Guide
Once you click Allow, you will be navigating to the page: Administration of extended
notification of the workflow.
In this window, you can define extended notifications for your workflows. You can
activate/deactivate notifications, define schedule, define messages, recipients, etc.
https://www.tutorialspoint.com/sap_business_workflow/sap_business_workflow_quick_guide.htm 54/88
11/4/24, 12:24 PM SAP Business Workflow - Quick Guide
https://www.tutorialspoint.com/sap_business_workflow/sap_business_workflow_quick_guide.htm 55/88
11/4/24, 12:24 PM SAP Business Workflow - Quick Guide
All the Web services that you have to use in SAP Workflow must be registered in the Web
service directory. You can either manually register a web service by entering all the data of
the web service manually. Use T-Code: WF_EXTSRV.
You can also use WSDL file that contains the definition of web service and you can import
this directly using T-Code: WFWS.
To register a web service, select Service in dialog and click New Entries.
For Host, add the address of the Web service, and for Port, add a port number.
Enter the directory and the call name of the Web service in the field Path.
Define the Call mode of the Web service. Here, you determine whether a dialog or a
background Web service is involved and whether and then how a callback is performed.
The parameters determine the interface of the Web service. The task container is created
from the parameters in the subsequent task generation.
Enter all the Web service parameters. Make sure you also assign the service ID of your
Web service to the parameters. The assignment as import element and export element is
required for the subsequent creation of the task container.
https://www.tutorialspoint.com/sap_business_workflow/sap_business_workflow_quick_guide.htm 56/88
11/4/24, 12:24 PM SAP Business Workflow - Quick Guide
To generate your service, click the Generate button as shown in the above screenshot.
https://www.tutorialspoint.com/sap_business_workflow/sap_business_workflow_quick_guide.htm 57/88
11/4/24, 12:24 PM SAP Business Workflow - Quick Guide
Generate tasks.
https://www.tutorialspoint.com/sap_business_workflow/sap_business_workflow_quick_guide.htm 58/88
11/4/24, 12:24 PM SAP Business Workflow - Quick Guide
Universal Worklist (UWL) is a centralized tool to add alerts, notifications, approvals and
ad-hoc tasks for the workitems. All the workitems are created as a part of the business
processes and can be easily managed using Universal Worklist.
UWL provides a uniform central access to all the workitems. You can also customize UWM
views that meets your requirement. You can easily access additional information from
object repositories such as attachments, notifications, etc. You can easily delegate your
tasks to other users in your absence.
With the use of UWL, you can bring workitems from different systems. These include −
Business Workflow
Collaboration Tasks
Guided Procedures
SAP NetWeaver Portal provides UWL Configuration that can be used to configure all the
backend workflows. This is totally xml based configuration.
https://www.tutorialspoint.com/sap_business_workflow/sap_business_workflow_quick_guide.htm 59/88
11/4/24, 12:24 PM SAP Business Workflow - Quick Guide
You can set up a new connector, if you do not have a connector in the system connected to
the system alias, otherwise you can also use an existing one.
Advantages
Following are the key advantages of using UWL −
You can access guided procedure workitems in the common UWL inbox.
You can launch new items, open items in the same window or in a new window.
You can use the pull mechanism that allows you to use auto or manual refresh
options for workitems.
Let us see how to create a Workflow, when an employee raises a leave request in the
system. Following steps have to be performed −
This transaction is the easiest way to define an organization plan in SAP system. You need
to enter the start date of Organization unit → click the Green tick mark as shown in the
following screenshot.
https://www.tutorialspoint.com/sap_business_workflow/sap_business_workflow_quick_guide.htm 60/88
11/4/24, 12:24 PM SAP Business Workflow - Quick Guide
https://www.tutorialspoint.com/sap_business_workflow/sap_business_workflow_quick_guide.htm 61/88
11/4/24, 12:24 PM SAP Business Workflow - Quick Guide
In the Task type field, choose the Workflow template. For Creating tasks: Choose Standard
Task in the Task type field as shown above and click Create.
Now to build the workflow in the workflow builder, navigate to T-Code: SWDD
In the Workflow Builder, you have different options called Step types, you can drag and
drop and insert into the Workflow.
https://www.tutorialspoint.com/sap_business_workflow/sap_business_workflow_quick_guide.htm 62/88
11/4/24, 12:24 PM SAP Business Workflow - Quick Guide
Enter the following values and Save the task. Once you save the task, you will get code ID
in number 93XXX989
Step 4 − Add the task created in the previous step to the Workflow.
In place of the undefined step in the Workflow, you have to add an activity to your
workflow.
https://www.tutorialspoint.com/sap_business_workflow/sap_business_workflow_quick_guide.htm 63/88
11/4/24, 12:24 PM SAP Business Workflow - Quick Guide
As seen in the following screenshot, using T-Code: PFTC_INS, a Task TS99500654 has
been created separately.
In Step Properties, you can select different options as per the requirement. Here, let us
select the checkbox - Advance with dialog as shown in the above screenshot. It shows that
the workitem of the workflow is made available for processing immediately. As we have
entered WF_INITIATOR in Expression under Agents, the person who will start the workflow
is one of the recipients of workitem. Binding option is also defined that confirms absence
notification is not only in this task but also in the workflow - _WI_ObjectId →
&ABSENCEFORM&.
https://www.tutorialspoint.com/sap_business_workflow/sap_business_workflow_quick_guide.htm 64/88
11/4/24, 12:24 PM SAP Business Workflow - Quick Guide
Now the workflow is executed, it creates workitems such as e-mails in the SAP Inbox.
When it is executed, it calls the respective task or the transaction screen. When you run
this workflow, it shows the notification of absence form.
Click Cancel to cancel the processing of the first notification. The workflow inbox holds one
item for processing - creating a notification of absence. Select the workitem and click
https://www.tutorialspoint.com/sap_business_workflow/sap_business_workflow_quick_guide.htm 65/88
11/4/24, 12:24 PM SAP Business Workflow - Quick Guide
Execute (F8). This will return to “Create notification of absence screen” where the
notification of absence form is displayed. Enter the details in the form and click Save. This
will remove the Workitem from the inbox.
The form that has been created will be sent to the supervisor for approval using the object
formabsenc-approve object. Next is to create a new task using T-Code: PFTC_INS
https://www.tutorialspoint.com/sap_business_workflow/sap_business_workflow_quick_guide.htm 66/88
11/4/24, 12:24 PM SAP Business Workflow - Quick Guide
You have to include Task “Check Notification of Absence in the Workflow” using the task
code generated in the previous step.
https://www.tutorialspoint.com/sap_business_workflow/sap_business_workflow_quick_guide.htm 67/88
11/4/24, 12:24 PM SAP Business Workflow - Quick Guide
You have to create the Approver variable in the workflow container. Navigate to the left
side menu at the bottom, you will see a menu option Workflow container. Double-click the
option to create.
Element − Approver
Name − Approver
In the Position field, you have to enter the position ID as per the organization plan. This
can be checked using T-Code: PPOCE. Don’t prefix “S” in the text field.
https://www.tutorialspoint.com/sap_business_workflow/sap_business_workflow_quick_guide.htm 68/88
11/4/24, 12:24 PM SAP Business Workflow - Quick Guide
If an approver has not made a decision about Leave request, you can also add deadlines
to add a workitem for the missed deadline in Approver’s Business Workplace.
You can see two outcomes in the workflow builder: Approved and Rejected.
https://www.tutorialspoint.com/sap_business_workflow/sap_business_workflow_quick_guide.htm 69/88
11/4/24, 12:24 PM SAP Business Workflow - Quick Guide
Next is to execute the workflow and you will be moved to the workitem for creating
notification of absence for processing. This is because of Advancing with immediate dialog
option selected at the time of creating a task.
Now, navigate to Business Workplace using the user-id of the approver and you will see
the workitem to process and other attributes to mention in the Workitem. Select the
workitem for checking the notification of absence and choose Execute.
Either reject or approve the request. Notice the two buttons: Approve and Reject.
In case, the leave request is rejected by the approver, you also have an option to add user
decision to the rejected output. This allows the requester to make changes and resubmit
the request for approval.
You need to add Step type: User Decision to the workflow. This will make your Workflow
look like the following −
https://www.tutorialspoint.com/sap_business_workflow/sap_business_workflow_quick_guide.htm 70/88
11/4/24, 12:24 PM SAP Business Workflow - Quick Guide
When the request is not approved, the next Step is user decision. As we have entered:
(&WF_INITIATOR&) as the agent for the step, the request will come back to make the
decision. You have two options Revise request or withdraw the request.
https://www.tutorialspoint.com/sap_business_workflow/sap_business_workflow_quick_guide.htm 71/88
11/4/24, 12:24 PM SAP Business Workflow - Quick Guide
To send a notification, you have to add a new step “Send mail”. You have to drag this step
to the Undefined Step - after the outcome of the step “Check notification of absence”.
When you hit the Enter button, you will be asked for the name and abbreviation of the
task.
Archiving Workitems
https://www.tutorialspoint.com/sap_business_workflow/sap_business_workflow_quick_guide.htm 72/88
11/4/24, 12:24 PM SAP Business Workflow - Quick Guide
In SAP system, it is possible to archive all the completed Workitems. You can also achieve
all data in a workitem. You can display the achieved workitems but they can’t be loaded in
SAP system. When you archive workitems, it includes archiving log data, workflow
manager data, dependent workitems and workitem attachments.
Workitems completed
Cancelled workitems
To archive the workitem, you can use the following selection criteria −
https://www.tutorialspoint.com/sap_business_workflow/sap_business_workflow_quick_guide.htm 73/88
11/4/24, 12:24 PM SAP Business Workflow - Quick Guide
Workitem number
Task identifier
Creation date
Completion date
https://www.tutorialspoint.com/sap_business_workflow/sap_business_workflow_quick_guide.htm 74/88
11/4/24, 12:24 PM SAP Business Workflow - Quick Guide
With the selection criteria as shown below, you have an option to delete Workitems
immediately/Delete log data as well. To delete Workitem, enter the required fields and
click the Execute button at the top.
https://www.tutorialspoint.com/sap_business_workflow/sap_business_workflow_quick_guide.htm 75/88
11/4/24, 12:24 PM SAP Business Workflow - Quick Guide
Note − In case you want to delete workitems directly that meet the archiving criteria, it is
recommended to archive them first, considering performance-wise to use the delete
program of the archiving object WORKITEM than to directly delete the workitems.
https://www.tutorialspoint.com/sap_business_workflow/sap_business_workflow_quick_guide.htm 76/88
11/4/24, 12:24 PM SAP Business Workflow - Quick Guide
You can use T-code: SWI2_DIAG (Diagnosis of Workflows with Errors) - which is defined as
the standard SAP code available within R/3 SAP systems depending on your version and
release.
You have to enter the selection criteria as shown in the following screenshot and it will
show you the list of all workflows with error.
https://www.tutorialspoint.com/sap_business_workflow/sap_business_workflow_quick_guide.htm 77/88
11/4/24, 12:24 PM SAP Business Workflow - Quick Guide
To use this transaction, select the workflow with the error, and find out the workitem
number that contains the error.
Click “Change the workitem” and make changes to the workitem with error and “Save”.
Event queue
You can make use of Event queue to store events temporarily.
Event data
Triggering program
Triggering Object
Event Name
https://www.tutorialspoint.com/sap_business_workflow/sap_business_workflow_quick_guide.htm 78/88
11/4/24, 12:24 PM SAP Business Workflow - Quick Guide
Following are the useful transactions under SAP Workflow in ABAP development −
SWEL - Display event trace. You can display event trace based on different
selection criteria. You have the following selection criteria under Event Trace −
Event ID
Event
https://www.tutorialspoint.com/sap_business_workflow/sap_business_workflow_quick_guide.htm 79/88
11/4/24, 12:24 PM SAP Business Workflow - Quick Guide
https://www.tutorialspoint.com/sap_business_workflow/sap_business_workflow_quick_guide.htm 80/88
11/4/24, 12:24 PM SAP Business Workflow - Quick Guide
Few common T-codes and their description is mentioned in the following table −
PFAC
1
Create and maintain Rules
PFOM
2
Maintain assignment to SAP organizational objects
PFOS
3
Display assignment to SAP organizational objects
https://www.tutorialspoint.com/sap_business_workflow/sap_business_workflow_quick_guide.htm 81/88
11/4/24, 12:24 PM SAP Business Workflow - Quick Guide
PFSO
4
Organizational environment of a user
PFTC
5
Create and maintain tasks
PPOCW
6
Create organizational plan
PPOMW
7
Maintain organizational plan
PPOSW
8
Display organizational plan
SWDA
9
Workflow Builder (Calls the Workflow Builder in alphanumeric mode)
SWDD
10
Workflow Builder
SWDS
11
Workflow Builder (Selection)
SWDD_CONFIG
12
Workflow configuration
SBWP
13
The Business Workplace
SWDC_RUNTIME
14
Workflow runtime administration data
SWNCONFIG
15
Extended notifications for business workflow
SWDM
16
Business Workflow Explorer
SWEINST
17
Evaluation and maintenance of instance linkages
SWEINSTVC
18
Evaluation and maintenance of instance linkages
SWE2
19
Evaluation and maintenance of type linkages
https://www.tutorialspoint.com/sap_business_workflow/sap_business_workflow_quick_guide.htm 82/88
11/4/24, 12:24 PM SAP Business Workflow - Quick Guide
SWE3
20
Evaluation and maintenance of instance linkages
SWE4
21
Switch event trace on/off
SWEL
22
Display event trace
RSWELOGD
23
Delete event trace
SWEC
24
Link change documents to events
SWED
25
Assign change document objects to object types
SWEQADM_1
26
Event queue administration
SWEQBROWSER
27
Administration of event queue browser
SWETYPV
28
Evaluation and maintenance of type linkages
SWI1
29
Selection report for workitems
SWI2_FREQ
30
Workitems per task
SWI2_DEAD
31
Workitems with monitored deadlines
SWI2_DURA
32
Workitems by processing duration
SWI11
33
Tasks in workflows
SWI13
34
Task profile
SWI5
35
Workload analysis
https://www.tutorialspoint.com/sap_business_workflow/sap_business_workflow_quick_guide.htm 83/88
11/4/24, 12:24 PM SAP Business Workflow - Quick Guide
SWL1
36
Settings for dynamic columns
SWLV
37
Maintain workitem views
SWFVISU
38
Parameters for Workitem Visualization in the UWL
SWO1
39
Business Object Builder
SWO6
40
Customizing object types
SWR_WEBSERVER
41
Customizing Web server
SWU_CONT_PERSISTENCE
42
Administration of container persistence
SWU_EWCD
43
Wizard for event creation using change documents
SWU_EWLIS
44
Wizard for event creation using the Logistics Information System
SWU_BTE
45
Wizard for event creation using Business Transaction Events
SWU0
46
Event simulation
SWU2
47
RFC monitor
SWU3
48
Automatic Workflow Customizing
SWU4
49
Consistency check for standard tasks
SWU5
50
Consistency check for customer tasks
SWU6
51
Consistency check for workflow tasks
https://www.tutorialspoint.com/sap_business_workflow/sap_business_workflow_quick_guide.htm 84/88
11/4/24, 12:24 PM SAP Business Workflow - Quick Guide
SWU7
52
Consistency check for workflow templates
SWU8
53
Switch workflow trace on/off
SWU9
54
Display workflow trace
SWU10
55
Delete workflow trace
SWUD
56
Diagnostic tools
SWUE
57
Trigger event
SWUI
58
Start workflows/tasks
SWUS
59
Testing workflows/tasks
SWXML
60
Display XML documents
SWUY
61
Wizard for linking messages to workflows
SWWCOND_INSERT
62
Schedule background job for workitem deadline monitoring
SWWCLEAR_INSERT
63
Schedule background job for clearing tasks
RSWWCOND
64
Execute single background job for workitem deadline monitoring
RSWWCLEAR
65
Execute workitem clearing work once
WF_HANDCUST
66
WebFlow service handler maintenance
WF_EXTSRV
67
Maintain Web Service Repository
https://www.tutorialspoint.com/sap_business_workflow/sap_business_workflow_quick_guide.htm 85/88
11/4/24, 12:24 PM SAP Business Workflow - Quick Guide
WFWS
68
Import WSDL files
SWIA
69
WI Administration Report
You can view the parameters of the function module. Use T-code SE37, enter the function
module name and click the Display button.
Once you click Display, it will show all the parameters defined in the mentioned Function
Module. Similarly, you can check/display all function modules in SAP Workflow.
https://www.tutorialspoint.com/sap_business_workflow/sap_business_workflow_quick_guide.htm 86/88
11/4/24, 12:24 PM SAP Business Workflow - Quick Guide
Designs, develops, and maintains SAP Business Workflows and ABAP Web Dynpro
applications
Develops the workflow tools - workflow Builder, Business Object Builder and UWL
Designs, develops, codes, and tests complex programs for SAP modules and
functions using ABAP programming language
Creates specialized reports for SAP modules using ABAP programming languages
Develops all RICEF objects and troubleshoots using own ABAP skills
https://www.tutorialspoint.com/sap_business_workflow/sap_business_workflow_quick_guide.htm 87/88
11/4/24, 12:24 PM SAP Business Workflow - Quick Guide
Debugs and corrects SAP module problems using ABAP programming language to
implement OSS notes
https://www.tutorialspoint.com/sap_business_workflow/sap_business_workflow_quick_guide.htm 88/88