Visual SAP with plantUML #2 - Component Diagram

A component diagram shows the logical structure of a system.

You use it to answer:

  • What are the major building blocks?

  • How do they interact?

  • Where is the logic, the frontend, the database?


📌 When to Use

Use a component diagram when you need to:

  • Show how your SAP system is structured

  • Map interfaces (RFC, IDoc, OData, SOAP)

  • Explain custom development and integration

  • Communicate technical architecture clearly


🧩 Notation — The Building Blocks

ConceptPlantUML SyntaxMeaning
Componentcomponent "Name"A logical part (module, API, etc.)
Groupingpackage "Group" { ... }Frontend, Backend, Middleware
Useractor "User"Optional: to show entry point
FlowA --> B : messageConnection or interaction
Aliascomponent "Long Name" as LNClean up long names
Label: OData call, : IDoc, etc.Describe connection type

You don’t show fields, tables, or code here — only blocks and how they talk.


✅ How to Build It

  1. List the main components: frontend, middleware, backend.

  2. Use package blocks to group them.

  3. Connect with arrows to show flow.

  4. Label arrows with technology (optional).

  5. Keep it logical, not technical.


🔧 Example

pl
CopyEdit
@startuml
title Component Diagram — SAP Integration Example

actor "User"

package "Frontend" {
  component "Fiori App"
}

package "Middleware" {
  component "SAP PO iFlow"
}

package "Backend" {
  component "SAP Gateway"
  component "ABAP Logic"
  component "HANA DB"
}

"User" --> "Fiori App"
"Fiori App" --> "SAP PO iFlow" : SOAP / OData
"SAP PO iFlow" --> "SAP Gateway"
"SAP Gateway" --> "ABAP Logic"
"ABAP Logic" --> "HANA DB"

@enduml

🧠 Summary

  • Component diagrams help you explain structure fast

  • Focus on systems, not details

  • Use it for integration, custom dev, and architecture discussions

  • The notation is simple: component, package, ->

You can go from zero to diagram in under 1 minute.


Ready for Visual SAP #3 — Activity Diagrams That Actually Help You Think?

We’ll focus on process flow — the logic behind the system.

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.