SAP Workflow

SAP R/3 system includes predefined SAP Business Workflows. It is a critical component of the SAP system in which they assist in the design of business processes - it can be a simplified release or a complicated repetitive business process, including such creating a material master, for example. This is a brief tutorial that exposes viewers to the fundamental features and applications of SAP Business Workflow.

SAP business workflows:

Business Workflows are used in SAP systems to execute business processes in applications. Workflows are an important component of the SAP system because they aid in the design of business processes, which can range from a simple release to a complex repeated business process such as creating a material master, among other things.

SAP Business Workflows are predefined in the SAP R/3 system, but users can also create their own. The workflow enables users to manage business processes efficiently and in accordance with compliance.

Workflows ensure that the correct information is sent to the correct person at the correct time and in the correct sequence. 

To complete a complex task in the SAP system, such as invoice approval or purchase request, several steps must be taken. These steps can be carried out manually or through formal communication channels such as email, notes, and so on. When tasks are performed manually, there are some common issues that arise, such as 

  • Tracking the task status is difficult.
  • Managing Inefficiency
  • Tracking formal communications is difficult. 
  • Keeping a deadline 

SAP workflow

The image above depicts the SAP Workflow process. It is a business process automation tool that works consistently across all applications. As you can see, it is appropriate for business processes that involve multiple people or groups of people.

Business workflows could be seamlessly implemented with Organization Management and SAP NetWeaver BI for analysis purposes, allowing you to quickly identify the business processes that are best suited to your organization.

 Become a SAP Certified professional by learning this HKR SAP Certification Training !

Why do we need sap workflows in business processes?

Workflow is required in business processes in SAP for a variety of reasons. Wait time is the longest duration in any business process.

Raising a Purchase Order, an Invoice, and a Sales Order all require approval from specific stakeholders and involve multiple steps. As a result, a significant amount of time is added to the cycle.
Auditing and Compliance - Areas at which auditing is needed or specific compliance must be based on court rules, SOX, and so on. They are difficult to manage with manual business processes.
Processes that require regular repeated steps and adhere to specific business rules are referred to as specific processes. For example, when you create a new BP, you must specify contact information, a credit limit, and other details to help you manage the process. SAP Workflow is recommended for managing these specific processes.

Companies can easily address these issues by utilizing SAP Workflows, as well as perform detailed reporting such as implementing time, wait time, and so on.

Benefits of workflow:

The workflow inside a SAP system ensures the right data is sent to the right people at the right time. SAP Workflows can be used with SAP applications such as ERP, CRM, and others. Users can easily map business processes using these workflows, which can also be edited using the workflow builder.

  • Workflow automates business processes that are composed of a series of tasks, activities, and steps.
  • Workflows make it simple to manage task dependencies and send notifications about pending actions to SAP mailboxes.
  • The use of SAP Workflows makes it simple for users to understand what tasks must be completed. Work items are delivered to the user in the form of notifications, and with a single click, it invokes the appropriate T-code and navigates to the appropriate screen in the application.
  • SAP applications include ready-to-use workflows. Users can also edit the predefined business workflows to map them to the processes of the organization.
  • Users can create a particular part of Business workflows by using different workflow wizards. The workflow builder can be used to display and modify existing workflows.
  • Workflows are not restricted to specific SAP applications and can be tailored to meet the needs of the user.
  • One of the primary advantages of using SAP Workflow is that it is consistent across all SAP applications.
  • Workflows are useful for processes involving multiple people or groups of people, a sequence of tasks, and coordination between various objects. 

SAP workflow layers:

The SAP Workflow architecture in the SAP Application system is made up of the following layers:

  • Business Object
  • Business Process
  • Organization Model 

In SAP Business Workflow, a Business Object is a collection of methods or events for an entity in the business process. Customer, Material, and Vendor are some of the most common Business Objects in the SAP system.

Related Article SAP Installation !

Business processes in SAP Workflow are defined in the Workflow Builder. Each work process is referred to as an activity, and it consists of a single step task or workflow template. Business logic is defined in Business Objects using ABAP code.

People or groups of people are responsible for taking actions in a Business Workflow in the organization model. People who are in charge of taking action are referred to as actual agents, and they are defined in the workflow activity in the Business Workflow.

Each object in the SAP system comes with a standard set of events and methods for performing actions on that object. The most common methods and events are as follows:

  • Change, Display, Get Details, and Create are all methods.
  • Created and Modified Events 

Business Objects are known in SAP systems to reduce the complexity of the SAP system by dividing it into smaller units. These properties are shared by all business objects.

  • Object Type ID It is used to identify the business object internally.
  • Object Name It is used to externally identify the business object. The external system can interact with the SAP system by using this property.
  • Super Type It is the parent object from which all of the BO's components are inherited.
  • Name:It is a descriptive name for the BO.
  • DescriptionIt is a brief description of the type of business object.
  • Application:The application component to which the BO is assigned.
  • Program:The ABAP code of the BO is contained in the Program. 

SAP workflow Architecture:

SAP Workflow is built on a three-tiered architecture. The three layers of SAP Workflow architecture are as follows:

  • Business Object
  • Business Process
  • Organization Model 

SAP workflow Architecture

SAP Certification Training

  • Master Your Craft
  • Lifetime LMS & Faculty Access
  • 24/7 online expert support
  • Real-world & Project Based Learning

The lowest level in SAP Workflow architecture seems to be the business object, which is located at the bottom level. In SAP Business Workflow, a Business Object is defined as a collection of methods or events for an entity in a business process. Customer, Material, and Vendor are some of the most common Business Objects in a SAP system. All services are provided in the form of executable methods when Business Objects are used.

A Business Object Repository is an object-oriented approach for modeling Business Objects and Processes. It is a collection of Business Object and Interface types, as well as their associated attributes, methods, and events.

Business processes are at the middle level of the Workflow architecture, defining the steps to be performed as part of the Workflow. The Workflow Builder is used to define business processes.Each work process is referred to as an activity, and it consists of a single step task or the workflow template. Business logic is defined in Business Objects using ABAP code.

The top layer of the SAP Workflow architecture is the organization model. People or groups of people are responsible for taking actions in a Business Workflow in an organizational model. People who are in charge of taking action are referred to as actual agents, and they are defined in the Business Workflows workflow activity.

Related Article SAP Master Data !

Using Business Object Builder, you can develop new Business Objects. Events in Business Objects are in charge of both the initial start and the termination of the workflow.Events are also used to trigger the execution of subsequent tasks in the workflow. All tasks defined in the Workflow will be executed in the order specified in the Workflow definition.

Examples of common tasks include

  • Release Document
  • After Invoice 
  • Approval Absence
  • Run the Change Material
  • Call
  • Check the report and Work 

The image below depicts how a task is carried out in SAP Workflow and how it interacts with object types and object methods, organization models, events, and texts.

SAP Workflow

Components of sap workflow:

Business processes in SAP Workflow are defined in the Workflow Builder. Each step is defined as an activity in the Workflow builder. Each activity defines a single-step task or workflow template.

  • Organizational plan
  • Workflow builder
  • Standard task and events triggering 

Each step throughout the workflow definition can be a task that points to a SAP transaction or decision. A decision may include agent specifications and deadline monitoring for a step. The workflow is initiated either manually or automatically by the system at runtime. In order for the system to initiate a workflow, the workflow definition must include a triggering event.

Whenever an event occurs, the appropriate workflow is initiated automatically. Tasks or work items describe the activities involved and can refer to methods that can be executed automatically or methods that must be executed by a user . Tasks are business objects that are coded in ABAP.

Events are activities that initiate a workflow - one or more workflows at the same time. When the workflow is triggered, the definition flowchart determines when and how work is completed. After that, work items are received and executed in MS Outlook, Lotus Notes, mySAP Workflow MiniApp, or the SAP integrated inbox.

Conversely, the workflow system will send e-mail alerts to any mail system, informing the user that they must log in to the SAP system in order to complete the task. Every work item is assigned to one or more users. When the task is completed, the work item is removed from the inboxes of the other users.

Related Article SAP Logistic Execution !

Integration to email systems:

Workflow inboxes are typically populated with executable work items. However, casual SAP users, particularly managers, may forget to check their inbox on a regular basis, so it's a good idea to set up reminder emails, informing people via a batch job that they have work items in their inbox. Alternatively, an email with a hotlink to the Workflow can be sent directly to their Lotus Notes / Outlook account.All emails are sent out of SAP through SAPConnect, whether they are Workflow notifications, Workflow Workitems, or just a standard SAP Office memo. This provides a one-stop shop for connecting SAP and the mail server.

Transporting workflow items between SAPConnect and the mail server (whether Lotus Notes or Microsoft Outlook) has been made easier by SAP-supplied add-ons that are fully optimized for the different protocols required by each server. Lotus Notes, for example, makes use of a "pipe" known as the MTA, or Message Transfer Agent. This was created in collaboration between SAP and Lotus to provide full integration.

It is important to note that the type of transport medium used is determined by the mail server, not the mail client. In other words, if an employee uses Outlook on their computer but the mail server is a Lotus Domino server, the MTA will be used as a mail gateway. Each workflow background user's user profile must include an email address.It is important to note that no approval or reply notification from an external mail system will be permitted in other words, external email systems will be unable to respond back to SAP for security reasons.

Creating the sap workflow:

The following are the steps in order to create the workflow. They are:

1.Define Organization Plan  (T-code PPOCE)

This transaction is the most straightforward way to define an organizational plan in the SAP system. You must enter the start date of the Organization unit and then click the Green tick mark, as shown in the screenshot below.

Creating the sap workflow

Subscribe to our youtube channel to get new updates..!

2. Create Workflow template: (T-code PFTC_INS) to create a basic template of workflow,

(T-code SWDD) to build the workflow in the workflow builder

Create Workflow template

Select the Workflow template in the Task type field. To create tasks: Select Standard Task from the Task type drop-down menu and click Create.

Navigate to T-Code: SWDD to begin building the workflow in the workflow builder.

Navigate to T-Code

Step types are different options in the Workflow Builder that you can drag and drop and insert into the Workflow.

3. Define 1st task  (T-code PFTC_INS) (Create notification of absence)

To define the first task, navigate to T-Code: PFTC_INS

Select Standard Task in the Task type field.

Enter the following values and Save the task. Once you save the task, you will get code ID in number 93XXX989

  • In the Name field, select Form_created
  • In Abbr, select create_form
  • In Workitem text, select vik_notif_absence-create
  • In Object Type, select FORMABSENC
  • In Method field, select CREATE
  • Checkbox Synchronous object method, Object method with dialog checked 

4. Add activity > first task in the workflow

You must add an activity to your workflow in place of the undefined step in the Workflow.

 Add activity

As seen in the following screenshot, using T-Code: PFTC_INS, a Task TS99500654 has been created separately.

using T-Code

SAP Certification Training

Weekday / Weekend Batches

Step Properties allows you to select various options based on your needs. Select the checkbox - Advance with dialog, as shown in the screenshot above. It demonstrates that the workflow work item is immediately available for processing.

Because we entered WF INITIATOR in Expression under Agents, the person who will initiate the workflow is one of the workitem recipients. There is also a binding option defined that confirms absence notification is not only in this task but also in the workflow - _WI ObjectId &ABSENCEFORM&.

In graphical mode, the Workflow Builder now looks like this:

Workflow Builder

5. 1st Test in SAP Inbox (T-code SBWP)

Now that the workflow has been executed, workitems such as e-mails are created in the SAP Inbox. When it is executed, it invokes the corresponding task or transaction screen. When you run this workflow, the notification of absence form appears.

1st Test in SAP Inbox

To cancel the processing of the first notification, click Cancel. The workflow inbox contains one item for processing - creating an absence notification. Select the workitem and press the Execute button (F8). This will take you back to the “Create notification of absence screen,” where the notification of absence form will be displayed. Fill out the form with your information and save it. The Workitem will be removed from the inbox as a result of this action.

Create notification of absence screen

6. Define 2nd task  (Check notification of absence)

Using the object formabsenc-approve, the created form will be sent to the supervisor for approval. Next, use T-Code: PFTC INS to create a new task.

Define 2nd task

7. Add activity > second task in workflow

Using the task code generated in the previous step, add Task "Check Notification of Absence in the Workflow."

Define the binding properties as well, as shown in the screenshot below.

Add activity

8. 2nd Test

The workflow will then be executed, and you will be directed to the workitem for creating notification of absence for processing. This is due to the Advancing with immediate dialog option being selected when creating a task.

Navigate to Business Workplace using the approver's user-id to see the workitem to process and other attributes to include in the Workitem. Choose Execute after selecting the workitem for checking the notification of absence.

Reject or approve the request. Take note of the two buttons: Accept and Reject.

9. Integrate User Decision for Re-submit

If the approver rejects the leave request, you can also add the user decision to the rejected output. This gives the requester the opportunity to make changes and resubmit the request for approval.

10. 3rd Test

When a request is denied, the next step is for the user to make a decision. Because we specified (&WF INITIATOR&) as the step's agent, the request will be sent back to us for a decision. You have two choices. Requests should be revised or withdrawn.

11. Define 3rd task  (Revise notification of absence)

For this you need to revise the notification.

12. Add activity > third task to the workflow

To add this step, you have to make the following entries −

Use FORMABSENC-UPDATE as an object.

In the binding option, enter _WI_Object_ID <= &ABSENCEFORM&

In the Agents → add &_WF_INITIATOR& in the expression field


13. Add 4th Customer Task (Send Notification for approval of leave)

To send a notification, you must add a new step called "Send mail." You must drag this step to the Undefined Step - following the result of the step "Check notification of absence."

To add this step, you have to make the following entries −

  • Select the Recipient type − Enter the Organizational object
  • Select Agents → Choose the Expression &_WF_INITIATOR&.
  • Enter the subject line as <“Leave Approved”>
  • Enter the email text as <“Approved”>

When you press the Enter key, you will be prompted to enter the task's name and abbreviation. 

Related Article SAP cyber security !


In the above blog post we had clearly explained the in depth of sap workflows, architecture, features and benefits and why to choose the sap workflows. Had any doubts related to this concept drop your queries in the comment section to get them clarified. 

Find our upcoming SAP Certification Training Online Classes

  • Batch starts on 26th Sep 2023, Weekday batch

  • Batch starts on 30th Sep 2023, Weekend batch

  • Batch starts on 4th Oct 2023, Weekday batch

Global Promotional Image


Request for more information

Kavya Gowda
Kavya Gowda
Research Analyst
Kavya works for HKR Trainings institute as a technical writer with diverse experience in many kinds of technology-related content development. She holds a graduate education in the Computer science and Engineering stream. She has cultivated strong technical skills from reading tech blogs and also doing a lot of research related to content. She manages to write great content in many fields like Programming & Frameworks, Enterprise Integration, Web Development, SAP, and Business Process Management (BPM). Connect her on LinkedIn and Twitter.