You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/advanced/technical/runtime.md
+119-1Lines changed: 119 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,4 +31,122 @@ In the end, the View & Model are defined independent from the HTTP-Service and w
31
31
32
32
RAP vs. Model & View decoupled from the (single & generic) HTTP-Service
33
33
34
-
Let's take a look to the HTTP-Handler that provides us with this flexibility.
34
+
Let's take a look to the HTTP-Handler that provides us with this flexibility.
35
+
36
+
37
+
38
+
39
+
40
+
41
+
42
+
43
+
44
+
45
+
46
+
47
+
48
+
49
+
50
+
51
+
52
+
### new
53
+
54
+
Domain-Driven Architecture with RAP (and contrast to UI-Driven)
55
+
56
+
**Domain-Driven Design (DDD)** is an architectural approach that models software systems based on real-world business domains. It promotes aligning code with business terminology and processes.
57
+
58
+
In SAP, the **ABAP RESTful Application Programming Model (RAP)** applies domain-driven principles to build enterprise applications on S/4HANA.
59
+
60
+
This page explains how RAP embodies Domain-Driven Architecture — and how **abap2UI5 takes a fundamentally different approach**.
61
+
62
+
---
63
+
64
+
## What is Domain-Driven Architecture?
65
+
66
+
Key principles of Domain-Driven Design:
67
+
-**Domain Models**: Represent business entities & relationships.
68
+
-**Bounded Contexts**: Isolated domain-specific models with clear interfaces.
69
+
-**Ubiquitous Language**: Shared business terminology in models & code.
70
+
-**Separation of Concerns**: Domain logic separated from UI & infrastructure.
71
+
72
+
In SAP, this typically translates to:
73
+
- CDS Views & Entities as Domain Models.
74
+
- Behaviors for domain-specific processes.
75
+
- Typed OData Services for structured interfaces.
76
+
77
+
---
78
+
79
+
## Domain-Driven Design in RAP
80
+
81
+
### Domain Models
82
+
- Modeled using **CDS Views** (Root & Composite Entities).
83
+
- Reflect business concepts like `SalesOrder`, `BusinessPartner`.
84
+
- Data model is defined **at design-time** via CDS.
85
+
86
+
### Behaviors & Processes
87
+
- Modeled through **Behavior Definitions** (Managed/Unmanaged).
88
+
- Actions like `Submit`, `Approve`, `Cancel` represent domain logic.
89
+
- Draft handling, validations, side effects handled by RAP runtime.
90
+
91
+
### Bounded Contexts & Service Projections
92
+
- Service Projections define clear boundaries per domain.
0 commit comments