While ABAP classes can’t inherit from multiple classes, they can implement multiple interfaces, achieving interface-based multiple inheritance. INTERFACE if1. METHODS: method1. ENDINTERFACE. INTERFACE if2. METHODS: method2. ENDINTERFACE. CLASS my_class DEFINITION. PUBLIC SECTION. INTERFACES: if1, if2. ENDCLASS. CLASS my_class IMPLEMENTATION. METHOD if1~method1. WRITE: 'Method1 from IF1'. ENDMETHOD. METHOD if2~method2. WRITE: 'Method2 from IF2'. ENDMETHOD. ENDCLASS.
SAP EWM Help Latest Questions
1. Single Inheritance (Supported in ABAP) Definition: One subclass inherits from one superclass. Use: Most common form of inheritance. CLASS parent_class DEFINITION. PUBLIC SECTION. METHODS: display.ENDCLASS.CLASS parent_class IMPLEMENTATION. METHOD display. WRITE: 'Parent class method'. ENDMETHOD.ENDCLASS.CLASS child_class DEFINITION INHERITING FROM parent_class.ENDCLASS.CLASS child_class IMPLEMENTATION.ENDCLASS.
Program Type Code Purpose Executable? Typical Usage Executable 1 Reports, standalone programs ✅ Yes Reports, jobs, selection screens Include I Reusable code ❌ No Shared FORM routines, definitions Module Pool M Dialog screens, GUI transactions ✅ Yes Custom SAP GUI apps Function Grp F Group of function modules ❌ No BAPIs, reusable logic Subroutine S Collection of FORM routines ❌ No Old-style code reuse Class Pool K Global class definitions ❌ No OO programming, ...
1. SELECTION-SCREEN BEGIN OF SCREEN As already explained, this defines a custom screen (like a subscreen or popup), which you can call dynamically using CALL SELECTION-SCREEN. SELECTION-SCREEN BEGIN OF SCREEN <screen_number> [AS SUBSCREEN|AS WINDOW] [TITLE <text>]. ... fields ...
Feature OLTP OLAP Full Form Online Transaction Processing Online Analytical Processing Purpose Run daily operations Analyze and report on business data Operation Type Short, frequent transactions Complex queries, aggregations Data Volume Large number of small transactions Smaller number of large queries Performance Focus Speed of write operations Speed of read/analysis Data Structure Highly normalized Often denormalized (e.g., star schema) Examples Insert/update orders, ...
A Search Help provides F4 help to fields in screens and reports. Types: Elementary Search Help – based on a single table/view. Collective Search Help – combines multiple elementary search helps.
A Data Element is used to define the semantic meaning of a table field. Components include: Field Label(s): Short, Medium, Long, Heading. Documentation: For developer/user understanding. Domain: Defines the technical attributes like data type, length, value range, etc.
A domain defines the technical characteristics of a field, such as: Data type (e.g., CHAR, NUMC, DEC) Field length Decimal places Value ranges (fixed values or intervals) Domains help in reusing field definitions across multiple tables or structures.