Skip to content

Commit 10ac373

Browse files
committed
Fix ABAP keyword capitalization in code snippets
- odata.md: Fix data() -> DATA() and value -> VALUE in multiple locations - url.md: Fix data() -> DATA() - messages.md: Fix data() -> DATA(), value -> VALUE, into data() -> INTO DATA() - translation.md: Fix data() -> DATA(), into data() -> INTO DATA() - barcodes.md: Fix data() -> DATA() - tables.md: Fix value -> VALUE (2 instances) All ABAP keywords now consistently use uppercase as per ABAP conventions
1 parent 8cc6d7c commit 10ac373

File tree

6 files changed

+13
-13
lines changed

6 files changed

+13
-13
lines changed

docs/development/messages.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ You can directly pass common message structures, objects, and variables to the f
4848
```abap
4949
METHOD z2ui5_if_app~main.
5050
51-
MESSAGE ID `NET` TYPE `I` NUMBER `001` into data(lv_dummy).
51+
MESSAGE ID `NET` TYPE `I` NUMBER `001` INTO DATA(lv_dummy).
5252
client->message_box_display( sy ).
5353
5454
ENDMETHOD.
@@ -88,7 +88,7 @@ The message box provides basic output. For a more detailed output, use the popup
8888
```abap
8989
METHOD z2ui5_if_app~main.
9090
91-
data(lt_msg) = value bapirettab(
91+
DATA(lt_msg) = VALUE bapirettab(
9292
( type = `E` id = `MSG1` number = `001` message = `An empty Report field causes an empty XML Message to be sent` )
9393
( type = `I` id = `MSG2` number = `002` message = `Product already in use` ) ).
9494

docs/development/model/odata.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ As an example, we will use the test OData service `/sap/opu/odata/DMO/UI_FLIGHT_
1010
```abap
1111
client->follow_up_action( client->_event_client(
1212
val = z2ui5_if_client=>cs_event-set_odata_model
13-
t_arg = value #(
13+
t_arg = VALUE #(
1414
( `/sap/opu/odata/DMO/UI_FLIGHT_R_V2/` )
1515
( `FLIGHT` ) ) ) ).
1616
```
@@ -60,7 +60,7 @@ METHOD z2ui5_if_app~main.
6060
6161
client->follow_up_action( client->_event_client(
6262
val = z2ui5_if_client=>cs_event-set_odata_model
63-
t_arg = value #(
63+
t_arg = VALUE #(
6464
( `/sap/opu/odata/DMO/UI_FLIGHT_R_V2/` )
6565
( `FLIGHT` ) ) ) ).
6666
@@ -90,7 +90,7 @@ client->view_display( tab->stringify( ) ).
9090
9191
client->follow_up_action( client->_event_client(
9292
val = z2ui5_if_client=>cs_event-set_odata_model
93-
t_arg = value #(
93+
t_arg = VALUE #(
9494
( `/sap/opu/odata/DMO/API_TRAVEL_U_V2/` )
9595
( `TRAVEL` ) ) ) ).
9696
```
@@ -114,7 +114,7 @@ In SAP contexts, OData services are often enriched with additional annotations.
114114
We can use these SAP annotations in our UI5 view to utilize backend translations via the property `label`. Here’s an example:
115115
```abap
116116
117-
data(tab) = page->table(
117+
DATA(tab) = page->table(
118118
items = `{TRAVEL>/Currency}`
119119
growing = abap_true ).
120120
@@ -134,7 +134,7 @@ client->view_display( tab->stringify( ) ).
134134
135135
client->follow_up_action( client->_event_client(
136136
val = z2ui5_if_client=>cs_event-set_odata_model
137-
t_arg = value #(
137+
t_arg = VALUE #(
138138
( `/sap/opu/odata/DMO/API_TRAVEL_U_V2/` )
139139
( `TRAVEL` ) ) ) ).
140140
```

docs/development/model/tables.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ CLASS z2ui5_cl_sample_tab IMPLEMENTATION.
2222
METHOD z2ui5_if_app~main.
2323
2424
DO 100 TIMES.
25-
INSERT value #(
25+
INSERT VALUE #(
2626
count = sy-index
2727
value = `red`
2828
descr = `this is a description` ) INTO TABLE mt_itab.
@@ -50,7 +50,7 @@ Making a table editable is a simple change. You just need to switch the binding
5050
METHOD z2ui5_if_app~main.
5151
5252
DO 100 TIMES.
53-
INSERT value #(
53+
INSERT VALUE #(
5454
count = sy-index
5555
value = `red`
5656
descr = `this is a description` ) INTO TABLE mt_itab.

docs/development/specific/barcodes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Since UI5 version 1.102, the `sap.ndc.BarcodeScannerButton` control is part of t
1818
```abap
1919
METHOD z2ui5_if_app~main.
2020
21-
data(lo_view) = z2ui5_cl_xml_view=>factory(
21+
DATA(lo_view) = z2ui5_cl_xml_view=>factory(
2222
)->page(
2323
)->barcode_scanner_button(
2424
dialogtitle = `Barcode Scanner`

docs/development/specific/url.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ DATA(lv_search) = client->get( )-s_config-search.
1010
### Open a new Tab
1111
The following action opens a new tab `target blank`:
1212
```abap
13-
data(lv_url) = `https://www.abap2UI5.org`.
13+
DATA(lv_url) = `https://www.abap2UI5.org`.
1414
client->follow_up_action( client->_event_client(
1515
val = client->cs_event-open_new_tab
1616
t_arg = VALUE #( ( lv_url ) ) ) ).

docs/development/translation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Messages can be translated using the ABAP text elements, making them available i
1010
```abap
1111
METHOD z2ui5_if_app~main.
1212
13-
data(lv_msg_translated) = `this is a translatable message in english`(001).
13+
DATA(lv_msg_translated) = `this is a translatable message in english`(001).
1414
client->message_box_display( lv_msg_translated ).
1515
1616
ENDMETHOD.
@@ -21,7 +21,7 @@ Messages are translated using message classes, ensuring that translations are ma
2121
```abap
2222
METHOD z2ui5_if_app~main.
2323
24-
MESSAGE ID `NET` TYPE `I` NUMBER `001` into data(lv_msg_translated).
24+
MESSAGE ID `NET` TYPE `I` NUMBER `001` INTO DATA(lv_msg_translated).
2525
client->message_box_display( lv_msg_translated ).
2626
2727
ENDMETHOD.

0 commit comments

Comments
 (0)