Skip to content

Commit 75c77ea

Browse files
authored
Merge pull request #32 from abap2UI5/claude/fix-string-delimiters-01PgDBDWnGZWUMAJgeUbnmbi
Claude/fix string delimiters
2 parents 6fd61a6 + 8fa0903 commit 75c77ea

File tree

19 files changed

+153
-153
lines changed

19 files changed

+153
-153
lines changed

docs/advanced/fiori.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@ METHOD z2ui5_if_app~main.
7878
7979
DATA(lr_view) = z2ui5_cl_xml_view=>factory( ).
8080
DATA(lr_page) = lr_view->page( showheader = abap_false
81-
backgrounddesign = 'List' )->content( ). "Backgrounddesign "List" sets a white background color
81+
backgrounddesign = `List` )->content( ). "Backgrounddesign "List" sets a white background color
8282
83-
lr_page->text( 'TEXT' ).
83+
lr_page->text( `TEXT` ).
8484
8585
client->view_display( lr_view->stringify( ) ).
8686

docs/advanced/tools/srtti.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ CLASS z2ui5_cl_app IMPLEMENTATION.
3939
FIELD-SYMBOLS <tab> TYPE ty_t_tab.
4040
ASSIGN mr_tab->* TO <tab>.
4141
<tab> = VALUE #(
42-
( title = 'entry 01' value = 'red' descr = 'this is a description' )
43-
( title = 'entry 02' value = 'blue' descr = 'this is a description' ) ).
42+
( title = `entry 01` value = `red` descr = `this is a description` )
43+
( title = `entry 02` value = `blue` descr = `this is a description` ) ).
4444
4545
client->message_box_display( `this works out of the box` ).
4646
@@ -63,7 +63,7 @@ CLASS z2ui5_cl_app IMPLEMENTATION.
6363
6464
METHOD z2ui5_if_app~main.
6565
66-
DATA(o_struct_desc) = cl_abap_structdescr=>describe_by_name( 'USR01' ).
66+
DATA(o_struct_desc) = cl_abap_structdescr=>describe_by_name( `USR01` ).
6767
DATA(o_table_desc) = cl_abap_tabledescr=>create(
6868
p_line_type = CAST #( o_struct_desc )
6969
p_table_kind = cl_abap_tabledescr=>tablekind_std

docs/configuration/authorization.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ CLASS z2ui5_cl_launchpad_handler IMPLEMENTATION.
2727
2828
METHOD if_http_extension~handle_request.
2929
" Read the app name from the request
30-
DATA(lv_app) = server->request->get_header_field( 'APP_START' ).
31-
30+
DATA(lv_app) = server->request->get_header_field( `APP_START` ).
31+
3232
" Restrict access to a specific app
33-
IF lv_app <> 'MY_APP'.
33+
IF lv_app <> `MY_APP`.
3434
RETURN.
3535
ENDIF.
3636
@@ -54,11 +54,11 @@ CLASS z2ui5_cl_launchpad_handler IMPLEMENTATION.
5454
5555
METHOD if_http_extension~handle_request.
5656
" Read the app name from the request
57-
DATA(lv_app) = server->request->get_header_field( 'APP_START' ).
58-
57+
DATA(lv_app) = server->request->get_header_field( `APP_START` ).
58+
5959
" Perform an authorization check
60-
AUTHORITY-CHECK OBJECT 'Z_APP_AUTH'
61-
ID 'APP' FIELD lv_app.
60+
AUTHORITY-CHECK OBJECT `Z_APP_AUTH`
61+
ID `APP` FIELD lv_app.
6262
6363
IF sy-subrc <> 0.
6464
" Authorization failed, deny access

docs/development/events.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ UI5 Control properties can be used not only to display data but also to trigger
99
You can trigger backend processing when an event occurs using the `client->_event` method.
1010

1111
#### Basic
12-
As an example, we will use the `press` property of a button. To trigger events in the backend, assign the result of `client->_event('MY_EVENT_NAME')` to the relevant UI5 control property. Once triggered, the backend can retrieve the event details with `client->get( )-event`.
12+
As an example, we will use the `press` property of a button. To trigger events in the backend, assign the result of `client->_event(`MY_EVENT_NAME`)` to the relevant UI5 control property. Once triggered, the backend can retrieve the event details with `client->get( )-event`.
1313

1414
```abap
1515
METHOD z2ui5_if_app~main.

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.
@@ -58,7 +58,7 @@ ENDMETHOD.
5858
METHOD z2ui5_if_app~main.
5959
6060
DATA lt_bapiret TYPE STANDARD TABLE OF bapiret2.
61-
CALL FUNCTION 'BAPI_USER_GET_DETAIL'
61+
CALL FUNCTION `BAPI_USER_GET_DETAIL`
6262
EXPORTING
6363
username = sy-uname
6464
TABLES

docs/development/model/device.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ CLASS z2ui5_cl_sample_device IMPLEMENTATION.
6060
6161
client->view_display( lo_view->stringify( ) ).
6262
63-
IF client->get( )-event = 'POST'.
63+
IF client->get( )-event = `POST`.
6464
"process device info here...
6565
ENDIF.
6666

docs/development/model/expression_binding.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ CLASS z2ui5_cl_demo_app_max_val IMPLEMENTATION.
1919
2020
DATA(view) = z2ui5_cl_xml_view=>factory( ).
2121
view->shell( )->page(
22-
)->label( 'max value of the first two inputs'
23-
)->input( '{ type : "sap.ui.model.type.Integer",' &&
24-
' path:"' && client->_bind( val = input31
25-
path = abap_true ) && '" }'
26-
)->input( '{ type : "sap.ui.model.type.Integer",' && |\n| &&
27-
' path:"' && client->_bind( val = input32
28-
path = abap_true ) && '" }'
22+
)->label( `max value of the first two inputs`
23+
)->input( `{ type : "sap.ui.model.type.Integer",` &&
24+
` path:"` && client->_bind( val = input31
25+
path = abap_true ) && `" }`
26+
)->input( `{ type : "sap.ui.model.type.Integer",` && |\n| &&
27+
` path:"` && client->_bind( val = input32
28+
path = abap_true ) && `" }`
2929
)->input(
3030
value = '{= Math.max($' && client->_bind( input31 ) &&', $' && client->_bind( input32 ) && ') }'
3131
enabled = abap_false ).
@@ -51,13 +51,13 @@ CLASS z2ui5_cl_demo_editable IMPLEMENTATION.
5151
5252
DATA(view) = z2ui5_cl_xml_view=>factory( ).
5353
view->shell( )->page(
54-
)->label( 'only enabled when the quantity equals 500'
55-
)->input( '{ type : "sap.ui.model.type.Integer",' &&
56-
' path:"' && client->_bind( val = quantity
54+
)->label( `only enabled when the quantity equals 500`
55+
)->input( `{ type : "sap.ui.model.type.Integer",` &&
56+
` path:"` && client->_bind( val = quantity
5757
path = abap_true ) && `" }`
5858
)->input(
5959
value = product
60-
enabled = '{= 500===$' && client->_bind( quantity ) && ' }' ).
60+
enabled = `{= 500===$` && client->_bind( quantity ) && ` }` ).
6161
client->view_display( view->stringify( ) ).
6262
6363
ENDMETHOD.

docs/development/model/odata.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ DATA(tab) = z2ui5_cl_xml_view=>factory( )->page( )->table(
2222
growing = abap_true ).
2323
2424
tab->columns(
25-
)->column( )->text( 'AirportID' )->get_parent(
26-
)->column( )->text( 'Name' )->get_parent(
27-
)->column( )->text( 'City' )->get_parent(
28-
)->column( )->text( 'CountryCode' ).
25+
)->column( )->text( `AirportID` )->get_parent(
26+
)->column( )->text( `Name` )->get_parent(
27+
)->column( )->text( `City` )->get_parent(
28+
)->column( )->text( `CountryCode` ).
2929
3030
tab->items( )->column_list_item( )->cells(
3131
)->text( '{FLIGHT>AirportID}'
@@ -45,10 +45,10 @@ METHOD z2ui5_if_app~main.
4545
growing = abap_true ).
4646
4747
tab->columns(
48-
)->column( )->text( 'AirportID' )->get_parent(
49-
)->column( )->text( 'Name' )->get_parent(
50-
)->column( )->text( 'City' )->get_parent(
51-
)->column( )->text( 'CountryCode' ).
48+
)->column( )->text( `AirportID` )->get_parent(
49+
)->column( )->text( `Name` )->get_parent(
50+
)->column( )->text( `City` )->get_parent(
51+
)->column( )->text( `CountryCode` ).
5252
5353
tab->items( )->column_list_item( )->cells(
5454
)->text( '{FLIGHT>AirportID}'
@@ -75,10 +75,10 @@ DATA(tab) = z2ui5_cl_xml_view=>factory( )->page( )->table(
7575
growing = abap_true ).
7676
7777
tab->columns(
78-
)->column( )->text( 'TravelID' )->get_parent(
79-
)->column( )->text( 'BookingID' )->get_parent(
80-
)->column( )->text( 'BookingSupplementID' )->get_parent(
81-
)->column( )->text( 'SupplementID' )->get_parent( ).
78+
)->column( )->text( `TravelID` )->get_parent(
79+
)->column( )->text( `BookingID` )->get_parent(
80+
)->column( )->text( `BookingSupplementID` )->get_parent(
81+
)->column( )->text( `SupplementID` )->get_parent( ).
8282
8383
tab->items( )->column_list_item( )->cells(
8484
)->text( '{TRAVEL>TravelID}'

docs/development/model/tables.md

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,16 @@ CLASS z2ui5_cl_sample_tab IMPLEMENTATION.
2424
DO 100 TIMES.
2525
INSERT value #(
2626
count = sy-index
27-
value = 'red'
28-
descr = 'this is a description' ) INTO TABLE mt_itab.
27+
value = `red`
28+
descr = `this is a description` ) INTO TABLE mt_itab.
2929
ENDDO.
3030
3131
DATA(tab) = z2ui5_cl_xml_view=>factory( )->page(
3232
)->table( client->_bind( mt_itab ) ).
3333
tab->columns(
34-
)->column( )->text( 'Counter' )->get_parent(
35-
)->column( )->text( 'Value' )->get_parent(
36-
)->column( )->text( 'Description' ).
34+
)->column( )->text( `Counter` )->get_parent(
35+
)->column( )->text( `Value` )->get_parent(
36+
)->column( )->text( `Description` ).
3737
tab->items( )->column_list_item( )->cells(
3838
)->text( '{COUNT}'
3939
)->text( '{VALUE}'
@@ -52,16 +52,16 @@ Making a table editable is a simple change. You just need to switch the binding
5252
DO 100 TIMES.
5353
INSERT value #(
5454
count = sy-index
55-
value = 'red'
56-
descr = 'this is a description' ) INTO TABLE mt_itab.
55+
value = `red`
56+
descr = `this is a description` ) INTO TABLE mt_itab.
5757
ENDDO.
5858
5959
DATA(tab) = z2ui5_cl_xml_view=>factory( )->page(
6060
)->table( client->_bind_edit( mt_itab ) ).
6161
tab->columns(
62-
)->column( )->text( 'Count' )->get_parent(
63-
)->column( )->text( 'Value' )->get_parent(
64-
)->column( )->text( 'Description' ).
62+
)->column( )->text( `Count` )->get_parent(
63+
)->column( )->text( `Value` )->get_parent(
64+
)->column( )->text( `Description` ).
6565
tab->items( )->column_list_item( )->cells(
6666
)->text( '{COUNT}'
6767
)->text( '{VALUE}'
@@ -105,27 +105,27 @@ CLASS z2ui5_cl_sample_tree IMPLEMENTATION.
105105
METHOD z2ui5_if_app~main.
106106
107107
prodh_nodes = VALUE #( (
108-
text = 'Machines'
109-
prodh = '00100'
108+
text = `Machines`
109+
prodh = `00100`
110110
nodes = VALUE #( (
111-
text = 'Pumps'
112-
prodh = '0010000100'
111+
text = `Pumps`
112+
prodh = `0010000100`
113113
nodes = VALUE #( (
114-
text = 'Pump 001'
115-
prodh = '001000010000000100' ) (
116-
text = 'Pump 002'
117-
prodh = '001000010000000105' ) )
114+
text = `Pump 001`
115+
prodh = `001000010000000100` ) (
116+
text = `Pump 002`
117+
prodh = `001000010000000105` ) )
118118
) ) ) (
119-
text = 'Paints'
120-
prodh = '00110'
119+
text = `Paints`
120+
prodh = `00110`
121121
nodes = VALUE #( (
122-
text = 'Gloss paints'
123-
prodh = '0011000105'
122+
text = `Gloss paints`
123+
prodh = `0011000105`
124124
nodes = VALUE #( (
125-
text = 'Paint 001'
126-
prodh = '001100010500000100' ) (
127-
text = 'Paint 002'
128-
prodh = '001100010500000105' )
125+
text = `Paint 001`
126+
prodh = `001100010500000100` ) (
127+
text = `Paint 002`
128+
prodh = `001100010500000105` )
129129
) ) ) ) ).
130130
131131
DATA(tree) = z2ui5_cl_xml_view=>factory( )->page(
@@ -163,9 +163,9 @@ CLASS z2ui5_cl_sample_nested_structures IMPLEMENTATION.
163163
METHOD z2ui5_if_app~main.
164164
165165
mt_itab = VALUE #(
166-
( product = 'table' s_details = VALUE #( create_date = `01.01.2023` create_by = `Peter` ) )
167-
( product = 'chair' s_details = VALUE #( create_date = `25.10.2022` create_by = `Frank` ) )
168-
( product = 'sofa' s_details = VALUE #( create_date = `12.03.2024` create_by = `George` ) ) ).
166+
( product = `table` s_details = VALUE #( create_date = `01.01.2023` create_by = `Peter` ) )
167+
( product = `chair` s_details = VALUE #( create_date = `25.10.2022` create_by = `Frank` ) )
168+
( product = `sofa` s_details = VALUE #( create_date = `12.03.2024` create_by = `George` ) ) ).
169169
170170
DATA(tab) = z2ui5_cl_xml_view=>factory( )->table( client->_bind( mt_itab ) ).
171171

docs/development/navigation/app_state.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ CLASS z2ui5_cl_sample_app_state IMPLEMENTATION.
2323
IF client->check_on_navigated( ).
2424
DATA(view) = z2ui5_cl_xml_view=>factory( ).
2525
client->view_display(
26-
view->label( 'quantity'
26+
view->label( `quantity`
2727
)->input( client->_bind_edit( mv_quantity )
2828
)->button(
2929
text = `post with state`

0 commit comments

Comments
 (0)