Interview Question On AMDP


Hello Dear Developers if you are looking for Interview Questions on AMDP which is also known as ABAP Managed Development Procedure for Beginners | AMDP Freshers Interview Questions | AMDP Experience Candidates Interview Questions | AMDP 3+ Years Interview Questions 2025 then you will get all answers here.

Is it feasible to create an AMDP class locally within SE38?

Unfortunately, creating an AMDP class locally within SE38
isn’t supported. AMDP classes must be created globally using Eclipse
due to technical constraints. Attempting to define them within a local
class triggers an error message indicating, “Database procedures
cannot be defined in methods of a local class.”

Which interface is designated for AMDP usage?

The designated interface for AMDP usage is
IF_AMDP_MARKER_HDB.

How can a method be converted into an AMDP method using SQL script options in HDB?

To convert a method to an AMDP method in HDB, utilize the syntax “BY DATABASE PROCEDURE FOR HDB LANGUAGE SQL
SCRIPT OPTIONS READ-ONLY USING “.

Can a class contain both a normal method and an AMDP method?

Yes, a class can indeed contain both a normal method and an AMDP method.

How can select options be passed to an AMDP method?

Select options can be effectively passed to an AMDP method and converted into a WHERE clause by leveraging the class cl_shdb_seltab=>combine_seltab.

Understanding session variables and their utilization within an AMDP.

Session variables serve as global data containers within the database system, capturing contextual information. In SAP HANA DB, accessing session variables in an AMDP involves utilizing the built- in function SESSION_CONTEXT(). Examples of session variables and their ABAP system field equivalents include CLIENT (sy-mandt), APPLICATIONUSER (sy-uname), and LOCALE_SAP (sy-langu)

How to access session variables in AMDP?

Session variables can be accessed in AMDP using the syntax SESSION_CONTEXT(‘CLIENT’), SESSION_CONTEXT(‘APPLICATIONUSER’), and
SESSION_CONTEXT(‘LOCALE_SAP’).

Explaining the process of creating variables, constants, and tables in an AMDP Method.

Using the keyword “DECLARE” followed by the appropriate syntax for variables, constants, and tables creation within an AMDP method.


What is the process of invoking an AMDP within a program?

Invoking an AMDP involves a similar approach to invoking
a regular class. For an instance method, instantiate an object and
utilize it to invoke the AMDP method. For a static method, directly call
it using the class name and method name.

Are returning parameters allowed in AMDP?

No, returning parameters are not permitted in AMDP.

Can the CONSTRUCTOR method be used in an AMDP class?

No, the CONSTRUCTOR method cannot be used in an AMDP class.

Is PASS BY REFERENCE permitted for an AMDP Method?

No, only PASS BY VALUE is allowed in AMDP.

Can generic types like TYPE ANY or TYPE TABLE be used in AMPD Method?

No, only variables and table types are permitted; structures and nested tables are also not allowed.


Leave a Reply

Your email address will not be published. Required fields are marked *