Posts

Showing posts from March, 2025

Create AMDP class and fetch data based on student branch

Image
                                                             Refer -  Introduction to AMDP Step 1: Right click on ABAP project -- New -- ABAP class. Step 2: Select package, Give class name and description. Step 3: Click and next and click on finish. Step 4: Write Code. CLASS ycl_ab_amdp_stu DEFINITION   PUBLIC   FINAL   CREATE PUBLIC.   PUBLIC SECTION.     INTERFACES: if_amdp_marker_hdb .     TYPES: begin of ls_stu ,            stu_id TYPE ystu_id ,            stu_name TYPE ystu_name ,            stu_branch TYPE ystu_branch ,            stu_marks TYPE...

Introduction to AMDP in SAP S4HANA.

       * AMDP -- ABAP managed database procedures.     * It is a framework for managing and calling stored/database procedure and database function in as ABAP.      * The AMDP manages AMDP procedures and functions. ------------------------------------------------------------------------------------------------------------------------------     * AMDP is a global class that contains special tag interface that starts with IF_AMDP_MARKER_*.     * For HANA database  IF_AMDP_MARKER_HDB. -------------------------------------------------------------------------------------------------------------------------------     * Constructors can't be implemented as AMDP methods.     * There are two types of AMDP methods.               1. AMDP procedure implementation.               2. AMDP function implementation.      1...

To delete bp attachments like invoice or payment advice in BP T-code.

Image
                            I want to delete invoice/payment advice based on date or business partner. ---------------------------------------- Steps to find filename ---------------------------------------------- Step 1:  Goto T-code - BP. Step 2:  Give business partner and press enter.  Step 3:  Goto attachments in top left (Services for object) and click on attachment list. Step 4:  Note the title. Step 5:  I picked Payment Advice title. ---------------------------------------- Create AMDP Class --------------------------------------------------- Step 1:  Right click on project click on new select abap class. Step 2:  Give package name, Class name and description. Step 3:  Click on finish after giving all the details. Step 4:  Write code. METHOD get_gos_objects_amdp BY DATABASE PROCEDURE FOR HDB LANGUAGE SQLSCRIPT       ...