Update content

This commit is contained in:
danrega
2023-04-05 10:10:01 +02:00
parent 736091df5d
commit 3fd765ccb7
28 changed files with 334 additions and 337 deletions

View File

@@ -8,7 +8,7 @@
- [Basic Syntax](#basic-syntax) - [Basic Syntax](#basic-syntax)
- [Using SELECT for Multiple Purposes](#using-select-for-multiple-purposes) - [Using SELECT for Multiple Purposes](#using-select-for-multiple-purposes)
- [Clause Variations and Additions in SELECT Statements](#clause-variations-and-additions-in-select-statements) - [Clause Variations and Additions in SELECT Statements](#clause-variations-and-additions-in-select-statements)
- [Further Clauses](#further-clauses) - [More Clauses](#more-clauses)
- [Excursion: Operands and Expressions in ABAP SQL Statements](#excursion-operands-and-expressions-in-abap-sql-statements) - [Excursion: Operands and Expressions in ABAP SQL Statements](#excursion-operands-and-expressions-in-abap-sql-statements)
- [Excursion: SQL Conditions](#excursion-sql-conditions) - [Excursion: SQL Conditions](#excursion-sql-conditions)
- [Selecting Data by Evaluating the Content of other Tables](#selecting-data-by-evaluating-the-content-of-other-tables) - [Selecting Data by Evaluating the Content of other Tables](#selecting-data-by-evaluating-the-content-of-other-tables)
@@ -19,7 +19,7 @@
- [Using `UPDATE`](#using-update) - [Using `UPDATE`](#using-update)
- [Using `MODIFY`](#using-modify) - [Using `MODIFY`](#using-modify)
- [Using `DELETE`](#using-delete) - [Using `DELETE`](#using-delete)
- [Further Information](#further-information) - [More Information](#more-information)
- [Executable Example](#executable-example) - [Executable Example](#executable-example)
@@ -448,7 +448,7 @@ SELECT FROM dbtab
<p align="right">(<a href="#top">back to top</a>)</p> <p align="right">(<a href="#top">back to top</a>)</p>
### Further Clauses ### More Clauses
[`GROUP BY`](https://help.sap.com/doc/abapdocu_cp_index_htm/CLOUD/en-US/index.htm?file=abapgroupby_clause.htm) [`GROUP BY`](https://help.sap.com/doc/abapdocu_cp_index_htm/CLOUD/en-US/index.htm?file=abapgroupby_clause.htm)
clause: Combining groups of table rows in the result set. You clause: Combining groups of table rows in the result set. You
@@ -1473,7 +1473,7 @@ DELETE dbtab FROM TABLE @( VALUE #( ( comp1 = ... )
<p align="right">(<a href="#top">back to top</a>)</p> <p align="right">(<a href="#top">back to top</a>)</p>
## Further Information ## More Information
- Note that ABAP SQL statements offer syntax options for dynamic programming. For example, you can specify the data source to read from dynamically. See more information in the ABAP Keyword Documentation or the [ABAP cheat sheet on dynamic programming](06_Dynamic_Programming.md). - Note that ABAP SQL statements offer syntax options for dynamic programming. For example, you can specify the data source to read from dynamically. See more information in the ABAP Keyword Documentation or the [ABAP cheat sheet on dynamic programming](06_Dynamic_Programming.md).
```abap ```abap
DATA(dbtab) = 'ZDEMO_ABAP_FLSCH'. DATA(dbtab) = 'ZDEMO_ABAP_FLSCH'.

View File

@@ -17,7 +17,7 @@
- [Notes on Inheritance](#notes-on-inheritance) - [Notes on Inheritance](#notes-on-inheritance)
- [Notes on Polymorphism and Casting](#notes-on-polymorphism-and-casting) - [Notes on Polymorphism and Casting](#notes-on-polymorphism-and-casting)
- [Notes on Interfaces](#notes-on-interfaces) - [Notes on Interfaces](#notes-on-interfaces)
- [Further Notes](#further-notes) - [Additional Notes](#additional-notes)
- [Friendship](#friendship) - [Friendship](#friendship)
- [Events](#events) - [Events](#events)
- [Excursion: Factory Methods and Singletons as Design Patterns](#excursion-factory-methods-and-singletons-as-design-patterns) - [Excursion: Factory Methods and Singletons as Design Patterns](#excursion-factory-methods-and-singletons-as-design-patterns)
@@ -1045,7 +1045,7 @@ i_ref = NEW class( ).
<p align="right">(<a href="#top">back to top</a>)</p> <p align="right">(<a href="#top">back to top</a>)</p>
## Further Notes ## Additional Notes
### Friendship ### Friendship

View File

@@ -9,7 +9,7 @@
- [Data References](#data-references) - [Data References](#data-references)
- [Dynamic ABAP Statements](#dynamic-abap-statements) - [Dynamic ABAP Statements](#dynamic-abap-statements)
- [Runtime Type Services (RTTS)](#runtime-type-services-rtts) - [Runtime Type Services (RTTS)](#runtime-type-services-rtts)
- [Further Information](#further-information) - [More Information](#more-information)
- [Executable Example](#executable-example) - [Executable Example](#executable-example)
## Notes on Dynamic Programming ## Notes on Dynamic Programming
@@ -769,7 +769,7 @@ CREATE DATA ref_tab TYPE HANDLE table_type.
<p align="right">(<a href="#top">back to top</a>)</p> <p align="right">(<a href="#top">back to top</a>)</p>
## Further Information ## More Information
- It is recommended that you also consult section [Dynamic Programming Techniques (F1 docu for standard ABAP)](https://help.sap.com/doc/abapdocu_latest_index_htm/latest/en-US/index.htm?file=abendynamic_prog_technique_gdl.htm) in the ABAP Keyword Documentation since it provides important aspects that should be considered when dealing with dynamic programming in general (e. g. security aspects or runtime error prevention). - It is recommended that you also consult section [Dynamic Programming Techniques (F1 docu for standard ABAP)](https://help.sap.com/doc/abapdocu_latest_index_htm/latest/en-US/index.htm?file=abendynamic_prog_technique_gdl.htm) in the ABAP Keyword Documentation since it provides important aspects that should be considered when dealing with dynamic programming in general (e. g. security aspects or runtime error prevention).
- There are even further dynamic programming techniques in the unrestricted language scope like the - There are even further dynamic programming techniques in the unrestricted language scope like the
generation or execution of programs at runtime. They are not part of this cheat sheet. Find more details on the related syntax (e. g. `GENERATE SUBROUTINE POOL`, `READ REPORT` and `INSERT REPORT` in the ABAP Keyword Documentation for Standard ABAP: [Dynamic Program Development (F1 docu for standard ABAP)](https://help.sap.com/doc/abapdocu_latest_index_htm/latest/en-US/index.htm?file=abenabap_language_dynamic.htm) generation or execution of programs at runtime. They are not part of this cheat sheet. Find more details on the related syntax (e. g. `GENERATE SUBROUTINE POOL`, `READ REPORT` and `INSERT REPORT` in the ABAP Keyword Documentation for Standard ABAP: [Dynamic Program Development (F1 docu for standard ABAP)](https://help.sap.com/doc/abapdocu_latest_index_htm/latest/en-US/index.htm?file=abenabap_language_dynamic.htm)

View File

@@ -18,7 +18,7 @@
- [Using Keys and Identifying RAP BO Instances in a Nutshell](#using-keys-and-identifying-rap-bo-instances-in-a-nutshell) - [Using Keys and Identifying RAP BO Instances in a Nutshell](#using-keys-and-identifying-rap-bo-instances-in-a-nutshell)
- [RAP Concepts](#rap-concepts) - [RAP Concepts](#rap-concepts)
- [Ensuring Data Consistency in a RAP Transaction](#ensuring-data-consistency-in-a-rap-transaction) - [Ensuring Data Consistency in a RAP Transaction](#ensuring-data-consistency-in-a-rap-transaction)
- [Further Information](#further-information) - [More Information](#more-information)
- [Executable Examples](#executable-examples) - [Executable Examples](#executable-examples)
## Excursion: EML in the Context of RAP ## Excursion: EML in the Context of RAP
@@ -1227,7 +1227,7 @@ The following restrictions apply to operations and/or statements in the individu
<p align="right">(<a href="#top">back to top</a>)</p> <p align="right">(<a href="#top">back to top</a>)</p>
## Further Information ## More Information
- Section [ABAP for RAP Business - Section [ABAP for RAP Business
Objects](https://help.sap.com/doc/abapdocu_cp_index_htm/CLOUD/en-US/index.htm?file=abenabap_for_rap_bos.htm) Objects](https://help.sap.com/doc/abapdocu_cp_index_htm/CLOUD/en-US/index.htm?file=abenabap_for_rap_bos.htm)

View File

@@ -26,7 +26,7 @@ ancestors of a given hierarchy node or to aggregate values of subtrees.
- [Hierarchy Node Navigator HIERARCHY\_ANCESTORS](#hierarchy-node-navigator-hierarchy_ancestors) - [Hierarchy Node Navigator HIERARCHY\_ANCESTORS](#hierarchy-node-navigator-hierarchy_ancestors)
- [Hierarchy Node Navigator HIERARCHY\_SIBLINGS](#hierarchy-node-navigator-hierarchy_siblings) - [Hierarchy Node Navigator HIERARCHY\_SIBLINGS](#hierarchy-node-navigator-hierarchy_siblings)
- [Hierarchy Aggregate Navigators](#hierarchy-aggregate-navigators) - [Hierarchy Aggregate Navigators](#hierarchy-aggregate-navigators)
- [Further Information](#further-information) - [More Information](#more-information)
## Overview ## Overview
@@ -699,5 +699,5 @@ Running `CL_DEMO_SQL_HIERARCHIES` shows the
result. It also shows the result of the joined data source, where you result. It also shows the result of the joined data source, where you
can check that the calculated values are correct. can check that the calculated values are correct.
## Further Information ## More Information
For the complete reference documentation about SQL hierarchies, see [`SELECT, FROM hierarchy_data`](https://help.sap.com/doc/abapdocu_cp_index_htm/CLOUD/en-US/index.htm?file=abenselect_hierarchy_data.htm). For the complete reference documentation about SQL hierarchies, see [`SELECT, FROM hierarchy_data`](https://help.sap.com/doc/abapdocu_cp_index_htm/CLOUD/en-US/index.htm?file=abenselect_hierarchy_data.htm).

View File

@@ -9,7 +9,7 @@
- [AMDP Procedures](#amdp-procedures) - [AMDP Procedures](#amdp-procedures)
- [AMDP Functions](#amdp-functions) - [AMDP Functions](#amdp-functions)
- [CDS Table Functions](#cds-table-functions) - [CDS Table Functions](#cds-table-functions)
- [Further Information](#further-information) - [More Information](#more-information)
- [Executable Example](#executable-example) - [Executable Example](#executable-example)
@@ -374,7 +374,7 @@ You can then use the CDS table function as source for a
## Further Information ## More Information
Notes on using AMDP in environments with restricted language version (in Notes on using AMDP in environments with restricted language version (in
contrast unrestricted language version): contrast unrestricted language version):

View File

@@ -192,7 +192,7 @@ Use the standalone version of the abapGit report to import the demo examples of
<br> <br>
## Further Information ## More Information
- For the system-internal version of the ABAP Keyword Documentation in your - For the system-internal version of the ABAP Keyword Documentation in your
- ... **on-premise system**: Access the documentation in the SAP GUI via the transactions `ABAPDOCU` (opens the documentation directly) and `ABAPHELP` (opens an input field with which you can search the documentation content, for example, you can search for a keyword such as `SELECT`). Or, of course, choose `F1` on a keyword in your code. If you are in the SAP GUI (e.g. in `SE80`), the system-internal version opens. If you are in ADT, the documentation opens in the *ABAP Language Help* view. - ... **on-premise system**: Access the documentation in the SAP GUI via the transactions `ABAPDOCU` (opens the documentation directly) and `ABAPHELP` (opens an input field with which you can search the documentation content, for example, you can search for a keyword such as `SELECT`). Or, of course, choose `F1` on a keyword in your code. If you are in the SAP GUI (e.g. in `SE80`), the system-internal version opens. If you are in ADT, the documentation opens in the *ABAP Language Help* view.
- ... **SAP BTP ABAP environment**: In ADT, the documentation is in the *ABAP Language Help* view, where you can also search. If you choose `F1` on a keyword in your code, the documentation opens there. - ... **SAP BTP ABAP environment**: In ADT, the documentation is in the *ABAP Language Help* view, where you can also search. If you choose `F1` on a keyword in your code, the documentation opens there.
@@ -213,7 +213,7 @@ There is no guarantee for either the correctness or the completeness of the code
<br> <br>
## 📟 How to Obtain Support ## 📟 Support and Contribution
This is not intended to be a contribution repository, so please do not create pull requests. If you like to address issues or suggestions, please create an issue. However, this project is provided "as-is": there is no guarantee that raised issues will be answered or addressed in future releases. This is not intended to be a contribution repository, so please do not create pull requests. If you like to address issues or suggestions, please create an issue. However, this project is provided "as-is": there is no guarantee that raised issues will be answered or addressed in future releases.
<br> <br>

View File

@@ -21,17 +21,18 @@
* short and simple and focuses on specific RAP aspects. For this reason, * short and simple and focuses on specific RAP aspects. For this reason,
* the example might not fully meet the requirements of the RAP BO contract. * the example might not fully meet the requirements of the RAP BO contract.
* *
* The code presented in this class is only meant for supporting the ABAP * The code presented in this class is intended only to support the ABAP
* cheat sheets. It is not intended for direct use in a * cheat sheets. It is not intended for direct use in a production system
* production system environment. The code examples in the ABAP cheat * environment. The code examples in the ABAP cheat sheets are primarily
* sheets are primarily intended to provide a better explanation and * intended to provide a better explanation and visualization of the
* visualization of the syntax and semantics of ABAP statements and not to * syntax and semantics of ABAP statements, not to solve concrete
* solve concrete programming tasks. For production application programs, * programming tasks. For production application programs, you should
* a dedicated solution should therefore always be worked out for each * always work out your own solution for each individual case. There is
* individual case. There is no guarantee for either the correctness or * no guarantee for the correctness or completeness of the code.
* the completeness of the code. In addition, there is no legal * Furthermore, there is no legal responsibility or liability for any
* responsibility or liability for possible errors or their consequences * errors or their consequences that may occur when using the the example
* which occur through the use of the example code. * code.
*
*********************************************************************** ***********************************************************************
CLASS lhc_calc DEFINITION INHERITING FROM cl_abap_behavior_handler. CLASS lhc_calc DEFINITION INHERITING FROM cl_abap_behavior_handler.

View File

@@ -19,17 +19,18 @@
* short and simple and focuses on specific RAP aspects. For this reason, * short and simple and focuses on specific RAP aspects. For this reason,
* the example might not fully meet the requirements of the RAP BO contract. * the example might not fully meet the requirements of the RAP BO contract.
* *
* The code presented in this class is only meant for supporting the ABAP * The code presented in this class is intended only to support the ABAP
* cheat sheets. It is not intended for direct use in a * cheat sheets. It is not intended for direct use in a production system
* production system environment. The code examples in the ABAP cheat * environment. The code examples in the ABAP cheat sheets are primarily
* sheets are primarily intended to provide a better explanation and * intended to provide a better explanation and visualization of the
* visualization of the syntax and semantics of ABAP statements and not to * syntax and semantics of ABAP statements, not to solve concrete
* solve concrete programming tasks. For production application programs, * programming tasks. For production application programs, you should
* a dedicated solution should therefore always be worked out for each * always work out your own solution for each individual case. There is
* individual case. There is no guarantee for either the correctness or * no guarantee for the correctness or completeness of the code.
* the completeness of the code. In addition, there is no legal * Furthermore, there is no legal responsibility or liability for any
* responsibility or liability for possible errors or their consequences * errors or their consequences that may occur when using the the example
* which occur through the use of the example code. * code.
*
*********************************************************************** ***********************************************************************
CLASS lhc_root DEFINITION INHERITING FROM cl_abap_behavior_handler. CLASS lhc_root DEFINITION INHERITING FROM cl_abap_behavior_handler.

View File

@@ -23,17 +23,18 @@
* impacted by feature controls and instance authorization as specified * impacted by feature controls and instance authorization as specified
* in the BDEF. * in the BDEF.
* *
* The code presented in this class is only meant for supporting the ABAP * The code presented in this class is intended only to support the ABAP
* cheat sheets. It is not intended for direct use in a * cheat sheets. It is not intended for direct use in a production system
* production system environment. The code examples in the ABAP cheat * environment. The code examples in the ABAP cheat sheets are primarily
* sheets are primarily intended to provide a better explanation and * intended to provide a better explanation and visualization of the
* visualization of the syntax and semantics of ABAP statements and not to * syntax and semantics of ABAP statements, not to solve concrete
* solve concrete programming tasks. For production application programs, * programming tasks. For production application programs, you should
* a dedicated solution should therefore always be worked out for each * always work out your own solution for each individual case. There is
* individual case. There is no guarantee for either the correctness or * no guarantee for the correctness or completeness of the code.
* the completeness of the code. In addition, there is no legal * Furthermore, there is no legal responsibility or liability for any
* responsibility or liability for possible errors or their consequences * errors or their consequences that may occur when using the the example
* which occur through the use of the example code. * code.
*
*********************************************************************** ***********************************************************************
*********************************************************************** ***********************************************************************

View File

@@ -33,17 +33,17 @@
* console) or use the debugger. * console) or use the debugger.
* *
* ----------------------------- NOTE ----------------------------------- * ----------------------------- NOTE -----------------------------------
* The code presented in this class is only meant for supporting the ABAP * The code presented in this class is intended only to support the ABAP
* cheat sheets. It is not intended for direct use in a * cheat sheets. It is not intended for direct use in a production system
* production system environment. The code examples in the ABAP cheat * environment. The code examples in the ABAP cheat sheets are primarily
* sheets are primarily intended to provide a better explanation and * intended to provide a better explanation and visualization of the
* visualization of the syntax and semantics of ABAP statements and not to * syntax and semantics of ABAP statements, not to solve concrete
* solve concrete programming tasks. For production application programs, * programming tasks. For production application programs, you should
* a dedicated solution should therefore always be worked out for each * always work out your own solution for each individual case. There is
* individual case. There is no guarantee for either the correctness or * no guarantee for the correctness or completeness of the code.
* the completeness of the code. In addition, there is no legal * Furthermore, there is no legal responsibility or liability for any
* responsibility or liability for possible errors or their consequences * errors or their consequences that may occur when using the the example
* which occur through the use of the example code. * code.
* *
*********************************************************************** ***********************************************************************
"! <p class="shorttext synchronized">ABAP cheat sheet: AMDP</p> "! <p class="shorttext synchronized">ABAP cheat sheet: AMDP</p>

View File

@@ -98,7 +98,7 @@ CLASS zcl_demo_abap_cds_ve IMPLEMENTATION.
DATA(output) = NEW zcl_demo_abap_display( out ). DATA(output) = NEW zcl_demo_abap_display( out ).
output->display( `ABAP Cheat Sheet: CDS View Entities` ). output->display( `ABAP cheat sheet: CDS view entities` ).
output->display( `1) Operands, expressions and built-in functions ` && output->display( `1) Operands, expressions and built-in functions ` &&
`in a CDS view entity` ). `in a CDS view entity` ).

View File

@@ -105,13 +105,13 @@ protected section.
ENDCLASS. ENDCLASS.
CLASS ZCL_DEMO_ABAP_CONSTRUCTOR_EXPR IMPLEMENTATION. CLASS zcl_demo_abap_constructor_expr IMPLEMENTATION.
METHOD if_oo_adt_classrun~main. METHOD if_oo_adt_classrun~main.
DATA(output) = NEW zcl_demo_abap_display( out ). DATA(output) = NEW zcl_demo_abap_display( out ).
output->display( `ABAP Cheat Sheet: Constructor Expressions` ). output->display( `ABAP cheat sheet: Constructor expressions` ).
output->next_section( `VALUE` ). output->next_section( `VALUE` ).
output->display( `1) Structures: Populating a flat structure` ). output->display( `1) Structures: Populating a flat structure` ).

View File

@@ -1,23 +1,24 @@
*********************************************************************** ***********************************************************************
* *
* Class for ABAP cheat sheet examples * Class for ABAP cheat sheet examples designed to support displaying
* output in the ADT console
* *
* -------------------------- NOTE ------------------------------------- * -------------------------- NOTE -------------------------------------
* The code presented in this class is only meant for supporting the ABAP * The code presented in this class is intended only to support the ABAP
* cheat sheets. It is not intended for direct use in a * cheat sheets. It is not intended for direct use in a production system
* production system environment. The code examples in the ABAP cheat * environment. The code examples in the ABAP cheat sheets are primarily
* sheets are primarily intended to provide a better explanation and * intended to provide a better explanation and visualization of the
* visualization of the syntax and semantics of ABAP statements and not to * syntax and semantics of ABAP statements, not to solve concrete
* solve concrete programming tasks. For production application programs, * programming tasks. For production application programs, you should
* a dedicated solution should therefore always be worked out for each * always work out your own solution for each individual case. There is
* individual case. There is no guarantee for either the correctness or * no guarantee for the correctness or completeness of the code.
* the completeness of the code. In addition, there is no legal * Furthermore, there is no legal responsibility or liability for any
* responsibility or liability for possible errors or their consequences * errors or their consequences that may occur when using the the example
* which occur through the use of the example code. * code.
* *
*********************************************************************** ***********************************************************************
"! <p class="shorttext synchronized">Class for ABAP cheat sheet examples</p> "! <p class="shorttext synchronized">Class supporting ABAP cheat sheet examples</p>
"! The class supports the displaying of output of the ABAP cheat sheet examples. "! The class supports displaying output of the ABAP cheat sheet examples in the ADT console.
CLASS zcl_demo_abap_display DEFINITION CLASS zcl_demo_abap_display DEFINITION
PUBLIC PUBLIC
FINAL FINAL
@@ -50,12 +51,10 @@ ENDCLASS.
CLASS ZCL_DEMO_ABAP_DISPLAY IMPLEMENTATION. CLASS ZCL_DEMO_ABAP_DISPLAY IMPLEMENTATION.
METHOD constructor. METHOD constructor.
mo_out = io_out. mo_out = io_out.
ENDMETHOD. ENDMETHOD.
METHOD display. METHOD display.
"Checking data type "Checking data type
@@ -188,7 +187,6 @@ CLASS ZCL_DEMO_ABAP_DISPLAY IMPLEMENTATION.
ENDMETHOD. ENDMETHOD.
METHOD next_section. METHOD next_section.
mo_out->write( `_________________________________________________________________________________` mo_out->write( `_________________________________________________________________________________`

View File

@@ -19,32 +19,32 @@
* - Open the class with the ABAP Development Tools (ADT). * - Open the class with the ABAP Development Tools (ADT).
* - Choose F9 to run the class. * - Choose F9 to run the class.
* - Check the console output. * - Check the console output.
* - To understand the context and the ABAP syntax used, check the notes * - To understand the context and the ABAP syntax used, refer to the
* included in the class as comments and refer to the ABAP Keyword * notes included in the class as comments or refer to the respective
* Documentation. * topic in the ABAP Keyword Documentation.
* - Due to the amount of output in the console, the examples include * - Due to the amount of console output, the examples contain numbers
* numbers (e. g. 1) ..., 2) ..., 3) ...) for the individual example * (e.g. 1) ..., 2) ..., 3) ...) for the individual example sections.
* sections. Plus, the variable name is displayed in most cases. Hence, * Also, the variable name is displayed in most cases. So to find
* to easier and faster find the relevant output in the console, just * the relevant output in the console easier and faster, just search
* search in the console for the number/variable name (CTRL+F in the * for the number/variable name in the console (CTRL+F in the console)
* console) or use the debugger. * or use the debugger.
* *
* ----------------------------- NOTE ----------------------------------- * ----------------------------- NOTE -----------------------------------
* The code presented in this class is only meant for supporting the ABAP * The code presented in this class is intended only to support the ABAP
* cheat sheets. It is not intended for direct use in a * cheat sheets. It is not intended for direct use in a production system
* production system environment. The code examples in the ABAP cheat * environment. The code examples in the ABAP cheat sheets are primarily
* sheets are primarily intended to provide a better explanation and * intended to provide a better explanation and visualization of the
* visualization of the syntax and semantics of ABAP statements and not to * syntax and semantics of ABAP statements, not to solve concrete
* solve concrete programming tasks. For production application programs, * programming tasks. For production application programs, you should
* a dedicated solution should therefore always be worked out for each * always work out your own solution for each individual case. There is
* individual case. There is no guarantee for either the correctness or * no guarantee for the correctness or completeness of the code.
* the completeness of the code. In addition, there is no legal * Furthermore, there is no legal responsibility or liability for any
* responsibility or liability for possible errors or their consequences * errors or their consequences that may occur when using the the example
* which occur through the use of the example code. * code.
* *
*********************************************************************** ***********************************************************************
"! <p class="shorttext synchronized">ABAP cheat sheet: Dynamic programming</p> "! <p class="shorttext synchronized">ABAP cheat sheet: Dynamic programming</p>
"! Example to demonstrate concepts related to dynamic programming.<br>Choose F9 in ADT to run the class. "! Example to demonstrate syntax related to dynamic programming.<br>Choose F9 in ADT to run the class.
CLASS zcl_demo_abap_dynamic_prog DEFINITION CLASS zcl_demo_abap_dynamic_prog DEFINITION
PUBLIC PUBLIC
FINAL FINAL

View File

@@ -1,7 +1,7 @@
*********************************************************************** ***********************************************************************
* *
* Class for clearing and filling demo database tables used in the * Class for ABAP cheat sheet examples designed to clear and populate
* context of ABAP cheat sheets * demo database tables
* *
* -------------------------- NOTE ------------------------------------- * -------------------------- NOTE -------------------------------------
* The code presented in this class is only meant for supporting the ABAP * The code presented in this class is only meant for supporting the ABAP
@@ -17,8 +17,8 @@
* which occur through the use of the example code. * which occur through the use of the example code.
* *
*********************************************************************** ***********************************************************************
"! <p class="shorttext synchronized">Class for ABAP cheat sheet examples</p> "! <p class="shorttext synchronized">Class supporting ABAP cheat sheet examples</p>
"! The class is meant to clear and fill demo database tables used in the context of ABAP cheat sheet examples. "! The class supports the ABAP cheat examples by clearing and populating demo database tables that are used there.
"! The demo database tables contain airline and flight information. "! The demo database tables contain airline and flight information.
CLASS zcl_demo_abap_flight_tables DEFINITION CLASS zcl_demo_abap_flight_tables DEFINITION
PUBLIC PUBLIC
@@ -35,7 +35,7 @@ ENDCLASS.
CLASS ZCL_DEMO_ABAP_FLIGHT_TABLES IMPLEMENTATION. CLASS zcl_demo_abap_flight_tables IMPLEMENTATION.
METHOD clear_dbtabs. METHOD clear_dbtabs.

View File

@@ -12,28 +12,28 @@
* - Open the class with the ABAP Development Tools (ADT). * - Open the class with the ABAP Development Tools (ADT).
* - Choose F9 to run the class. * - Choose F9 to run the class.
* - Check the console output. * - Check the console output.
* - To understand the context and the ABAP syntax used, check the notes * - To understand the context and the ABAP syntax used, refer to the
* included in the class as comments or refer to the respective topic * notes included in the class as comments or refer to the respective
* in the ABAP Keyword Documentation. * topic in the ABAP Keyword Documentation.
* - Due to the amount of output in the console, the examples include * - Due to the amount of console output, the examples contain numbers
* numbers (e. g. 1) ..., 2) ..., 3) ...) for the individual example * (e.g. 1) ..., 2) ..., 3) ...) for the individual example sections.
* sections. Plus, the variable name is displayed in most cases. Hence, * Also, the variable name is displayed in most cases. So to find
* to easier and faster find the relevant output in the console, just * the relevant output in the console easier and faster, just search
* search in the console for the number/variable name (CTRL+F in the * for the number/variable name in the console (CTRL+F in the console)
* console) or use the debugger. * or use the debugger.
* *
* ----------------------------- NOTE ----------------------------------- * ----------------------------- NOTE -----------------------------------
* The code presented in this class is only meant for supporting the ABAP * The code presented in this class is intended only to support the ABAP
* cheat sheets. It is not intended for direct use in a * cheat sheets. It is not intended for direct use in a production system
* production system environment. The code examples in the ABAP cheat * environment. The code examples in the ABAP cheat sheets are primarily
* sheets are primarily intended to provide a better explanation and * intended to provide a better explanation and visualization of the
* visualization of the syntax and semantics of ABAP statements and not to * syntax and semantics of ABAP statements, not to solve concrete
* solve concrete programming tasks. For production application programs, * programming tasks. For production application programs, you should
* a dedicated solution should therefore always be worked out for each * always work out your own solution for each individual case. There is
* individual case. There is no guarantee for either the correctness or * no guarantee for the correctness or completeness of the code.
* the completeness of the code. In addition, there is no legal * Furthermore, there is no legal responsibility or liability for any
* responsibility or liability for possible errors or their consequences * errors or their consequences that may occur when using the the example
* which occur through the use of the example code. * code.
* *
*********************************************************************** ***********************************************************************
"! <p class="shorttext synchronized">ABAP cheat sheet: Internal tables</p> "! <p class="shorttext synchronized">ABAP cheat sheet: Internal tables</p>

View File

@@ -1,6 +1,6 @@
*********************************************************************** ***********************************************************************
* *
* ABAP cheat sheet: ABAP object orientation * ABAP cheat sheet: ABAP object orientation
* *
* -------------------------- PURPOSE ---------------------------------- * -------------------------- PURPOSE ----------------------------------
* - Example to demonstrate various syntactical options and concepts related * - Example to demonstrate various syntactical options and concepts related
@@ -20,31 +20,31 @@
* - Open the class with the ABAP Development Tools (ADT). * - Open the class with the ABAP Development Tools (ADT).
* - Choose F9 to run the class. * - Choose F9 to run the class.
* - Check the console output. * - Check the console output.
* - To understand the context and the ABAP syntax used, check the notes * - To understand the context and the ABAP syntax used, refer to the
* included in the class as comments or refer to the respective topic * notes included in the class as comments or refer to the respective
* in the ABAP Keyword Documentation. * topic in the ABAP Keyword Documentation.
* - Due to the amount of output in the console, the examples include * - Due to the amount of console output, the examples contain numbers
* numbers (e. g. 1) ..., 2) ..., 3) ...) for the individual example * (e.g. 1) ..., 2) ..., 3) ...) for the individual example sections.
* sections. Plus, the variable name is displayed in most cases. Hence, * Also, the variable name is displayed in most cases. So to find
* to easier and faster find the relevant output in the console, just * the relevant output in the console easier and faster, just search
* search in the console for the number/variable name (STRG+F in the * for the number/variable name in the console (CTRL+F in the console)
* console) or use the debugger. * or use the debugger.
* *
* ----------------------------- NOTE ----------------------------------- * ----------------------------- NOTE -----------------------------------
* The code presented in this class is only meant for supporting the ABAP * The code presented in this class is intended only to support the ABAP
* cheat sheets. It is not intended for direct use in a * cheat sheets. It is not intended for direct use in a production system
* production system environment. The code examples in the ABAP cheat * environment. The code examples in the ABAP cheat sheets are primarily
* sheets are primarily intended to provide a better explanation and * intended to provide a better explanation and visualization of the
* visualization of the syntax and semantics of ABAP statements and not to * syntax and semantics of ABAP statements, not to solve concrete
* solve concrete programming tasks. For production application programs, * programming tasks. For production application programs, you should
* a dedicated solution should therefore always be worked out for each * always work out your own solution for each individual case. There is
* individual case. There is no guarantee for either the correctness or * no guarantee for the correctness or completeness of the code.
* the completeness of the code. In addition, there is no legal * Furthermore, there is no legal responsibility or liability for any
* responsibility or liability for possible errors or their consequences * errors or their consequences that may occur when using the the example
* which occur through the use of the example code. * code.
* *
*********************************************************************** ***********************************************************************
"! <p class="shorttext synchronized">ABAP cheat sheet: ABAP Object Orientation</p> "! <p class="shorttext synchronized">ABAP cheat sheet: ABAP object orientation</p>
"! Example to demonstrate concepts related to ABAP object orientation.<br>Choose F9 in ADT to run the class. "! Example to demonstrate concepts related to ABAP object orientation.<br>Choose F9 in ADT to run the class.
CLASS zcl_demo_abap_objects DEFINITION CLASS zcl_demo_abap_objects DEFINITION
PUBLIC PUBLIC
@@ -83,19 +83,16 @@ ENDCLASS.
CLASS zcl_demo_abap_objects IMPLEMENTATION. CLASS zcl_demo_abap_objects IMPLEMENTATION.
METHOD hallo_instance_method. METHOD hallo_instance_method.
string = |Hallo { sy-uname }. | && string = |Hallo { sy-uname }. | &&
|I'm an instance method of class zcl_demo_abap_objects.|. |I'm an instance method of class zcl_demo_abap_objects.|.
ENDMETHOD. ENDMETHOD.
METHOD hallo_static_method. METHOD hallo_static_method.
string = |Hallo { sy-uname }. | && string = |Hallo { sy-uname }. | &&
|I'm a static method of class zcl_demo_abap_objects.|. |I'm a static method of class zcl_demo_abap_objects.|.
ENDMETHOD. ENDMETHOD.
METHOD if_oo_adt_classrun~main. METHOD if_oo_adt_classrun~main.
DATA(output) = NEW zcl_demo_abap_display( out ). DATA(output) = NEW zcl_demo_abap_display( out ).

View File

@@ -1,23 +1,23 @@
*********************************************************************** ***********************************************************************
* *
* Class for ABAP cheat sheet example * Class supporting an ABAP cheat sheet example
* *
* ----------------------------- NOTE ----------------------------------- * ----------------------------- NOTE -----------------------------------
* The code presented in this class is only meant for supporting the ABAP * The code presented in this class is intended only to support the ABAP
* cheat sheets in this repository. It is not intended for direct use in a * cheat sheets. It is not intended for direct use in a production system
* production system environment. The code examples in the ABAP cheat * environment. The code examples in the ABAP cheat sheets are primarily
* sheets are primarily intended to provide a better explanation and * intended to provide a better explanation and visualization of the
* visualization of the syntax and semantics of ABAP statements and not to * syntax and semantics of ABAP statements, not to solve concrete
* solve concrete programming tasks. For production application programs, * programming tasks. For production application programs, you should
* a dedicated solution should therefore always be worked out for each * always work out your own solution for each individual case. There is
* individual case. There is no guarantee for either the correctness or * no guarantee for the correctness or completeness of the code.
* the completeness of the code. In addition, there is no legal * Furthermore, there is no legal responsibility or liability for any
* responsibility or liability for possible errors or their consequences * errors or their consequences that may occur when using the the example
* which occur through the use of the example code. * code.
* *
*********************************************************************** ***********************************************************************
"! <p class="shorttext synchronized">Class for ABAP cheat sheet example</p> "! <p class="shorttext synchronized">Class supporting ABAP cheat sheet example</p>
"! The class supports the ABAP cheat sheet on object orientation and demonstrates the concept of friendship. "! The class supports the ABAP cheat sheet example about object orientation.
CLASS zcl_demo_abap_objects_friend DEFINITION PUBLIC FINAL CREATE PUBLIC. CLASS zcl_demo_abap_objects_friend DEFINITION PUBLIC FINAL CREATE PUBLIC.
PUBLIC SECTION. PUBLIC SECTION.

View File

@@ -1,6 +1,6 @@
*********************************************************************** ***********************************************************************
* *
* ABAP cheat sheet: Program Flow Logic * ABAP cheat sheet: Program flow logic
* *
* -------------------------- PURPOSE ---------------------------------- * -------------------------- PURPOSE ----------------------------------
* - Demonstration example for the topic program flow logic covering * - Demonstration example for the topic program flow logic covering
@@ -16,32 +16,32 @@
* - Open the class with the ABAP Development Tools (ADT). * - Open the class with the ABAP Development Tools (ADT).
* - Choose F9 to run the class. * - Choose F9 to run the class.
* - Check the console output. * - Check the console output.
* - To understand the context and the ABAP syntax used, check the notes * - To understand the context and the ABAP syntax used, refer to the
* included in the class as comments or refer to the respective topic * notes included in the class as comments or refer to the respective
* in the ABAP Keyword Documentation. * topic in the ABAP Keyword Documentation.
* - Due to the amount of output in the console, the examples include * - Due to the amount of console output, the examples contain numbers
* numbers (e. g. 1) ..., 2) ..., 3) ...) for the individual example * (e.g. 1) ..., 2) ..., 3) ...) for the individual example sections.
* sections. Plus, the variable name is displayed in most cases. Hence, * Also, the variable name is displayed in most cases. So to find
* to easier and faster find the relevant output in the console, just * the relevant output in the console easier and faster, just search
* search in the console for the number/variable name (CTRL+F in the * for the number/variable name in the console (CTRL+F in the console)
* console) or use the debugger. * or use the debugger.
* *
* ----------------------------- NOTE ----------------------------------- * ----------------------------- NOTE -----------------------------------
* The code presented in this class is only meant for supporting the ABAP * The code presented in this class is intended only to support the ABAP
* cheat sheets. It is not intended for direct use in a * cheat sheets. It is not intended for direct use in a production system
* production system environment. The code examples in the ABAP cheat * environment. The code examples in the ABAP cheat sheets are primarily
* sheets are primarily intended to provide a better explanation and * intended to provide a better explanation and visualization of the
* visualization of the syntax and semantics of ABAP statements and not to * syntax and semantics of ABAP statements, not to solve concrete
* solve concrete programming tasks. For production application programs, * programming tasks. For production application programs, you should
* a dedicated solution should therefore always be worked out for each * always work out your own solution for each individual case. There is
* individual case. There is no guarantee for either the correctness or * no guarantee for the correctness or completeness of the code.
* the completeness of the code. In addition, there is no legal * Furthermore, there is no legal responsibility or liability for any
* responsibility or liability for possible errors or their consequences * errors or their consequences that may occur when using the the example
* which occur through the use of the example code. * code.
* *
*********************************************************************** ***********************************************************************
"! <p class="shorttext synchronized">ABAP cheat sheet: Program Flow Logic</p> "! <p class="shorttext synchronized">ABAP cheat sheet: Program flow logic</p>
"! Demonstration example for the topic program flow logic.<br>Choose F9 in ADT to run the class. "! Example to demonstrate program flow logic.<br>Choose F9 in ADT to run the class.
CLASS zcl_demo_abap_prog_flow_logic DEFINITION CLASS zcl_demo_abap_prog_flow_logic DEFINITION
PUBLIC PUBLIC
FINAL FINAL

View File

@@ -83,17 +83,18 @@
* short and simple and focuses on specific RAP aspects. For this reason, * short and simple and focuses on specific RAP aspects. For this reason,
* the example might not fully meet the requirements of the RAP BO contract. * the example might not fully meet the requirements of the RAP BO contract.
* *
* The code presented in this class is only meant for supporting the ABAP * The code presented in this class is intended only to support the ABAP
* cheat sheets. It is not intended for direct use in a * cheat sheets. It is not intended for direct use in a production system
* production system environment. The code examples in the ABAP cheat * environment. The code examples in the ABAP cheat sheets are primarily
* sheets are primarily intended to provide a better explanation and * intended to provide a better explanation and visualization of the
* visualization of the syntax and semantics of ABAP statements and not to * syntax and semantics of ABAP statements, not to solve concrete
* solve concrete programming tasks. For production application programs, * programming tasks. For production application programs, you should
* a dedicated solution should therefore always be worked out for each * always work out your own solution for each individual case. There is
* individual case. There is no guarantee for either the correctness or * no guarantee for the correctness or completeness of the code.
* the completeness of the code. In addition, there is no legal * Furthermore, there is no legal responsibility or liability for any
* responsibility or liability for possible errors or their consequences * errors or their consequences that may occur when using the the example
* which occur through the use of the example code. * code.
*
*********************************************************************** ***********************************************************************
"! <p class="shorttext synchronized">ABAP cheat sheet: ABAP EML in a RAP scenario (draft BO)</p> "! <p class="shorttext synchronized">ABAP cheat sheet: ABAP EML in a RAP scenario (draft BO)</p>
"! Example to demonstrate ABAP EML in the context of a RAP demo scenario (managed and draft-enabled RAP business object with RAP late numbering). "! Example to demonstrate ABAP EML in the context of a RAP demo scenario (managed and draft-enabled RAP business object with RAP late numbering).

View File

@@ -43,17 +43,18 @@
* short and simple and focuses on specific RAP aspects. For this reason, * short and simple and focuses on specific RAP aspects. For this reason,
* the example might not fully meet the requirements of the RAP BO contract. * the example might not fully meet the requirements of the RAP BO contract.
* *
* The code presented in this class is only meant for supporting the ABAP * The code presented in this class is intended only to support the ABAP
* cheat sheets. It is not intended for direct use in a * cheat sheets. It is not intended for direct use in a production system
* production system environment. The code examples in the ABAP cheat * environment. The code examples in the ABAP cheat sheets are primarily
* sheets are primarily intended to provide a better explanation and * intended to provide a better explanation and visualization of the
* visualization of the syntax and semantics of ABAP statements and not to * syntax and semantics of ABAP statements, not to solve concrete
* solve concrete programming tasks. For production application programs, * programming tasks. For production application programs, you should
* a dedicated solution should therefore always be worked out for each * always work out your own solution for each individual case. There is
* individual case. There is no guarantee for either the correctness or * no guarantee for the correctness or completeness of the code.
* the completeness of the code. In addition, there is no legal * Furthermore, there is no legal responsibility or liability for any
* responsibility or liability for possible errors or their consequences * errors or their consequences that may occur when using the the example
* which occur through the use of the example code. * code.
*
*********************************************************************** ***********************************************************************
"! <p class="shorttext synchronized">ABAP cheat sheet: ABAP EML in a RAP scenario (managed BO)</p> "! <p class="shorttext synchronized">ABAP cheat sheet: ABAP EML in a RAP scenario (managed BO)</p>
"! Example to demonstrate ABAP EML in the context of a RAP demo scenario (managed RAP BO with external numbering). "! Example to demonstrate ABAP EML in the context of a RAP demo scenario (managed RAP BO with external numbering).

View File

@@ -47,17 +47,18 @@
* impacted by feature controls and instance authorization as specified * impacted by feature controls and instance authorization as specified
* in the BDEF. * in the BDEF.
* *
* The code presented in this class is only meant for supporting the ABAP * The code presented in this class is intended only to support the ABAP
* cheat sheets. It is not intended for direct use in a * cheat sheets. It is not intended for direct use in a production system
* production system environment. The code examples in the ABAP cheat * environment. The code examples in the ABAP cheat sheets are primarily
* sheets are primarily intended to provide a better explanation and * intended to provide a better explanation and visualization of the
* visualization of the syntax and semantics of ABAP statements and not to * syntax and semantics of ABAP statements, not to solve concrete
* solve concrete programming tasks. For production application programs, * programming tasks. For production application programs, you should
* a dedicated solution should therefore always be worked out for each * always work out your own solution for each individual case. There is
* individual case. There is no guarantee for either the correctness or * no guarantee for the correctness or completeness of the code.
* the completeness of the code. In addition, there is no legal * Furthermore, there is no legal responsibility or liability for any
* responsibility or liability for possible errors or their consequences * errors or their consequences that may occur when using the the example
* which occur through the use of the example code. * code.
*
*********************************************************************** ***********************************************************************
"! <p class="shorttext synchronized">ABAP cheat sheet: ABAP EML in a RAP scenario (unmanaged BO)</p> "! <p class="shorttext synchronized">ABAP cheat sheet: ABAP EML in a RAP scenario (unmanaged BO)</p>
"! Example to demonstrate ABAP EML in the context of a RAP demo scenario (unmanaged RAP BO with external numbering). "! Example to demonstrate ABAP EML in the context of a RAP demo scenario (unmanaged RAP BO with external numbering).
@@ -89,16 +90,12 @@ protected section.
ENDCLASS. ENDCLASS.
CLASS zcl_demo_abap_rap_ext_num_u IMPLEMENTATION.
CLASS ZCL_DEMO_ABAP_RAP_EXT_NUM_U IMPLEMENTATION.
METHOD class_constructor. METHOD class_constructor.
initialize_dbtabs( ). initialize_dbtabs( ).
ENDMETHOD. ENDMETHOD.
METHOD extract_from_failed. METHOD extract_from_failed.
CLEAR errors. CLEAR errors.

View File

@@ -12,28 +12,28 @@
* - Open the class with the ABAP Development Tools (ADT). * - Open the class with the ABAP Development Tools (ADT).
* - Choose F9 to run the class. * - Choose F9 to run the class.
* - Check the console output. * - Check the console output.
* - To understand the context and the ABAP syntax used, check the notes * - To understand the context and the ABAP syntax used, refer to the
* included in the class as comments or refer to the respective topic * notes included in the class as comments or refer to the respective
* in the ABAP Keyword Documentation. * topic in the ABAP Keyword Documentation.
* - Due to the amount of output in the console, the examples include * - Due to the amount of console output, the examples contain numbers
* numbers (e. g. 1) ..., 2) ..., 3) ...) for the individual example * (e.g. 1) ..., 2) ..., 3) ...) for the individual example sections.
* sections. Plus, the variable name is displayed in most cases. Hence, * Also, the variable name is displayed in most cases. So to find
* to easier and faster find the relevant output in the console, just * the relevant output in the console easier and faster, just search
* search in the console for the number/variable name (CTRL+F in the * for the number/variable name in the console (CTRL+F in the console)
* console) or use the debugger. * or use the debugger.
* *
* ----------------------------- NOTE ----------------------------------- * ----------------------------- NOTE -----------------------------------
* The code presented in this class is only meant for supporting the ABAP * The code presented in this class is intended only to support the ABAP
* cheat sheets. It is not intended for direct use in a * cheat sheets. It is not intended for direct use in a production system
* production system environment. The code examples in the ABAP cheat * environment. The code examples in the ABAP cheat sheets are primarily
* sheets are primarily intended to provide a better explanation and * intended to provide a better explanation and visualization of the
* visualization of the syntax and semantics of ABAP statements and not to * syntax and semantics of ABAP statements, not to solve concrete
* solve concrete programming tasks. For production application programs, * programming tasks. For production application programs, you should
* a dedicated solution should therefore always be worked out for each * always work out your own solution for each individual case. There is
* individual case. There is no guarantee for either the correctness or * no guarantee for the correctness or completeness of the code.
* the completeness of the code. In addition, there is no legal * Furthermore, there is no legal responsibility or liability for any
* responsibility or liability for possible errors or their consequences * errors or their consequences that may occur when using the the example
* which occur through the use of the example code. * code.
* *
*********************************************************************** ***********************************************************************
"! <p class="shorttext synchronized">ABAP cheat sheet: ABAP SQL</p> "! <p class="shorttext synchronized">ABAP cheat sheet: ABAP SQL</p>

View File

@@ -3,37 +3,37 @@
* ABAP cheat sheet: ABAP SQL - Grouping Internal Tables * ABAP cheat sheet: ABAP SQL - Grouping Internal Tables
* *
* -------------------------- PURPOSE ---------------------------------- * -------------------------- PURPOSE ----------------------------------
* - Example to demonstrate syntactical options when grouping internal * Example to demonstrate syntax options when grouping internal tables.
* tables.
* *
* ----------------------- GETTING STARTED ----------------------------- * ----------------------- GETTING STARTED -----------------------------
* - Open the class with the ABAP Development Tools (ADT). * - Open the class with the ABAP Development Tools (ADT).
* - Choose F9 to run the class. * - Choose F9 to run the class.
* - Check the console output. * - Check the console output.
* - To understand the context and the ABAP syntax used, check the notes * - To understand the context and the ABAP syntax used, refer to the
* included in the class as comments or refer to the respective topic * notes included in the class as comments or refer to the respective
* in the ABAP Keyword Documentation. * topic in the ABAP Keyword Documentation.
* - Due to the amount of output in the console, the examples include * - Due to the amount of console output, the examples contain numbers
* numbers (e. g. 1) ..., 2) ..., 3) ...) for the individual example * (e.g. 1) ..., 2) ..., 3) ...) for the individual example sections.
* sections. Plus, the variable name is displayed in most cases. Hence, * Also, the variable name is displayed in most cases. So to find
* to easier and faster find the relevant output in the console, just * the relevant output in the console easier and faster, just search
* search in the console for the number/variable name (CTRL+F in the * for the number/variable name in the console (CTRL+F in the console)
* console) or use the debugger. * or use the debugger.
*
* ----------------------------- NOTE ----------------------------------- * ----------------------------- NOTE -----------------------------------
* The code presented in this class is only meant for supporting the ABAP * The code presented in this class is intended only to support the ABAP
* cheat sheets. It is not intended for direct use in a * cheat sheets. It is not intended for direct use in a production system
* production system environment. The code examples in the ABAP cheat * environment. The code examples in the ABAP cheat sheets are primarily
* sheets are primarily intended to provide a better explanation and * intended to provide a better explanation and visualization of the
* visualization of the syntax and semantics of ABAP statements and not to * syntax and semantics of ABAP statements, not to solve concrete
* solve concrete programming tasks. For production application programs, * programming tasks. For production application programs, you should
* a dedicated solution should therefore always be worked out for each * always work out your own solution for each individual case. There is
* individual case. There is no guarantee for either the correctness or * no guarantee for the correctness or completeness of the code.
* the completeness of the code. In addition, there is no legal * Furthermore, there is no legal responsibility or liability for any
* responsibility or liability for possible errors or their consequences * errors or their consequences that may occur when using the the example
* which occur through the use of the example code. * code.
* *
*********************************************************************** ***********************************************************************
"! <p class="shorttext synchronized">ABAP cheat sheet: ABAP SQL - Grouping Internal Tables</p> "! <p class="shorttext synchronized">ABAP cheat sheet: ABAP SQL - Grouping internal tables</p>
"! Example to demonstrate grouping internal tables.<br>Choose F9 in ADT to run the class. "! Example to demonstrate grouping internal tables.<br>Choose F9 in ADT to run the class.
CLASS zcl_demo_abap_sql_group_by DEFINITION CLASS zcl_demo_abap_sql_group_by DEFINITION
PUBLIC PUBLIC
@@ -56,7 +56,7 @@ ENDCLASS.
CLASS ZCL_DEMO_ABAP_SQL_GROUP_BY IMPLEMENTATION. CLASS zcl_demo_abap_sql_group_by IMPLEMENTATION.
METHOD class_constructor. METHOD class_constructor.

View File

@@ -13,28 +13,28 @@
* - Open the class with the ABAP Development Tools (ADT). * - Open the class with the ABAP Development Tools (ADT).
* - Choose F9 to run the class. * - Choose F9 to run the class.
* - Check the console output. * - Check the console output.
* - To understand the context and the ABAP syntax used, check the notes * - To understand the context and the ABAP syntax used, refer to the
* included in the class as comments or refer to the respective topic * notes included in the class as comments or refer to the respective
* in the ABAP Keyword Documentation. * topic in the ABAP Keyword Documentation.
* - Due to the amount of output in the console, the examples include * - Due to the amount of console output, the examples contain numbers
* numbers (e. g. 1) ..., 2) ..., 3) ...) for the individual example * (e.g. 1) ..., 2) ..., 3) ...) for the individual example sections.
* sections. Plus, the variable name is displayed in most cases. Hence, * Also, the variable name is displayed in most cases. So to find
* to easier and faster find the relevant output in the console, just * the relevant output in the console easier and faster, just search
* search in the console for the number/variable name (CTRL+F in the * for the number/variable name in the console (CTRL+F in the console)
* console) or use the debugger. * or use the debugger.
* *
* ----------------------------- NOTE ----------------------------------- * ----------------------------- NOTE -----------------------------------
* The code presented in this class is only meant for supporting the ABAP * The code presented in this class is intended only to support the ABAP
* cheat sheets. It is not intended for direct use in a * cheat sheets. It is not intended for direct use in a production system
* production system environment. The code examples in the ABAP cheat * environment. The code examples in the ABAP cheat sheets are primarily
* sheets are primarily intended to provide a better explanation and * intended to provide a better explanation and visualization of the
* visualization of the syntax and semantics of ABAP statements and not to * syntax and semantics of ABAP statements, not to solve concrete
* solve concrete programming tasks. For production application programs, * programming tasks. For production application programs, you should
* a dedicated solution should therefore always be worked out for each * always work out your own solution for each individual case. There is
* individual case. There is no guarantee for either the correctness or * no guarantee for the correctness or completeness of the code.
* the completeness of the code. In addition, there is no legal * Furthermore, there is no legal responsibility or liability for any
* responsibility or liability for possible errors or their consequences * errors or their consequences that may occur when using the the example
* which occur through the use of the example code. * code.
* *
*********************************************************************** ***********************************************************************
"! <p class="shorttext synchronized">ABAP cheat sheet: String processing</p> "! <p class="shorttext synchronized">ABAP cheat sheet: String processing</p>
@@ -53,7 +53,6 @@ ENDCLASS.
CLASS zcl_demo_abap_string_proc IMPLEMENTATION. CLASS zcl_demo_abap_string_proc IMPLEMENTATION.
METHOD if_oo_adt_classrun~main. METHOD if_oo_adt_classrun~main.
DATA(output) = NEW zcl_demo_abap_display( out ). DATA(output) = NEW zcl_demo_abap_display( out ).

View File

@@ -13,27 +13,28 @@
* - Open the class with the ABAP Development Tools (ADT). * - Open the class with the ABAP Development Tools (ADT).
* - Choose F9 to run the class. * - Choose F9 to run the class.
* - Check the console output. * - Check the console output.
* - To understand the context and the ABAP syntax used, check the notes * - To understand the context and the ABAP syntax used, refer to the
* included in the class as comments or refer to the respective topic * notes included in the class as comments or refer to the respective
* in the ABAP Keyword Documentation. * topic in the ABAP Keyword Documentation.
* - Due to the amount of output in the console, the examples include * - Due to the amount of console output, the examples contain numbers
* numbers (e. g. 1) ..., 2) ..., 3) ...) for the individual example * (e.g. 1) ..., 2) ..., 3) ...) for the individual example sections.
* sections. Plus, the variable name is displayed in most cases. Hence, * Also, the variable name is displayed in most cases. So to find
* to easier and faster find the relevant output in the console, just * the relevant output in the console easier and faster, just search
* search in the console for the number/variable name (CTRL+F in the * for the number/variable name in the console (CTRL+F in the console)
* console) or use the debugger. * or use the debugger.
*
* ----------------------------- NOTE ----------------------------------- * ----------------------------- NOTE -----------------------------------
* The code presented in this class is only meant for supporting the ABAP * The code presented in this class is intended only to support the ABAP
* cheat sheets. It is not intended for direct use in a * cheat sheets. It is not intended for direct use in a production system
* production system environment. The code examples in the ABAP cheat * environment. The code examples in the ABAP cheat sheets are primarily
* sheets are primarily intended to provide a better explanation and * intended to provide a better explanation and visualization of the
* visualization of the syntax and semantics of ABAP statements and not to * syntax and semantics of ABAP statements, not to solve concrete
* solve concrete programming tasks. For production application programs, * programming tasks. For production application programs, you should
* a dedicated solution should therefore always be worked out for each * always work out your own solution for each individual case. There is
* individual case. There is no guarantee for either the correctness or * no guarantee for the correctness or completeness of the code.
* the completeness of the code. In addition, there is no legal * Furthermore, there is no legal responsibility or liability for any
* responsibility or liability for possible errors or their consequences * errors or their consequences that may occur when using the the example
* which occur through the use of the example code. * code.
* *
*********************************************************************** ***********************************************************************
"! <p class="shorttext synchronized">ABAP cheat sheet: Structures</p> "! <p class="shorttext synchronized">ABAP cheat sheet: Structures</p>

View File

@@ -37,20 +37,20 @@
* console) or use the debugger. * console) or use the debugger.
* *
* ----------------------------- NOTE ----------------------------------- * ----------------------------- NOTE -----------------------------------
* The code presented in this class is only meant for supporting the ABAP * The code presented in this class is intended only to support the ABAP
* cheat sheets. It is not intended for direct use in a * cheat sheets. It is not intended for direct use in a production system
* production system environment. The code examples in the ABAP cheat * environment. The code examples in the ABAP cheat sheets are primarily
* sheets are primarily intended to provide a better explanation and * intended to provide a better explanation and visualization of the
* visualization of the syntax and semantics of ABAP statements and not to * syntax and semantics of ABAP statements, not to solve concrete
* solve concrete programming tasks. For production application programs, * programming tasks. For production application programs, you should
* a dedicated solution should therefore always be worked out for each * always work out your own solution for each individual case. There is
* individual case. There is no guarantee for either the correctness or * no guarantee for the correctness or completeness of the code.
* the completeness of the code. In addition, there is no legal * Furthermore, there is no legal responsibility or liability for any
* responsibility or liability for possible errors or their consequences * errors or their consequences that may occur when using the the example
* which occur through the use of the example code. * code.
* *
*********************************************************************** ***********************************************************************
"! <p class="shorttext synchronized">ABAP cheat sheet: Unit test</p> "! <p class="shorttext synchronized">ABAP cheat sheet: Unit tests</p>
"! Example to demonstrate ABAP unit tests.<br>Choose F9 in ADT to run the class. "! Example to demonstrate ABAP unit tests.<br>Choose F9 in ADT to run the class.
"! To run all unit tests of the class, choose Ctrl/Cmd + Shift + F10. "! To run all unit tests of the class, choose Ctrl/Cmd + Shift + F10.
CLASS zcl_demo_abap_unit_test DEFINITION CLASS zcl_demo_abap_unit_test DEFINITION