Catalog / ABAP Cheat Sheet
ABAP Cheat Sheet
A concise reference for ABAP (Advanced Business Application Programming) syntax, statements, and concepts, useful for quick lookup and understanding.
ABAP Basics
Data Types
|
Character (fixed length) |
|
Numeric character (fixed length, only digits) |
|
Date (YYYYMMDD) |
|
Time (HHMMSS) |
|
Integer |
|
Floating point number |
|
Packed number (for monetary values) |
|
Character string (variable length) |
|
Byte string (variable length) |
Basic Syntax
Example: |
Example: |
Example: |
Example:
|
Example:
|
Example:
|
Internal Tables
Table Types
Standard Table |
Unsorted table with linear index. Fast for sequential access. Default table type. |
Sorted Table |
Table sorted by key. Faster access by key. Requires |
Hashed Table |
Table with hash algorithm for key access. Fastest access by key. Cannot be accessed by index. |
Table Operations
Example: |
Example: |
Example: |
Example: |
Example: |
Example: |
Example: |
Example: |
ABAP Objects
Class Definition
Start with Example:
|
Visibility sections: |
Methods are defined using the |
Attributes (variables) are defined using the |
Class Implementation
Start with Example:
|
Method implementations are defined within the class implementation. |
Constructor: Special method called when an object is created. |
Object Creation
Create an object using Example:
|
Call methods using Example:
|
Release object using |
ABAP Dictionary
Data Dictionary Objects
Tables |
Define database tables, their structure and relationships. |
Data Elements |
Define elementary data types, field labels, and documentation. |
Domains |
Define technical attributes of data types (e.g., length, data type). |
Structures |
Combine multiple fields into a single unit (like a record). |
Views |
Virtual tables that combine data from one or more tables. |
Search Helps |
Provide value help (F4 help) for input fields. |
Table Creation
Use transaction |
Define fields, data types, and key fields for a table. |
Specify technical settings (e.g., data class, size category). |
Activate the table to make it available in the system. |
Data Element and Domain
Data elements reference a domain, providing semantic information. |
Domains define data type, length, and value range. |
Use transaction |