0% found this document useful (0 votes)
92 views3 pages

Interview Question On AMDP

AMDP INTERVIEW
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)
92 views3 pages

Interview Question On AMDP

AMDP INTERVIEW
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

Interview Question On AMDP

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


Response: 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."

2. Which interface is designated for AMDP usage?


Response: The designated interface for AMDP usage is
IF_AMDP_MARKER_HDB.

3. How can a method be converted into an AMDP method using SQL


script options in HDB?
Response: 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 <Tables><CDS Views>".

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


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

5. How can select options be passed to an AMDP method?


Response: 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.

Copy Rights @SR Trainings


Trainer – Rakesh (15+ Years of Real-time Expert in ABAP/S4 ABAP HANA/ OData/ SAP RAP / SAP BTP)
Contact Details: SR Training
Email: [email protected]
Call: +91-740-633-3656(WhatsApp)
Interview Question On AMDP
6. Understanding session variables and their utilization within an
AMDP.
Response: 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).

7. How to access session variables in AMDP?


Response: Session variables can be accessed in AMDP using the
syntax SESSION_CONTEXT('CLIENT'),
SESSION_CONTEXT('APPLICATIONUSER'), and
SESSION_CONTEXT('LOCALE_SAP').

8. Explaining the process of creating variables, constants, and tables in


an AMDP Method.
Response: Using the keyword "DECLARE" followed by the appropriate
syntax for variables, constants, and tables creation within an AMDP
method.

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


Response: 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.

Copy Rights @SR Trainings


Trainer – Rakesh (15+ Years of Real-time Expert in ABAP/S4 ABAP HANA/ OData/ SAP RAP / SAP BTP)
Contact Details: SR Training
Email: [email protected]
Call: +91-740-633-3656(WhatsApp)
Interview Question On AMDP
10. Are returning parameters allowed in AMDP?
Response: No, returning parameters are not permitted in AMDP.

11. Can the CONSTRUCTOR method be used in an AMDP class?


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

12. Is PASS BY REFERENCE permitted for an AMDP Method?


Response: No, only PASS BY VALUE is allowed in AMDP.

13. Can generic types like TYPE ANY or TYPE TABLE be used in AMPD
Method?
Response: No, only variables and table types are permitted; structures
and nested tables are also not allowed.

Copy Rights @SR Trainings


Trainer – Rakesh (15+ Years of Real-time Expert in ABAP/S4 ABAP HANA/ OData/ SAP RAP / SAP BTP)
Contact Details: SR Training
Email: [email protected]
Call: +91-740-633-3656(WhatsApp)

You might also like