Technology Blogs by SAP
Learn how to extend and personalize SAP applications. Follow the SAP technology blog for insights into SAP BTP, ABAP, SAP Analytics Cloud, SAP HANA, and more.
cancel
Showing results for 
Search instead for 
Did you mean: 
danreg
Product and Topic Expert
Product and Topic Expert

Hi ABAP folks,

There‘s a popular internet meme out there: "One does not simply ...".
It comes from the statement "One does not simply walk into Mordor" made by Boromir, a member of the fellowship in the first Lord of the Rings movie, who is doubtful about the mission‘s prospects of success regarding the destruction of the one ring in Mount Doom - a volcano 🌋 in the realm of Mordor.

Maybe you were or are faced with a similarly tough mission when dealing with or learning ABAP. You could well argue that one does not simply understand ABAP 😅.

How about some info and code snippets on dedicated ABAP topics, concepts and syntax in a nutshell to get some basic equipment on the mission when advancing (certainly less belligerently than the fellowship mentioned above) into the realm of ABAP 🤔?

ABAP Cheat Sheets are there to support you!

 

🔗https://github.com/SAP-samples/abap-cheat-sheets


 
No, it's not about foul tricks and cheating. And no teacher will disapprove.
According to Merriam-Webster Dictionary 📚, a cheat sheet is a "a written [...] aid (such as a sheet of notes) that can be referred to for help in understanding or remembering something complex".

What are ABAP Cheat Sheets?


They …

  • provide a collection of information on selected ABAP topics in a nutshell for your reference.
  • focus on ABAP syntax, keywords and additions to ABAP statements.
  • include code snippets.
  • are supported by easy-to-consume demonstration examples that you can import into your SAP BTP ABAP environment or on-premise ABAP system using abapGit for you to run and check out ABAP syntax in action in simple contexts.
  • do not claim to be fully comprehensive as far as the concepts and syntax options are concerned. Since they are enriched by links to glossary entries and chapters of the ABAP Keyword Documentation (the F1 help), and others, they invite you to explore them further.

Currently available cheat sheets

Cheat SheetTopics Covered
ABAP for Cloud DevelopmentBriefly covers the terms ABAP Cloud and classic ABAP to set the context for ABAP for Cloud Development
Data Types and Data ObjectsContains basic information about data types and data objects in ABAP
Internal TablesCreating, filling, reading from, sorting, modifying internal tables
StructuresSome basics when working with structures
ABAP SQL
  • Reading from database tables using SELECT
  • Changing data in database tables using INSERTUPDATEMODIFY and DELETE
ABAP Object OrientationWorking with objects and components, concepts like 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
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)
String Processing
  • Creating strings and assigning values
  • Chaining strings
  • String templates
  • Concatenating, splitting, modifying strings
  • Searching and replacing
  • Regular expressions
ABAP for RAP: Entity Manipulation Language (ABAP EML)
  • EML syntax
  • ABAP Behavior Pools, RAP handler and saver classes
  • BDEF derived types
Excursion Down to Bits and BytesCovers the technical background of data types and data objects
ABAP SQL: Working with HierarchiesSummarizes the functions ABAP SQL offers together with ABAP CDS for working with hierarchical data that is stored in database tables
Internal Tables: GroupingCovers the GROUP BY clause in statements for internal tables.
ABAP Managed Database Procedures (AMDP)Covers ABAP Managed Database Procedures (AMDP): AMDP Procedures and AMDP Functions (including CDS Table Functions)
Program Flow LogicDeals with control structures (IF, CASE), loops (DO, WHILE) and exception handling
ABAP Unit TestsContains basic information about unit testing in ABAP
CDS View EntitiesNote that cheat sheet content is available in this blog. The repository contains examples.
SAP LUWProvides a high-level overview of the SAP LUW concept with a focus on SAP LUW-related statements.
Note: Several statements covered in the cheat sheet and the executable example are only relevant to classic ABAP.
DynproProvides a high-level overview of dynpro topics with a focus on dynpro-related statements.
Note: The content of this cheat sheet is only relevant to classic ABAP. 
Selection Screens and Classic ListsProvides 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).
Note: The content of this cheat sheet is only relevant to classic ABAP.
Working with XML and JSON in ABAPCovers processing XML using class libraries, XML transformations, serializations (ABAP to XML) and deserializations (XML to ABAP), and dealing with JSON data
Misc ABAP ClassesContains a selection of ABAP classes, serving as a quick introduction, along with code snippets to explore the functionality in action
Date, Time, and Time StampsCovers how to handle and process dates, times, and time stamps in ABAP
Misc Built-In FunctionsCovers a variety of built-in functions in ABAP

If you spot any errors, please create an issue in the GitHub repository.
Cheers.

38 Comments
Altarkawi
Participant
Very useful, thank you!
Jeansy
Active Contributor
Wow, that's really a lot of content.
I just had a quick look and it looks really very useful. Thank you for your effort for creating these Cheat-Sheets for various ABAP-related topics 🙂

Kind regards
Jens
danreg
Product and Topic Expert
Product and Topic Expert
0 Kudos
Thanks a lot Mohammed! 👍
danreg
Product and Topic Expert
Product and Topic Expert
0 Kudos
Hi Jens,

very welcome. Thank you.

Cheers
Wow, thank you so much for your effort!
danreg
Product and Topic Expert
Product and Topic Expert
0 Kudos
Thanks, Christoph.
former_member763514
Active Participant
Great Blog! Thanks, Daniel, for gathering and sharing all these useful information.
danreg
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Safa, thanks for leaving the message. Kind regards Daniel

rchudziak
Participant
Amazing stuff. More of that please in other development areas like SAPUI5 etc.
danreg
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Radoslaw, thanks! We're glad if the content is of help. Cheers

rchudziak
Participant
0 Kudos
F1 is lacking  examples comparing to this Github repo.
danreg
Product and Topic Expert
Product and Topic Expert
0 Kudos

Please see the Further information section in the repository's readme. The package SABAPDEMOS with plenty of code examples is available in SAP systems. The descriptions of the examples regarding the context and all are accessible via the F1 documentation, too. For example, try this link (standard ABAP) out to see a list of the examples. Then just search in your system for the mentioned artifacts. When checking that out directly in the system-internal version of the ABAP Keyword Documentation, you can get to the artifacts directly. You also have the option to run the example from the system-internal version directly. Apart from that, just recently the F1 examples were made fit for the SAP BTP ABAP environment and can be explored in those environments as well.

Föß
Active Participant
Hi,

amazing. Thank you very much.

Lg Föß
marcfbe
Participant
0 Kudos
That's for sponsoring me on GH, Christopher! Please send me an email or Twitter DM

Thanks,
Marc
bztoy
Participant
this stuff is absolutely amazing, thank you so much for your efforts. 🙂
danreg
Product and Topic Expert
Product and Topic Expert
0 Kudos
Hi Föß, thanks for your note 👍
danreg
Product and Topic Expert
Product and Topic Expert
0 Kudos
Thanks Wises. ABAP rocks!
Ruthiel
Product and Topic Expert
Product and Topic Expert
Thank you danreg for this work!
It is really helpful for the community!
danreg
Product and Topic Expert
Product and Topic Expert
0 Kudos

Thanks Ruthiel! 👍👍

SyambabuAllu
Contributor
Hi Daniel,

It’s really informative blog. Thanks for sharing!!

Thank you,

Syam

 
danreg
Product and Topic Expert
Product and Topic Expert
You're very welcome, Syam. Thanks a lot. Kind regards Daniel
ChrisSolomon
Active Contributor
Thanks for all the time and work put into this! I am sure it will be a LONG living document!
danreg
Product and Topic Expert
Product and Topic Expert
Thanks for your comment, Christopher. Yes, let's see. ABAP never gets old 😎. Let's see if more topics can be added over time. Regarding ABAP topics, there's "just a tiny little bit“ more available 😂 (or 😨 respectively … 😅😅). Cheers Daniel
Adeniji
Advisor
Advisor
Thank you so much for this cheat-cheat.

It really came handy to me at the right time esp the RAP topics.

Will definitely bookmark it.
danreg
Product and Topic Expert
Product and Topic Expert

Hi Olasunkanmi, great to hear that it is of help. Regarding the RAP stuff, you can consult, for example, the F1 docu here for the full beauty of CDS BDL, how to tailor your BDEF and all.  Just check the subtopics there. Furthermore, this topic serves as entry point to the F1 topics about EML. Not to forget (1): Meanwhile, there are plenty of smaller and bigger executable examples on RAP in/accessible and executable via the (system-internal) F1 docu. You find links to those examples in the respective topics (Executable Example section in the individual topics, usually the last section in the topics). Not to forget (2): The great Development guide for the ABAP RESTful Application Programming Model (<- on-premise; cloud -> here) for the complete picture. Cheers Daniel

mikesevilla
Participant
big thank you! 🙂
danreg
Product and Topic Expert
Product and Topic Expert
0 Kudos
Hi Mike, 👍👍
beyhan_meyrali
Active Contributor
Great effort! Thanks for sharing.
danreg
Product and Topic Expert
Product and Topic Expert
0 Kudos
Hi Beyhan, you're very welcome 👍 Cheers Daniel
BaerbelWinkler
Active Contributor
Thanks for these neat Cheat Sheets, Daniel! I already shared a link to this blog post with colleagues to make them aware of them.

Cheers

Bärbel
danreg
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Bärbel, awesome 👍! Thanks a lot and kind regerds Daniel

barisguler
Participant
Hello Daniel,

Thanks for this great blog. I am having problem when pull this demos to my development system. Are these errors related my system or coding ?


danreg
Product and Topic Expert
Product and Topic Expert
0 Kudos
Hi Barış,
thanks for your kind note and for reaching out. In fact, I strongly assume that the import errors are  related to the (ABAP version in your on-premise) system and that you are on a release < 7.56 (very first error note ...not supported by your NW release). As far as I can see from the screenshot, the RAP-related artifacts, among others (e.g. BDEF), are affected. 
Edit: Meanwhile, branches are available that support classic ABAP.
Thanks and kind regards Daniel
olegbash599
Active Participant
Thank you for the cheat sheet, danreg

Is it possible to add information into SAP LUW part? if yes - how?
danreg
Product and Topic Expert
Product and Topic Expert

Hi Oleg,

If you have suggestions (such as issues found, missing/additional syntax to be covered), please feel free to address them (GitHub issues, no pull requests).

Cheers

olegbash599
Active Participant

Thank you! 🙂

Oleg_Vokh
Product and Topic Expert
Product and Topic Expert

Very useful!
Thank you @danreg !

danreg
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Oleg, thanks for your comment. 👌👍