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 CaseWhy It Helps
Describing functional processesClear step-by-step overview
Communicating logic to developersAvoids misunderstanding
Preparing for enhancementsClarifies where to insert logic
Documenting decisions / branchesShows conditions and outcomes clearly

🧩 Activity Diagram Notation (PlantUML)

ElementSyntaxMeaning
StartstartEntry point
Action step:Some action;A single step in the process
Decisionif (...) then (...) else (...)Conditional logic
Parallel (opt.)fork, end forkParallel execution
EndstopEnd 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 with stop

  • 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.”

0
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.