Update
This commit is contained in:
@@ -305,7 +305,7 @@ DATA(ref_struc_2) = NEW structured_type( ).
|
||||
|
||||
... ref_struc_1->comp1 ...
|
||||
... ref_struc_1->*-comp1 ... "Using the dereferencing operator
|
||||
... ref_struc_2->-comp2 ...
|
||||
... ref_struc_2->comp2 ...
|
||||
... ref_struc_2->*-comp2 ... "Using the dereferencing operator
|
||||
```
|
||||
|
||||
|
||||
@@ -844,7 +844,7 @@ Bullet points on selected `%` components:
|
||||
|
||||
### Secondary Table Keys of BDEF Derived Types
|
||||
- Internal tables typed with BDEF derived types (`TYPE TABLE FOR ...`) are standard tables with an empty [primary table key](https://help.sap.com/doc/abapdocu_cp_index_htm/CLOUD/en-US/index.htm?file=abenprimary_table_key_glosry.htm) (`primary_key`).
|
||||
- Predefined [secondary table key](https://help.sap.com/doc/abapdocu_cp_index_htm/CLOUD/en-US/index.htm?file=abensecondary_table_key_glosry.htm) are available for many types.
|
||||
- Predefined [secondary table keys](https://help.sap.com/doc/abapdocu_cp_index_htm/CLOUD/en-US/index.htm?file=abensecondary_table_key_glosry.htm) are available for many types.
|
||||
- These secondary table keys are always [sorted keys](https://help.sap.com/doc/abapdocu_cp_index_htm/CLOUD/en-US/index.htm?file=abensorted_key_glosry.htm).
|
||||
- Currently available secondary table keys (as also visibile in one of the images above when using the F2 help in ADT):
|
||||
- `entity`: Includes `%key`
|
||||
|
||||
@@ -1418,9 +1418,11 @@ Enumerated variables can be declared by referring to the enumerated type.
|
||||
They can only be assigned the enumerated values defined there that exist as the content of enumerated constants or components of an enumerated structure.
|
||||
|
||||
```abap
|
||||
DATA dobj_enum TYPE enum_type.
|
||||
DATA dobj_enum_a TYPE t_enum.
|
||||
|
||||
dobj_enum = a.
|
||||
dobj_enum_a = a.
|
||||
|
||||
DATA(dobj_enum_b) = b.
|
||||
```
|
||||
|
||||
Find more information on enumerated types in the (commented code of the) cheat sheet example and [here](https://help.sap.com/doc/abapdocu_cp_index_htm/CLOUD/en-US/index.htm?file=abenenumerated_types_usage.htm).
|
||||
@@ -1494,7 +1496,7 @@ SELECT SINGLE
|
||||
INTO @DATA(wa_untyped_literals).
|
||||
|
||||
"Miscellaneous typed literals in an ABAP SQL statement
|
||||
"Note that typed literals can be specified in in read
|
||||
"Note that typed literals can be specified in read
|
||||
"positions where host variables are possible.
|
||||
DATA(tmstamp) = CONV timestamp( '20240808112517' ).
|
||||
DATA(some_string) = `Some string`.
|
||||
|
||||
@@ -37,9 +37,10 @@ ABAP cheat sheets[^1] ...
|
||||
<br>
|
||||
|
||||
- Since the ABAP cheat sheets provide information in a nutshell, they do not claim to be fully comprehensive as far as the described syntax and concepts are concerned. If you need more details, you can always consult the ABAP Keyword Documentation, for example, by choosing *F1* on a keyword in your code, or by searching directly using the online or the system-internal version.
|
||||
- Unless otherwise stated in the cheat sheets, the content of this repository is relevant for these ABAP language versions, with a focus on ABAP for Cloud Development:
|
||||
- Unless otherwise stated in the cheat sheets, the content of this repository is relevant for these ABAP language versions, with a focus on ABAP for Cloud Development ⚠️:
|
||||
- [ABAP for Cloud Development](https://help.sap.com/doc/abapdocu_latest_index_htm/latest/en-US/index.htm?file=abenabap_for_sap_cloud_glosry.htm): Restricted ABAP language scope for [ABAP Cloud](https://help.sap.com/doc/abapdocu_cp_index_htm/CLOUD/en-US/index.htm?file=abenabap_cloud_glosry.htm) → [Online version of the documentation](https://help.sap.com/doc/abapdocu_cp_index_htm/CLOUD/en-US/index.htm)
|
||||
- [Standard ABAP](https://help.sap.com/doc/abapdocu_latest_index_htm/latest/en-US/index.htm?file=abenstandard_abap_glosry.htm): Unrestricted ABAP language scope, for example, for [classic ABAP](https://help.sap.com/doc/abapdocu_cp_index_htm/CLOUD/en-US/index.htm?file=abenclassic_abap_glosry.htm) → [Online version of the documentation (latest version)](https://help.sap.com/doc/abapdocu_latest_index_htm/latest/en-US/index.htm?file=abenabap.htm)
|
||||
- Some of the embedded code snippets in the cheat sheets only display high-level code patterns, while others are fully functional and can be directly copied into an ABAP program for exploration.
|
||||
- Check the [Known Issues](#-known-issues) and [Disclaimer](#%EF%B8%8F-disclaimer).
|
||||
- The cheat sheets provide links to glossary entries and topics in the ABAP Keyword Documentation. Note that unlike the classic ABAP-only cheat sheets, in most cases these links refer to ABAP for Cloud Development.
|
||||
- [Here](https://help.sap.com/doc/abapdocu_cp_index_htm/CLOUD/en-US/index.htm?file=abenrestricted_abap_elements.htm) is an overview of the different ABAP language elements in the different ABAP versions, i.e. what is allowed in ABAP Cloud and what is not. See also the released APIs [here](https://help.sap.com/doc/abapdocu_cp_index_htm/CLOUD/en-US/index.htm?file=abenreleased_apis.htm).
|
||||
|
||||
Reference in New Issue
Block a user