SAP AMDP Notes & Interview Questions
SAP AMDP Notes & Interview Questions
Q) What is AMDP?
ABAP Managed Database Procedures (AMDP) is a framework in SAP HANA
that allows developers to write database procedures in ABAP. AMDPs are
implemented in ABAP class methods, called AMDP methods, which contain
SQLScript code. AMDP - ABAP Managed Database Procedures, is a procedure, we can write
code inside AMDP by using SQLSCRIPT which is a database language same as SQL script.
Purpose
The interface allows the implementation of AMDP methods, which are ABAP
methods that call a SAP HANA database procedure from within a global ABAP
class.
How to use
The interface is specified in the declaration part of an AMDP class. For
example,
CLASS cl_some_amdp_class DEFINITION PUBLIC FINAL CREATE PUBLIC.PUBLIC
SECTION. "Specifying the interface is mandatory INTERFACES
if_amdp_marker_hdb. ... ENDCLASS .
What it indicates
The suffix "HDB" indicates that the AMDP method of the AMDP class can be
implemented in the SAP HANA database.
What it enables
The interface gives the class the power to use SQL script code in the
implementation of a class.