AMDP Part 6: AMDP in Clean Core and ABAP Cloud
Preview · a free account unlocks the full lesson
Use AMDP responsibly under clean core: what ABAP Cloud allows (C4-released objects, own objects), what to avoid on-premise, and how to design AMDP so it survives upgrades.
In this lessonShow sectionsHide sections
Visual overview
Explanation
Clean core doesn't forbid AMDP outright — it restricts what AMDP may read. In ABAP Cloud, the USING clause may only contain your own objects and SAP objects released specifically for AMDP use, under release contract C4. New AMDP code should never read SAP tables directly; it should read released CDS views under C4, or your own data. And AMDP writing to SAP tables bypasses all of SAP's business logic, which isn't acceptable in a clean-core design.
Parts 1 through 5 covered AMDP technically; this final part places it in the clean-core world, with ABAP Cloud Part 7 covering release contracts in more depth.
ABAP Cloud allows AMDP as part of ABAP for Cloud Development, on HANA. Its USING clause may reference your own database tables, CDS entities and AMDPs, as well as SAP objects released under contract C4, "Use in ABAP-Managed Database Procedures and Functions." SAP tables and non-C4 views are rejected outright by the syntax check.
C4 exists as its own separate contract because reading a CDS view through ABAP SQL, under contract C1, lets the ABAP runtime apply client handling, access control and future changes on your behalf. SQLScript, by contrast, reads database objects directly, so SAP has to make an explicit separate promise that the database-level structure will stay stable — that promise is what C4 represents.
Create a free account to keep reading
You have read the opening of this lesson. A free ERPClimb account unlocks the rest of it, every other lesson and topic, and your learning history, so you can pick up exactly where you stopped. No card needed.
- Full explanation
- Code example
- Real project scenario
- Common mistakes
- Best practices
- Interview angle
One tap with Google works too. Every topic keeps its first lesson open to everyone.
Keep exploring
Interview questions on this topic
Check before use: lesson examples are educational, not a guarantee of correctness for your SAP edition or release. Sample code has not been executed on your SAP system. Confirm API availability, syntax, authorizations and business impact in an approved development or test environment.