Saturday, May 30, 2026

AMDP Introduction

 AMDP – ABAP Managed Database Procedures

  • AMDP – AMDP class must implement an Interface IF_AMDP_MARKER_HDB then this class call as AMPD class. Interface IF_AMDP_MARKER_HDB always declare in the PUBLIC Section.
  • AMDP class can contain AMDP Method as well as non-AMDP method.
  • Difference between Normal Method and AMDP method:

Normal Method

AMDP Method

Method <Method_Name>.

 

Endmethod.

Method <amdp_method_name>  BY DATABASE PROCEDURE FOR HDB LANGUAGE SQLSCRIPT OPTIONS ReadOnly USING <db_entity>.

 

Endmethod.

We can call AMDP method

We can’t call Normal Method

  • In Normal method we can call AMDP Method but in AMDP method we can’t call Normal Method.

  • AMDP perquisite
  • All parameters must be fully typed. Generic data types such as TYPE TABLE or REF TO DATA are not allowed.
  • All parameters must be passed as value. This is obvious considering the fact that the application server runs on a different system than the database. Accordingly, there is no common memory area referencing both systems.
  • Only IMPORTING, EXPORTING and CHANGING parameters are allowed in AMDP procedures. It is not possible to use RETURNING parameters.
  • Only AMDP exception classes can be declared in the method signature.
  • AMDP Class/Method can only be created/ modified using ADT Tool.
       

No comments:

Post a Comment

RAP8: Early numbering

In this post will show you how to use early numbering . Step 1: Add early numbering key word in interface behavior definition and activate b...