0% found this document useful (0 votes)
6 views5 pages

Introduction To AMDP

AMDP, or ABAP Managed Database Procedures, allows for the management of SAP HANA procedures within the ABAP server, integrating SQLScript into the ABAP stack. It enables developers to create and manage database procedures without needing direct connection to the HANA server and is implemented through specific ABAP class methods. AMDP classes can only be created using the ABAP Development Tool, and they must implement the IF_AMDP_MARKER_HDB interface.

Uploaded by

Naveen Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views5 pages

Introduction To AMDP

AMDP, or ABAP Managed Database Procedures, allows for the management of SAP HANA procedures within the ABAP server, integrating SQLScript into the ABAP stack. It enables developers to create and manage database procedures without needing direct connection to the HANA server and is implemented through specific ABAP class methods. AMDP classes can only be created using the ABAP Development Tool, and they must implement the IF_AMDP_MARKER_HDB interface.

Uploaded by

Naveen Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

INTRODUCTION

to
AMDP in
ABAP

Amrit Raj (Chief Operations Officer) | Srijan Institute & Training Center | +919220601944
󾠮
Introduction to AMDP in ABAP
1. Introduction

AMDP stands for ABAP Managed Database Procedures

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.

We will get detailed runtime error by using Exception Handling.

It well integrates with ABAP System.

Note
Q. Can we create AMDP if the database is not HANA ?

Ans :- No, We can only create AMDP if database is HANA.

Introduction to AMDP in ABAP 1

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.

3. Checking the System


Click on the System → Status.

Go to the Product Version and click on the magnifying glass and you can check the Version
for your SAP System.

Introduction to AMDP in ABAP


2

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.

Non AMDP Methods


Normal Methods are non AMDP Methods

METHOD METHOD_NAME.

ENDMETHOD.

AMDP Methods
AMDP Methods contains some declarations.

METHOD METHOD_NAME
BY DATABASE PROCEDURE

Introduction to AMDP in ABAP 3

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.

How to Create a AMDP Class ?


AMDP Class can only be created by using ADT { ABAP Development Tool } tool. We cannot
create AMDP Class in SE24 transaction, Also we cannot make any changes from
SE24.
We can only view the AMDP Class in SE24 once it is created in HANA Studio.
Once, we call the AMDP method, Database Procedure gets created automatically in HANA
DB Server.

Introduction to AMDP in ABAP

Amrit Raj (Chief Operations Officer) | Srijan Institute & Training Center | +919220601944

You might also like