ERPClimb logoERPClimb
Login
All topics
RAP_CDS_ODATAadvanced

AMDP

Learn ABAP Managed Database Procedures as a controlled way to execute SQLScript on SAP HANA from ABAP. Focus on AMDP methods, table functions, pushdown use cases, lifecycle, testing, performance evidence and the situations where simpler Open SQL or CDS is the better choice.

Overview

Learn ABAP Managed Database Procedures as a controlled way to execute SQLScript on SAP HANA from ABAP. Focus on AMDP methods, table functions, pushdown use cases, lifecycle, testing, performance evidence and the situations where simpler Open SQL or CDS is the better choice.

Lessons in this topic

Interview questions covered

  • You inherit 25 AMDP classes. What do you review?
  • How do you pass internal tables to an AMDP and handle client and NULL values correctly?
  • What are the key clauses you expect in a basic HANA AMDP method and what does each one do?
  • A report is slow because it aggregates millions of rows in ABAP. Would you move it directly to AMDP?
  • What is AMDP, and where does it fit among the code pushdown options?
  • Three AMDP procedures contain the same SQLScript block with slight differences, and reports show inconsistent numbers. What do you do?
  • A nightly job calling an AMDP dumps occasionally with a database error. How do you analyze it?
  • What are your design rules for AMDP in a clean-core S/4HANA project?
  • A guideline requires all reporting logic in AMDP "for HANA performance". How do you respond?
  • Explain the difference between AMDP procedures, AMDP functions and FOR TABLE FUNCTION methods.
  • How do you test and tune AMDP code?
  • Can AMDP be used in ABAP Cloud, and what are the restrictions?

How to study AMDP

AMDP has 6 lessons (3 intermediate, 3 advanced) with about 53 minutes of reading in total. Start with the lesson that matches your level, then read the real project scenario and common mistakes in each one before moving on. After the lessons, say the 12 interview questions out loud in your own words, then check yourself against the model answer in each question (shown once you open it). Use the 18 mock questions to check recall.

Mock test questions covered

Try answering each one before you open the mock test; the answer options and scoring are in the Mock Questions tab.

  • When an AMDP method implements a CDS table function, what must match precisely between the CDS table function signature and the AMDP method signature?
  • Which interface marks an ABAP class as an AMDP container for SAP HANA?
  • What is the purpose of the USING clause in an AMDP method?
  • When is AMDP most justified?
  • A readiness check finds AMDPs reading SAP table EKKO. What is the clean-core direction?
  • A team wraps every simple calculation in a CDS table function. What is the main drawback?
  • An AMDP sums amounts after a LEFT OUTER JOIN, and customers without items show empty totals. What fixes it?
  • A nightly ABAP job reads 30 million line items to the application server only to sum them per customer. What is the simplest improvement?
  • Regarding parameter passing in AMDP method signatures, which rule is correct?
  • Which statement about client handling in AMDP is correct?
  • In the method implementation of an AMDP, how is the target database procedure language declared in the method signature?
  • What is the primary purpose of implementing a CDS table function using an AMDP method?
  • A month-end job spends 40 minutes in one AMDP. What is the best first analysis step?
  • When creating an AMDP (ABAP Managed Database Procedure) class in ABAP, which interface must the class implement to be recognized as an AMDP class by the ABAP compiler and runtime?
  • What structural requirement applies to a class that contains AMDP methods?

Related topics

Interview questions on this topic