GitHub - SAP-samples/abap-cheat-sheets: Explore ABAP syntax in a nutshell supported by executable demo examples.
ABAP for Cloud Development
Briefly outlines the terms ABAP Cloud and classic ABAP to set the context for ABAP for Cloud Development
zcl_demo_abap_cloud_excursion (see the notes in the cheat sheet)
Data Types and Data Objects
Contains basic information about data types and data objects in ABAP
zcl_demo_abap_dtype_dobj
Internal Tables
Creating, filling, reading from, sorting, modifying internal tables
zcl_demo_abap_internal_tables
Structures
Some basics when working with structures
zcl_demo_abap_structures
ABAP SQL
Reading from database tables using
💡 Several statements covered in the cheat sheet and the executable example are only relevant to Standard ABAP. Program
💡 The content of this cheat sheet and the executable example are only relevant to Standard ABAP. Program
💡 The content of this cheat sheet and the executable examples are only relevant to Standard ABAP. Program
SELECT, changing data in database tables using INSERT, UPDATE, MODIFY and DELETE
zcl_demo_abap_sql
ABAP Object Orientation
Working with objects and components, concepts such as inheritance, interfaces, and more
Constructor Expressions
Covers constructor expressions with operators such as VALUE, CORRESPONDING, NEW, CONV, EXACT, REF, CAST, COND, SWITCH, FILTER, REDUCE, iteration expressions with FOR, LET expressions
zcl_demo_abap_constructor_expr
Dynamic Programming
Covers field symbols and data references as supporting elements for dynamic programming, dynamic ABAP syntax components, runtime type services (RTTS), i. e. runtime type identification (RTTI) and runtime type creation (RTTC)
zcl_demo_abap_dynamic_prog
String Processing
Creating strings and assigning values, chaining strings, string templates, concatenating, splitting, modifying strings, searching and replacing
zcl_demo_abap_string_proc
ABAP for RAP: Entity Manipulation Language (ABAP EML)
Setting EML in the context of RAP, standard (create, read, update, delete) and non-standard operations (actions)
- Demo RAP scenario with a managed RAP BO, external numbering (zcl_demo_abap_rap_ext_num_m)
- Demo RAP scenario with an unmanaged RAP BO, external numbering (zcl_demo_abap_rap_ext_num_u)
- Demo RAP scenario ("RAP calculator") with a managed, draft-enabled RAP BO, late numbering (zcl_demo_abap_rap_draft_ln_m)
- Demonstrating the local consumption of RAP business events in the context of a RAP demo scenario, managed RAP BO with managed internal numbering and additional save (zcl_demo_abap_rap_m_as)
GROUP BY clause in statements for internal tables.
zcl_demo_abap_sql_group_by
ABAP Managed Database Procedures (AMDP)
Covers ABAP Managed Database Procedures (AMDP): AMDP Procedures and AMDP Functions (including CDS Table Functions)
zcl_demo_abap_amdp
Program Flow Logic
Deals with control structures (IF, CASE), loops (DO, WHILE)
zcl_demo_abap_prog_flow_logic
ABAP Unit Tests
Contains basic information about unit testing in ABAP
zcl_demo_abap_unit_test
CDS View Entities
The cheat sheet provides references to information on ABAP CDS. Find a feature table for available language elements in ABAP CDS in the ABAP Keyword Documentation with links to detailed topics. The focus here is on the example CDS artifacts and the executable example class, which include comments.
zcl_demo_abap_cds_ve
SAP LUW
Provides a high-level overview of the SAP LUW concept that deals with data consistency with a focus on SAP LUW-related statements 💡 Several statements covered in the cheat sheet and the executable example are only relevant to Standard ABAP. Program
ZDEMO_ABAP_SAP_LUW
Dynpro
Provides a high-level overview of dynpro topics with a focus on dynpro-related statements 💡 The content of this cheat sheet and the executable example are only relevant to Standard ABAP. Program
ZDEMO_ABAP_DYNPRO
Selection Screens and Classic Lists
Provides a high-level overview of selection screens and classic lists with a focus on related statements. It includes an excursion into the SAP List Viewer (ALV). 💡 The content of this cheat sheet and the executable examples are only relevant to Standard ABAP. Program
ZDEMO_ABAP_SELSCR_LISTS_INTRO (the "intro" program, from which the other related example programs can be started)
Working with XML and JSON in ABAP
Covers processing XML using class libraries, XML transformations using XSLT and Simple Transformations (ST), serializations (ABAP to XML) and deserializations (XML to ABAP), dealing with JSON data
zcl_demo_abap_xml_json
Released ABAP Classes
Contains a selection of ABAP classes, serving as a quick introduction, along with code snippets to explore the functionality in action
- (The cheat sheet includes copy and paste code snippets and example classes)
Date, Time, and Time Stamp
Covers how to handle and process dates, times, and time stamps in ABAP
zcl_demo_abap_date_time
Built-In Functions
Covers a variety of built-in functions in ABAP
zcl_demo_abap_builtin_func
Authorization Checks
Provides a high-level overview of explicit and implicit authorization checks in ABAP
- (The cheat sheet includes a copy and paste example class)
ABAP Dictionary
Covers a selection of repository objects in the ABAP Dictionary (DDIC) that represent global types
- (The cheat sheet includes a copy and paste example class)
Exceptions and Runtime Errors
Provides an overview on exceptions and runtime errors
zcl_demo_abap_error_handling
Regular Expressions in ABAP
Includes an overview of common regular expressions and their use in ABAP through statements, built-in functions, and system classes
zcl_demo_abap_regex
Numeric Operations in ABAP
Explores various aspects of numeric operations and calculations in ABAP
zcl_demo_abap_numeric_op
Generative AI
Provides references to detailed information on Generative AI in ABAP Cloud and explores released ABAP classes available in the ABAP AI SDK powered by Intelligent Scenario Lifecycle Management
- (The cheat sheet includes a copy and paste example class)
WHERE Conditions
Explores syntax options in ABAP statements that include WHERE for data filtering
zcl_demo_abap_where_conditions
Performance Notes
Explores a selection of performance-related examples, aimed to illustrate potentially inefficient techniques and use of statements
- (The cheat sheet includes a copy and paste example class)
ABAP Release News
Summarizes the release news from the ABAP Keyword Documentation for both versions of the ABAP language, ABAP for Cloud Development and Standard ABAP
-
ABAP Examples Using Object-Oriented Design Patterns
Does not cover ABAP-specific topics, but rather focuses on ABAP code experiments that explore design patterns in object-oriented programming. Many of these experiments are inspired by classic design patterns established by the Gang of Four (GoF).
The cheat sheet includes copy and paste example classes. These are included in the oo_patterns branch of the repository. Find more information here.
Enhancements Using BAdIs
Provides a high-level overview of enhancements using BAdIs (Business Add-Ins), focusing on related ABAP syntax.
- (The cheat sheet includes copy and paste example classes as well as descriptions to create demo BAdIs step by step)