Process & Workflow

SAP Business Workflow

SAP Business Workflow is the workflow engine embedded in the ABAP platform beneath SAP ERP and SAP S/4HANA. Developers model workflow definitions in the Workflow Builder (SWDD), business events start them at runtime, and the engine creates work items that agents process in the Business Workplace or in My Inbox. Flexible workflow builds on this engine.

Quick facts

Type
ABAP workflow engine and modeling toolset
Layer
Process & workflow (runs in the ABAP backend)
Modeled in
Workflow Builder (SWDD), in SAP GUI
Key T-codes
SWDD, SWU3, SWI1, SWIA, SWEL
Task surface
Business Workplace (SBWP), My Inbox
Who works with it
ABAP workflow developers, workflow administrators
Applies to
SAP ERP, SAP S/4HANA on-premise and Private Edition
Layer: Process & workflowWhere it sits ▾
Where it sits: Process & workflowLayer: Process & workflow. Also touches: Business logic & data model.L1L2L3L4L5L6BTP

Layer: Process & workflow

Also touches: Business logic & data model

Open the architecture map →

How does SAP Business Workflow work?

SAP Business Workflow separates the definition of a process from its execution:

  1. A developer creates a workflow definition in the Workflow Builder. The definition is a sequence of steps: some control the flow (conditions, loops, parallel branches, waits), others reference tasks.
  2. Each task points to a method of an object type, such as a Business Object Repository (BOR) object or an ABAP class that implements the interface IF_WORKFLOW, and runs either in the background or as a dialog step for a person.
  3. Activating the definition generates a runtime version. Instances that are already running keep the version they started with.
  4. A triggering event, such as a business document being created or changed, starts the workflow automatically; users can also start workflows manually.
  5. At runtime the work item manager creates work items, determines agents from the organizational plan, roles or rules, and monitors deadlines.
  6. Agents execute their work items in their inbox, and each step is recorded in the workflow log.

SAP Business Workflow is an event-driven engine that combines existing SAP transactions into a process without changing those transactions.

Which transactions matter for SAP Business Workflow?

TransactionPurpose
SWDDWorkflow Builder: create, change, activate and test workflow definitions
SWU3Automatic Workflow Customizing: technical setup and a status check of it
SBWPBusiness Workplace: the SAP GUI inbox for work items
SWI1Work item selection, the starting point for locating "lost" work items
SWIAWork item selection report for administrators
SWE4 / SWELSwitch the event trace on or off / display it
SWE2Type linkages: which events start which workflows
SWI5Workload analysis per agent or organizational unit

Day-to-day SAP Business Workflow development and administration happens in these SAP GUI transactions rather than in SAP Fiori apps.

What are the strengths of SAP Business Workflow?

  • Modeling depth: conditions, loops, parallel branches, deadlines, escalations and container data cover complex approval and coordination logic.
  • Native to the business object: workflows react to events of SAP documents and call SAP transactions and methods directly, with no integration layer between the workflow and the data.
  • Built-in operations tooling: event traces, workflow logs, work item selection, administrator processing and workload analysis ship with the engine.
  • SAP-delivered templates: SAP ships workflow templates for many processes that need limited implementation effort.
  • Foundation for newer tools: flexible workflow extends the engine, and My Inbox and SAP Task Center can consume its tasks.

For processes that live inside one ABAP system, SAP Business Workflow remains the deepest modeling option SAP offers on the ABAP stack.

Where does SAP Business Workflow stop?

  • Developer-owned. Definitions are built in SAP GUI by workflow developers and moved through transports. Process owners depend on IT for each rule change.
  • One ABAP system. A workflow orchestrates objects inside the system it runs in. Steps in other systems need RFC, web services or an integration with a service such as SAP Build Process Automation.
  • Knowledge concentration. Custom workflows accumulate over years. When their authors leave, the logic is readable only in the Workflow Builder and in the code behind tasks and rules.
  • Custom code to carry. Custom definitions, tasks and agent rules are development objects that every upgrade and conversion must assess.
  • Instance-level visibility. The workflow log explains one instance; a business view across many instances and adjacent systems is assembled from reports.

These boundaries follow from the design: SAP Business Workflow is a backend engine for processes inside one ABAP system, built and run by IT.

Is SAP Business Workflow available in SAP S/4HANA Cloud?

SAP Business Workflow is part of the ABAP platform, so it runs in SAP ERP, SAP S/4HANA on-premise and SAP S/4HANA Cloud Private Edition, where customers can still model their own workflows in the Workflow Builder. In SAP S/4HANA Cloud Public Edition, customers have no SAP GUI access to the Workflow Builder; SAP-delivered approvals are configured in the flexible workflow apps. SAP documents flexible workflow as the default workflow engine in SAP S/4HANA for a range of approval scenarios. The ABAP platform also integrates with SAP Build Process Automation and SAP Task Center on SAP BTP. The deployment option decides whether SAP Business Workflow is a modeling tool for the customer or an engine running underneath delivered scenarios.

How do you troubleshoot SAP Business Workflow when a workflow does not start?

Work from configuration to event to work item to agent:

  1. Run SWU3 and confirm the runtime area is free of errors. A missing WF-BATCH user or a broken RFC destination stops background steps.
  2. Switch on the event trace with SWE4, repeat the business action and read the trace in SWEL. No event means the application did not raise one; an event without a started workflow points to an inactive or faulty type linkage in SWE2.
  3. Find the work item in SWI1 by task, date or status, and read the workflow log to see the last completed step.
  4. If the work item has no agent, check the task's possible agents, the organizational plan and any agent determination rule.
  5. Only then let a workflow administrator act on the work item, for example from SWIA, with the administrator functions available in the release.

Following this order resolves most SAP Business Workflow incidents without touching the workflow definition.

SAP Business Workflow vs. flexible workflow: what is the difference?

SAP Business WorkflowFlexible workflow
Where it runsSAP ERP / SAP S/4HANA (ABAP)SAP S/4HANA backend
Who builds itABAP workflow developers (Workflow Builder)Key users, in configuration apps
ScopeAny ABAP-based workflow scenarioSAP-delivered document scenarios
How changes happenDevelopment and transportConfiguration
Typical useComplex or long-standing custom ABAP workflowsPurchase requisition, purchase order and invoice approvals

Flexible workflow does not replace the engine: it configures SAP-delivered approvals on top of SAP Business Workflow, which remains the toolset for workflows SAP does not deliver.

FAQ

Is SAP Business Workflow the same as flexible workflow?

No. SAP Business Workflow is the ABAP workflow engine in which developers model workflows in the Workflow Builder. Flexible workflow extends SAP Business Workflow with SAP-delivered approval scenarios that key users configure in SAP Fiori apps, without development tools.

Is SAP Business Workflow obsolete in SAP S/4HANA?

No. SAP Business Workflow is still part of the ABAP platform in SAP S/4HANA on-premise and Private Edition, and flexible workflow builds on it. SAP lists it next to flexible workflow and SAP Build Process Automation as one of three workflow options for ABAP-based systems.

What is transaction SWDD used for?

SWDD opens the Workflow Builder, the SAP GUI tool for creating, changing, activating and testing SAP Business Workflow definitions. Workflow developers use it to model steps, conditions, agents and deadlines, and activation generates the runtime version that new workflow instances use.

Where do users see SAP Business Workflow tasks?

Users see SAP Business Workflow work items in the Business Workplace (SBWP) in SAP GUI or in the My Inbox SAP Fiori app, which reads them through the Task Gateway service. Where the integration is set up, the same tasks can also appear in SAP Task Center on SAP BTP.

Can SAP Business Workflow start a process in SAP Build Process Automation?

Yes. The ABAP platform provides a generic standard task that hands a step to SAP Build Process Automation and waits until the platform reports completion, plus a proxy API that lets ABAP applications start and control process instances on SAP BTP.

Sources

Applies to
SAP ERP (ECC) · SAP S/4HANA on-premise · SAP S/4HANA Cloud Private Edition
Last reviewed

SAP, SAP Fiori, SAPUI5, SAP S/4HANA, SAP BTP and other SAP products and services mentioned are trademarks or registered trademarks of SAP SE (or an SAP affiliate company) in Germany and other countries. This guide is independent and is not affiliated with, sponsored or endorsed by SAP SE.