Introduction To AMDP
Introduction To AMDP
to
AMDP in
ABAP
Amrit Raj (Chief Operations Officer) | Srijan Institute & Training Center | +919220601944
Introduction to AMDP in ABAP
1. Introduction
AMDP is a method of standard ABAP Class { SE24 }. This method will have SQL Script
Code inside it.
When we call it for the first time, A Procedure gets created in HANA in the corresponding
ABAP Schema.
An AMDP is a top down approach { introduced After ABAP 7.4 version }.
Using AMDP, There is no need to connect to HANA Server, All the Changes can be done in
Application Server only.
AMDP is the replacement technology for database procedure proxies.
Note
Q. Can we create AMDP if the database is not HANA ?
Amrit Raj (Chief Operations Officer) | Srijan Institute & Training Center | +919220601944
2. ABAP Managed Database Procedures
The basic idea of AMDP is to manage SAP HANA Procedures and their lifecycle inside the
ABAP server.
To allow native consumption of SAP HANA Features from within the ABAP layer, the SAP
HANA database procedure language SQLScript has been integrated into the ABAP stack.
AMDP is implemented in ABAP class methods ( so-called AMDP methods ) that serves as a
container for SQL Script code. This approach offers many significant advantages
i. It enables the shipment of AMDP in the same way as any other ABAP Development
Object.
ii. It allows us to implement and ship corrections for AMDP’s, just like it is possible for
ABAP Classes.
Go to the Product Version and click on the magnifying glass and you can check the Version
for your SAP System.
Amrit Raj (Chief Operations Officer) | Srijan Institute & Training Center | +919220601944
4. AMDP Class
An AMPD Class must implement an interface IF_AMDP_MARKER_HDB.
This AMDP Class can contains both AMDP methods as well as Non AMDP Methods.
METHOD METHOD_NAME.
ENDMETHOD.
AMDP Methods
AMDP Methods contains some declarations.
METHOD METHOD_NAME
BY DATABASE PROCEDURE
Amrit Raj (Chief Operations Officer) | Srijan Institute & Training Center | +919220601944
FOR DB_TYPE
LANGUAGE SQLSCRIPT
OPTIONS READ ONLY
USING DICTIONARY ARTIFACTS
BUSINESS LOGIC SQL Script Coding ).
ENDMETHOD.
Amrit Raj (Chief Operations Officer) | Srijan Institute & Training Center | +919220601944