AMDP (ABAP Managed Database Procedures) in CDS (Core Data Services) in SAP refers to a way to integrate native SQLScript (e.g., HANA procedures) directly within ABAP classes. It’s not a part of CDS views themselves, but is often used alongside CDS views when you need more complex or performance-critical data processing that cannot be handled by CDS alone.
| Feature | CDS View | AMDP |
|---|---|---|
| Type | Declarative | Procedural |
| Language | DDL (SQL-like) | SQLScript (HANA-specific) |
| Use Case | Data modeling, filtering, joins | Complex calculations, loops, conditional logic |
| Database Execution | Yes | Yes |
| Integration with ABAP | Yes (via Open SQL) | Yes (via ABAP classes/methods) |
