abap-sql-amdp
Installation
SKILL.md
ABAP SQL & AMDP
Guide for writing modern ABAP SQL statements and ABAP Managed Database Procedures (AMDP) in ABAP Cloud and Standard ABAP.
Clean core context:
SELECTfrom a released CDS view is Level A. Direct read access to an SAP database table is Level C (ATC priority 2); direct write access is Level D (ATC priority 1).EXEC SQL(native SQL) is a critical statement → Level D.SYCM_USAGE_OF_APISreports SQL statements on SAP database tables and views. See theabap-cloudskill for level details.
Workflow
-
Determine the user's goal:
- Writing or optimizing ABAP SQL queries
- Using advanced SQL features (window functions, CTEs, aggregates)
- Creating AMDP procedures or functions
- Implementing CDS table functions via AMDP
- Understanding PRIVILEGED ACCESS for authorization bypass
-
Identify the context:
- ABAP for Cloud Development vs. Standard ABAP (affects available syntax)
- Performance optimization needs
- Whether AMDP is justified (prefer ABAP SQL when possible)