AMDP(ABAP Managed Database Procedures), allowing us to leverage the power of database-specific programming languages like SAP HANA SQL Script. Here’s a quick overview:
🔹 Implementation: Unlike traditional methods, AMDPs are implemented using database-specific languages. Specify this with BY DATABASE PROCEDURE.
🔹 FOR: Defines the database. Currently, HDB for SAP HANA is the only supported value.
🔹 LANGUAGE: Specifies the implementation language, with SQL Script being the current option.
🔹 USING: Essential for methods using ABAP Dictionary objects. Note: CDS View names aren’t supported directly; use the corresponding CDS SQL View instead.
🔹 OPTIONS: Currently, READ-ONLY is the only supported option.
🔹 Class Definition: Must implement the IF_AMDP_MARKER_HDB interface. This is mandatory for AMDP classes.
🔹 Method Parameters: Can be import, export, or changing parameters. Must be passed by value and be elementary or table types. Nested tables and structure types are not supported.
🔹 Visibility: AMDP methods can be public, protected, or private. ABAP classes can mix ABAP and AMDP methods.
🔹 Static Methods: AMDP methods are defined as static, even if declared as instance methods, they execute like static methods.
Spread the word to your ABAP friends and follow us here.
For more in-depth knowledge, visit Smart Logic Academy.
Kommentare