Visual SAP with plantUML #3: Activity Diagram β Think in Flows

An Activity Diagram shows a step-by-step process:
what happens, in what order, and with what conditions or decisions.
In SAP terms, think of:
Creating a sales order
Posting goods issue
Running a workflow approval
Processing a delivery or invoice
It helps you visualize logic, align dev & functional teams, and clarify edge cases.
π When to Use Activity Diagrams
Use Case | Why It Helps |
Describing functional processes | Clear step-by-step overview |
Communicating logic to developers | Avoids misunderstanding |
Preparing for enhancements | Clarifies where to insert logic |
Documenting decisions / branches | Shows conditions and outcomes clearly |
π§© Activity Diagram Notation (PlantUML)
Element | Syntax | Meaning |
Start | start | Entry point |
Action step | :Some action; | A single step in the process |
Decision | if (...) then (...) else (...) | Conditional logic |
Parallel (opt.) | fork , end fork | Parallel execution |
End | stop | End of process |
You read it top to bottom β like a flowchart.
β Example: Goods Issue Process
pl
CopyEdit
@startuml
title Activity Diagram β Goods Issue Flow
start
:Create Outbound Delivery;
:Check Stock Availability;
if (Stock available?) then (yes)
:Pick and Pack;
:Post Goods Issue;
else (no)
:Trigger Exception Handling;
endif
:Send Confirmation;
stop
@enduml
This is readable. You can explain it to:
Functional team
Developer
Business stakeholder
All without opening SAP.
βοΈ Rules to Remember
Each step =
:Action;
One decision =
if (...) then (...) else (...)
Always start with
start
, end withstop
Keep it functional, not technical
Use verbs: "Post", "Check", "Create", "Send"
π§ Pro Tips
β Use simple wording
β Avoid clutter β 5β9 steps per diagram is ideal
β For long processes β split into separate diagrams
β Reuse in specs, training, onboarding
π§ Minimal Example for Custom Logic
plantuml
CopyEdit
@startuml
title Activity Diagram β Approval Workflow
start
:User submits request;
:Trigger Workflow;
:Check Approver Role;
if (Is Manager?) then (yes)
:Auto-approve;
else (no)
:Send to Manual Approval;
endif
:Update Status;
:Notify User;
stop
@enduml
This could be MM, SD, HR β doesnβt matter.
The pattern is universal.
β Summary
Activity diagrams make logic visible.
If you're designing or changing a business process β this is how you explain it.
Use them to:
Describe flows
Show decisions
Align teams
They save time, avoid confusion, and clarify intent.
Next up:
π Visual SAP #4 β Sequence Diagrams That Show How SAP Systems Talk
Weβll cover integration flows: IDocs, APIs, RFCs β and how to show βwho calls whom, when, and with what.β
Subscribe to my newsletter
Read articles from Dzmitryi Kharlanau directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by

Dzmitryi Kharlanau
Dzmitryi Kharlanau
SAP Logistics Consultant with 10+ years of experience in SAP SD, SAP MM, SAP LE, and SAP IS-Automotive. Skilled in SAP system support, integration, and process improvements. Achievements βοΈ Delivered custom logistics solutions, overseeing the entire process from concept to go-live. βοΈ Achieved SLA compliance in JIT environments, managing tasks from requirements to release independently. βοΈ Resolved complex issues swiftly, minimizing downtime and optimizing efficiency. Interests: Motivated to work with π§ S/4HANA SD, MM, BTP, and ABAP, taking responsibility for end-to-end solutions.