Skip to content

Commit ac25647

Browse files
committed
Complete string syntax cleanup: Replace all remaining single quotes with backticks
- Replace 'text' with `text` in all remaining ABAP code snippets - Updated files: formatter.md, barcodes.md, logging.md, translation.md, cds.md, tables.md, app_state.md, share.md - Ensures consistency with Clean ABAP style guide throughout documentation
1 parent 798f4c9 commit ac25647

File tree

8 files changed

+101
-101
lines changed

8 files changed

+101
-101
lines changed

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`

docs/development/navigation/share.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ CLASS z2ui5_cl_sample_share IMPLEMENTATION.
1919
IF client->check_on_navigated( ).
2020
DATA(view) = z2ui5_cl_xml_view=>factory( ).
2121
client->view_display( view->shell(
22-
)->label( 'quantity'
22+
)->label( `quantity`
2323
)->input( client->_bind_edit( mv_quantity )
2424
)->button(
2525
text = `share`

docs/development/specific/barcodes.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -66,19 +66,19 @@ CLASS z2ui5_cl_sample_focus IMPLEMENTATION.
6666
METHOD z2ui5_if_app~main.
6767
6868
IF client->check_on_init( ).
69-
focus_id = 'id1'.
69+
focus_id = `id1`.
7070
7171
DATA(page) = z2ui5_cl_xml_view=>factory( )->page( ).
7272
page->simple_form(
73-
)->content( ns = 'form'
74-
)->label( 'One'
73+
)->content( ns = `form`
74+
)->label( `One`
7575
)->input(
76-
id = 'id1'
76+
id = `id1`
7777
value = client->_bind_edit( one )
7878
submit = client->_event( |one_enter| )
79-
)->label( 'Two'
79+
)->label( `Two`
8080
)->input(
81-
id = 'id2'
81+
id = `id2`
8282
value = client->_bind_edit( two )
8383
submit = client->_event( |two_enter| ) ).
8484
@@ -89,10 +89,10 @@ CLASS z2ui5_cl_sample_focus IMPLEMENTATION.
8989
9090
CASE client->get( )-event.
9191
WHEN `one_enter`.
92-
focus_id = 'id2'.
92+
focus_id = `id2`.
9393
client->view_model_update( ).
9494
WHEN `two_enter`.
95-
focus_id = 'id1'.
95+
focus_id = `id1`.
9696
client->view_model_update( ).
9797
ENDCASE.
9898

docs/development/specific/cds.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ CLASS z2ui5_cl_sample_cds IMPLEMENTATION.
2727
DATA(view) = z2ui5_cl_xml_view=>factory( )->page( ).
2828
DATA(table) = view->table( client->_bind( mt_salesorder ) ).
2929
table->columns(
30-
)->column( )->text( 'SalesOrder' )->get_parent(
31-
)->column( )->text( 'SalesOrderType' )->get_parent(
32-
)->column( )->text( 'SalesOrganization' ).
30+
)->column( )->text( `SalesOrder` )->get_parent(
31+
)->column( )->text( `SalesOrderType` )->get_parent(
32+
)->column( )->text( `SalesOrganization` ).
3333
3434
table->items( )->column_list_item( )->cells(
3535
)->text( '{SALESORDER}'
@@ -68,9 +68,9 @@ CLASS z2ui5_cl_sample_eml_read IMPLEMENTATION.
6868
DATA(view) = z2ui5_cl_xml_view=>factory( )->page( ).
6969
DATA(table) = view->table( client->_bind( mt_salesorder ) ).
7070
table->columns(
71-
)->column( )->text( 'SalesOrder' )->get_parent(
72-
)->column( )->text( 'SalesOrderType' )->get_parent(
73-
)->column( )->text( 'SalesOrganization' ).
71+
)->column( )->text( `SalesOrder` )->get_parent(
72+
)->column( )->text( `SalesOrderType` )->get_parent(
73+
)->column( )->text( `SalesOrganization` ).
7474
7575
table->items( )->column_list_item( )->cells(
7676
)->text( '{SALESORDER}'
@@ -97,13 +97,13 @@ METHOD z2ui5_if_app~main.
9797
distributionchannel
9898
organizationdivision
9999
soldtoparty )
100-
WITH VALUE #( ( %cid = '0001'
100+
WITH VALUE #( ( %cid = `0001`
101101
%data = VALUE #(
102-
SalesOrderType = 'TA'
103-
SalesOrganization = '1010'
104-
DistributionChannel = '10'
105-
OrganizationDivision = '00'
106-
SoldToParty = '0033500056' ) ) )
102+
SalesOrderType = `TA`
103+
SalesOrganization = `1010`
104+
DistributionChannel = `10`
105+
OrganizationDivision = `00`
106+
SoldToParty = `0033500056` ) ) )
107107
MAPPED DATA(ls_mapped)
108108
FAILED DATA(ls_failed)
109109
REPORTED DATA(ls_reported_modify).

docs/development/specific/formatter.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ CLASS z2ui5_cl_demo_app_067 IMPLEMENTATION.
2828
IF check_initialized = abap_false.
2929
check_initialized = abap_true.
3030
31-
numeric = '000000000012'.
32-
amount = '123456789.123'.
31+
numeric = `000000000012`.
32+
amount = `123456789.123`.
3333
currency = `USD`.
3434
3535
ENDIF.
@@ -40,24 +40,24 @@ CLASS z2ui5_cl_demo_app_067 IMPLEMENTATION.
4040
ENDCASE.
4141
4242
DATA(page) = z2ui5_cl_xml_view=>factory( )->shell(
43-
)->page( title = 'abap2UI5 - Currency Format'
43+
)->page( title = `abap2UI5 - Currency Format`
4444
navbuttonpress = client->_event( |BACK| )
4545
shownavbutton = xsdbool( client->get( )-s_draft-id_prev_app_stack IS NOT INITIAL ) ).
4646
47-
page->simple_form( title = 'Currency'
47+
page->simple_form( title = `Currency`
4848
editable = abap_true
49-
)->content( 'form'
50-
)->title( 'Input'
51-
)->label( 'Documentation'
52-
)->link( text = 'https://sapui5.hana.ondemand.com/#/entity/sap.ui.model.type.Currency'
53-
href = 'https://sapui5.hana.ondemand.com/#/entity/sap.ui.model.type.Currency'
54-
)->label( 'One field'
49+
)->content( `form`
50+
)->title( `Input`
51+
)->label( `Documentation`
52+
)->link( text = `https://sapui5.hana.ondemand.com/#/entity/sap.ui.model.type.Currency`
53+
href = `https://sapui5.hana.ondemand.com/#/entity/sap.ui.model.type.Currency`
54+
)->label( `One field`
5555
)->input(
5656
|\{ parts: [ '{ client->_bind_edit( val = amount
5757
path = abap_true ) }', '{ client->_bind_edit(
5858
val = currency
5959
path = abap_true ) }'], type: 'sap.ui.model.type.Currency' \}|
60-
)->label( 'Two field'
60+
)->label( `Two field`
6161
)->input(
6262
|\{ parts: [ '{ client->_bind_edit( val = amount
6363
path = abap_true ) }', '{ client->_bind_edit(
@@ -68,19 +68,19 @@ CLASS z2ui5_cl_demo_app_067 IMPLEMENTATION.
6868
path = abap_true ) }', '{ client->_bind_edit(
6969
val = currency
7070
path = abap_true ) }'], type: 'sap.ui.model.type.Currency' , formatOptions: \{showNumber: false\} \}|
71-
)->label( 'Default'
71+
)->label( `Default`
7272
)->text(
7373
|\{ parts: [ '{ client->_bind_edit( val = amount
7474
path = abap_true ) }', '{ client->_bind_edit(
7575
val = currency
7676
path = abap_true ) }'], type: 'sap.ui.model.type.Currency' \}|
77-
)->label( 'preserveDecimals:false'
77+
)->label( `preserveDecimals:false`
7878
)->text( |\{ parts: [ '{ client->_bind_edit( val = amount
7979
path = abap_true ) }', '| && client->_bind_edit(
8080
val = currency
8181
path = abap_true ) &&
8282
|'], type: 'sap.ui.model.type.Currency' , formatOptions: \{ preserveDecimals : false \} \}|
83-
)->label( 'currencyCode:false'
83+
)->label( `currencyCode:false`
8484
)->text( |\{ parts: [ '{ client->_bind_edit( val = amount
8585
path = abap_true ) }', '| && client->_bind_edit(
8686
val = currency
@@ -102,14 +102,14 @@ CLASS z2ui5_cl_demo_app_067 IMPLEMENTATION.
102102
)->button( text = `send`
103103
press = client->_event( `BUTTON` ) ).
104104
105-
page->simple_form( title = 'No Zeros'
105+
page->simple_form( title = `No Zeros`
106106
editable = abap_true
107-
)->content( 'form'
108-
)->title( 'Input'
109-
)->label( 'Documentation'
110-
)->link( text = 'https://sapui5.hana.ondemand.com/sdk/#/api/sap.ui.model.odata.type.String%23methods/formatValue'
111-
href = 'https://sapui5.hana.ondemand.com/sdk/#/api/sap.ui.model.odata.type.String%23methods/formatValue'
112-
)->label( 'Numeric'
107+
)->content( `form`
108+
)->title( `Input`
109+
)->label( `Documentation`
110+
)->link( text = `https://sapui5.hana.ondemand.com/sdk/#/api/sap.ui.model.odata.type.String%23methods/formatValue`
111+
href = `https://sapui5.hana.ondemand.com/sdk/#/api/sap.ui.model.odata.type.String%23methods/formatValue`
112+
)->label( `Numeric`
113113
)->input( value = client->_bind_edit( val = numeric )
114114
115115
)->label( `Without leading Zeros`

docs/development/specific/logging.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ In ABAP classic, you can use the classic BAL function modules and display the BA
1111
METHOD z2ui5_if_app~main.
1212
1313
DATA(lt_bal) = VALUE bal_t_msgr(
14-
( msgid = 'Z001' msgno = '001' msgty = 'S' time_stmp = '21354' msgnumber = '01' )
15-
( msgid = 'Z001' msgno = '001' msgty = 'S' time_stmp = '21354' msgnumber = '02' ) ).
14+
( msgid = `Z001` msgno = `001` msgty = `S` time_stmp = `21354` msgnumber = `01` )
15+
( msgid = `Z001` msgno = `001` msgty = `S` time_stmp = `21354` msgnumber = `02` ) ).
1616
1717
client->nav_app_call( z2ui5_cl_pop_messages=>factory( lt_bal ) ).
1818
@@ -27,17 +27,17 @@ METHOD z2ui5_if_app~main.
2727
DATA(lo_log) = cl_bali_log=>create( ).
2828
DATA(lo_msg) = cl_bali_message_setter=>create(
2929
severity = if_bali_constants=>c_severity_status
30-
id = 'DEMO_LOG'
31-
number = '002'
30+
id = `DEMO_LOG`
31+
number = `002`
3232
variable_1 = `username` ).
3333
lo_log->add_item( lo_msg ).
3434
35-
DATA(lo_bapi) = cl_bali_message_setter=>create_from_bapiret2(
36-
VALUE #(
37-
type = 'E'
38-
id = 'DEMO_LOG'
39-
number = '002'
40-
message_v1 = 'Dummy' ) ).
35+
DATA(lo_bapi) = cl_bali_message_setter=>create_from_bapiret2(
36+
VALUE #(
37+
type = `E`
38+
id = `DEMO_LOG`
39+
number = `002`
40+
message_v1 = `Dummy` ) ).
4141
lo_log->add_item( lo_bapi ).
4242
4343
client->nav_app_call( z2ui5_cl_pop_messages=>factory( lo_log ) ).
@@ -50,9 +50,9 @@ You also have the option to use the fantastic open-source project [**abap-logger
5050
```abap
5151
METHOD z2ui5_if_app~main.
5252
53-
DATA(log) = zcl_logger_factory=>create_log( desc = 'ABAP Logger' ).
54-
log->e( 'This is an error...' ).
55-
log->s( 'This is a success message...' ).
53+
DATA(log) = zcl_logger_factory=>create_log( desc = `ABAP Logger` ).
54+
log->e( `This is an error...` ).
55+
log->s( `This is a success message...` ).
5656
5757
client->nav_app_call( z2ui5_cl_pop_messages=>factory( log ) ).
5858
@@ -65,8 +65,8 @@ Compared to message classes, BAL logs include more detailed information, such as
6565
```abap
6666
METHOD z2ui5_if_app~main.
6767
68-
DATA(lo_log) = zcl_logger_factory=>create_log( desc = 'ABAP Logger' ).
69-
log->e( 'This is an error...' ).
68+
DATA(lo_log) = zcl_logger_factory=>create_log( desc = `ABAP Logger` ).
69+
log->e( `This is an error...` ).
7070
7171
client->nav_app_call( z2ui5_cl_pop_bal=>factory( lo_log ) ).
7272

0 commit comments

Comments
 (0)