ABAP Cheat Sheets
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!
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?
- 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), they invite you to dig deeper into the respective topics in the ABAP Keyword Documentation.
Currently available cheat sheets
|Cheat Sheet||Topics Covered|
|Working with Internal Tables||Creating, filling, reading from, sorting, modifying internal tables|
|Working with Structures||
|ABAP SQL in Use||
|ABAP Object Orientation||Working with objects and components, concepts like inheritance, interfaces, and more|
|Working with Constructor Expressions||
|ABAP for RAP: Entity Manipulation Language (ABAP EML)||
|Excursion Down to Bits and Bytes||Covers the technical background of data types and data objects|
|ABAP SQL: Working with Hierarchies||Summarizes the functions ABAP SQL offers together with ABAP CDS for working with hierarchical data that is stored in database tables|
|ABAP SQL: Grouping Internal Tables||Touches on the GROUP BY clause in ABAP SQL|
|A Glimpse on AMDP||Covers ABAP Managed Database Procedures (AMDP): AMDP Procedures and AMDP Functions (including CDS Table Functions)|
|Program Flow Logic||Deals with control structures (IF, CASE), loops (DO, WHILE) and exception handling|
|A Glimpse on ABAP Unit Tests||Contains basic information about unit testing in ABAP|
|CDS View Entities||Note that cheat sheet content is available in this blog. See examples in the repository. These include comments.|
Do you spot any errors? Any suggestions for further snippets and cheat sheets?
Very useful, thank you!
Thanks a lot Mohammed! 👍
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 🙂
very welcome. Thank you.
Wow, thank you so much for your effort!
That's for sponsoring me on GH, Christopher! Please send me an email or Twitter DM
Great Blog! Thanks, Daniel, for gathering and sharing all these useful information.
Hi Safa, thanks for leaving the message. Kind regards Daniel
Amazing stuff. More of that please in other development areas like SAPUI5 etc.
Hi Radoslaw, thanks! We're glad if F1's ABAP content is of help. Cheers
F1 is lacking examples comparing to this Github repo.
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.
amazing. Thank you very much.
Hi Föß, thanks for your note 👍
this stuff is absolutely amazing, thank you so much for your efforts. 🙂
Thanks Wises. ABAP rocks!
Thank you Daniel Reger for this work!
It is really helpful for the community!
Thanks Ruthiel! That was the plan 😁😁👍👍
It’s really informative blog. Thanks for sharing!!
You're very welcome, Syam. Thanks a lot. Kind regards Daniel
Thanks for all the time and work put into this! I am sure it will be a LONG living document!
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.
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
big thank you! 🙂
Hi Mike, 👍👍
Great effort! Thanks for sharing.
Hi Beyhan, you're very welcome 👍 Cheers Daniel
Thanks for these neat Cheat Sheets, Daniel! I already shared a link to this blog post with colleagues to make them aware of them.
Hi Bärbel, awesome ! Thanks a lot and kind regerds 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 ?