ERPClimb logoERPClimb
Workflow
ABAP Developmentadvanced 7 min read

Workflow Part 4: Workflow at Scale — Governance, Flexible Workflow and Clean Core

Preview · a free account unlocks the full lesson

Key takeaway

Run workflows at enterprise scale: design standards, versioning of templates, transport and migration of running instances, monitoring and administration roles, Flexible Workflow scenarios in S/4HANA (Manage Workflows apps, BAdIs for conditions/agents), and when to use SAP Build Process Automation for clean core and cross-system processes.

In this lessonShow sections

Visual overview

Workflow Part 4: Workflow at Scale — Governance, Flexible Workflow and Clean Core — learning sheetFlow: List your custom workflows and check for Flexible Workflow alternatives → Review SWI2_FREQ to see which workflows run most → Define a versioning/transport checklist including event linkage activation. Key ideas: DESIGN STANDARDS; VERSIONING AND CHANGES; ADMINISTRATION AND MONITORING; FLEXIBLE WORKFLOW (S/4HANA). Watch out: Custom classic templates that duplicate pre-delivered Flexible Workflow scope increase upgrade effort and move away from clean core.ERPClimb.com / ABAP / LESSON 4/5 / LEARNING SHEETWorkflow Part 4: Workflow at Scale — Governance, FlexibleWorkflow and Clean Core1 · HOW IT FLOWS1List your customworkflows and check forFlexible Workflow…2Review SWI2_FREQ to seewhich workflows run most3Define aversioning/transportchecklist including event…2 · KEY IDEAS EXPLAINEDDesign StandardsTemplates only orchestrate; logic sits in classes(IF_WORKFLOW) or BOR methods.Central, reusable agent rules; consistent namingfor tasks, rules and containers.Versioning And ChangesActivating a changed template creates a newversion; running instances continue with their oldversion.Plan for old instances: let them finish, or canceland restart with care (business impact).Administration And MonitoringWorkflow administrator (SWU3 settings) receiveserrors.SWI2_FREQ (frequency), SWI2_DURA (duration), SWIA(admin actions), SWPR (restart after error), SWI1.Flexible Workflow (S/4HANA)Scenario delivered by SAP; business usersconfigure steps, conditions and recipients inFiori ("Manage Workflows for …").Extension via BAdIs for custom conditions andagent determination.3 · REMEMBER · WATCH OUTRememberWorkflow templates are versioned: running instances keep the versionthey started with; new instances use the active version — plan changes…In S/4HANA, many approvals are delivered as Flexible Workflowscenarios (e.g. purchase requisition, purchase order, supplier…Governance: naming and design standards, central agent rules, workflowadministrator role, monitoring (SWI2_FREQ, SWI2_DURA, SWIA), archiving…!Watch outCustom classic templates thatduplicate pre-delivered FlexibleWorkflow scope increase upgradeeffort and move away from cleancore.4 · IN A REAL PROJECTDuring an S/4HANA conversion, a company planned to migrate 35 custom approval workflows. Analysis showed 14were covered by Flexible Workflow scenarios for purchase requisitions, POs and supplier invoices, configurableby business process owners. The remaining custom workflows were cleaned up: shared agent rules, logic moved to…Original ERPClimb learning sheet • Verify against your SAP release and edition

Explanation

Parts 1 through 3 of this series built a workflow; in large organizations, though, dozens of workflows run thousands of instances at once, and governance becomes the main challenge at that scale. Workflow templates are versioned: a running instance keeps the version it started with, while any new instance uses whatever version is currently active, so changes and migrations need to be planned with that in mind.

Design standards matter at scale: templates should only orchestrate, with the actual logic sitting in classes (implementing IF_WORKFLOW) or BOR methods; agent rules should be central and reusable; naming for tasks, rules, and containers should stay consistent; and each workflow should be documented — its trigger, start conditions, agents, deadlines, and escalation path.

On versioning and change: activating a changed template creates a new version, while instances already running continue on their old version, so you need a plan for those old instances — either let them finish naturally, or cancel and restart them carefully, given the business impact that can have. Transports cover templates, tasks, rules, and event linkages, though event linkages still need to be activated per system, and organizational assignments are also often maintained per system rather than transported.

Free account

Create a free account to keep reading

You have read the opening of this lesson. A free ERPClimb account unlocks the rest of it, every other lesson and topic, and your learning history, so you can pick up exactly where you stopped. No card needed.

  • Full explanation
  • Code example
  • Real project scenario
  • Common mistakes
  • Best practices
  • Interview angle

One tap with Google works too. Every topic keeps its first lesson open to everyone.

Keep exploring

Check before use: lesson examples are educational, not a guarantee of correctness for your SAP edition or release. Sample code has not been executed on your SAP system. Confirm API availability, syntax, authorizations and business impact in an approved development or test environment.