ABAP-Managed Database Procedures (AMDP) with Example
Syntax of AMDP Classes An AMDP is implemented in an AMDP class with a regular static method or instance method in any visibility section. CLASS <my_amdp_class> DEFINITION . PUBLIC SECTION . * Marker interface with SAP HANA DB as database type INTERFACES IF_AMDP_MARKER_ < DB_TYPE >. ... METHODS <my_amdp_method> . ... ENDCLASS . CLASS <my_amdp_class> IMPLEMENTATION . ... * AMDP method METHOD <my_amdp_method> BY DATABASE PROCEDURE FOR <db_type> LANGUAGE <db_language> OPTIONS <db_options> USING <db_entity> . "Implementation of the procedure in a DB-specific language ... ENDMETHOD. ... ENDCLASS. Example: Click on File->New->ABAP Class CLASS zvb_amdp_class DEFINITION PUBLIC FINAL CREATE PUBLIC . PUBLIC SECTION. TYPES:BEGIN OF ty_stu , ...