diff --git a/docs/advanced/fiori.md b/docs/advanced/fiori.md index de1b1d2..135ea0e 100644 --- a/docs/advanced/fiori.md +++ b/docs/advanced/fiori.md @@ -78,9 +78,9 @@ METHOD z2ui5_if_app~main. DATA(lr_view) = z2ui5_cl_xml_view=>factory( ). DATA(lr_page) = lr_view->page( showheader = abap_false - backgrounddesign = 'List' )->content( ). "Backgrounddesign "List" sets a white background color + backgrounddesign = `List` )->content( ). "Backgrounddesign "List" sets a white background color - lr_page->text( 'TEXT' ). + lr_page->text( `TEXT` ). client->view_display( lr_view->stringify( ) ). diff --git a/docs/advanced/tools/srtti.md b/docs/advanced/tools/srtti.md index c7d140b..73975b0 100644 --- a/docs/advanced/tools/srtti.md +++ b/docs/advanced/tools/srtti.md @@ -39,8 +39,8 @@ CLASS z2ui5_cl_app IMPLEMENTATION. FIELD-SYMBOLS TYPE ty_t_tab. ASSIGN mr_tab->* TO . = VALUE #( - ( title = 'entry 01' value = 'red' descr = 'this is a description' ) - ( title = 'entry 02' value = 'blue' descr = 'this is a description' ) ). + ( title = `entry 01` value = `red` descr = `this is a description` ) + ( title = `entry 02` value = `blue` descr = `this is a description` ) ). client->message_box_display( `this works out of the box` ). @@ -63,7 +63,7 @@ CLASS z2ui5_cl_app IMPLEMENTATION. METHOD z2ui5_if_app~main. - DATA(o_struct_desc) = cl_abap_structdescr=>describe_by_name( 'USR01' ). + DATA(o_struct_desc) = cl_abap_structdescr=>describe_by_name( `USR01` ). DATA(o_table_desc) = cl_abap_tabledescr=>create( p_line_type = CAST #( o_struct_desc ) p_table_kind = cl_abap_tabledescr=>tablekind_std diff --git a/docs/configuration/authorization.md b/docs/configuration/authorization.md index 0596ac4..cb39508 100644 --- a/docs/configuration/authorization.md +++ b/docs/configuration/authorization.md @@ -27,10 +27,10 @@ CLASS z2ui5_cl_launchpad_handler IMPLEMENTATION. METHOD if_http_extension~handle_request. " Read the app name from the request - DATA(lv_app) = server->request->get_header_field( 'APP_START' ). - + DATA(lv_app) = server->request->get_header_field( `APP_START` ). + " Restrict access to a specific app - IF lv_app <> 'MY_APP'. + IF lv_app <> `MY_APP`. RETURN. ENDIF. @@ -54,11 +54,11 @@ CLASS z2ui5_cl_launchpad_handler IMPLEMENTATION. METHOD if_http_extension~handle_request. " Read the app name from the request - DATA(lv_app) = server->request->get_header_field( 'APP_START' ). - + DATA(lv_app) = server->request->get_header_field( `APP_START` ). + " Perform an authorization check - AUTHORITY-CHECK OBJECT 'Z_APP_AUTH' - ID 'APP' FIELD lv_app. + AUTHORITY-CHECK OBJECT `Z_APP_AUTH` + ID `APP` FIELD lv_app. IF sy-subrc <> 0. " Authorization failed, deny access diff --git a/docs/development/events.md b/docs/development/events.md index 90a8d2a..3180cb2 100644 --- a/docs/development/events.md +++ b/docs/development/events.md @@ -9,7 +9,7 @@ UI5 Control properties can be used not only to display data but also to trigger You can trigger backend processing when an event occurs using the `client->_event` method. #### Basic -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`. +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`. ```abap METHOD z2ui5_if_app~main. diff --git a/docs/development/messages.md b/docs/development/messages.md index 6b9cba1..cd68a7c 100644 --- a/docs/development/messages.md +++ b/docs/development/messages.md @@ -48,7 +48,7 @@ You can directly pass common message structures, objects, and variables to the f ```abap METHOD z2ui5_if_app~main. - MESSAGE ID 'NET' TYPE 'I' NUMBER '001' into data(lv_dummy). + MESSAGE ID `NET` TYPE `I` NUMBER `001` into data(lv_dummy). client->message_box_display( sy ). ENDMETHOD. @@ -58,7 +58,7 @@ ENDMETHOD. METHOD z2ui5_if_app~main. DATA lt_bapiret TYPE STANDARD TABLE OF bapiret2. - CALL FUNCTION 'BAPI_USER_GET_DETAIL' + CALL FUNCTION `BAPI_USER_GET_DETAIL` EXPORTING username = sy-uname TABLES diff --git a/docs/development/model/device.md b/docs/development/model/device.md index 94ea2c2..d800a40 100644 --- a/docs/development/model/device.md +++ b/docs/development/model/device.md @@ -60,7 +60,7 @@ CLASS z2ui5_cl_sample_device IMPLEMENTATION. client->view_display( lo_view->stringify( ) ). - IF client->get( )-event = 'POST'. + IF client->get( )-event = `POST`. "process device info here... ENDIF. diff --git a/docs/development/model/expression_binding.md b/docs/development/model/expression_binding.md index 2c88f51..ec3b483 100644 --- a/docs/development/model/expression_binding.md +++ b/docs/development/model/expression_binding.md @@ -19,13 +19,13 @@ CLASS z2ui5_cl_demo_app_max_val IMPLEMENTATION. DATA(view) = z2ui5_cl_xml_view=>factory( ). view->shell( )->page( - )->label( 'max value of the first two inputs' - )->input( '{ type : "sap.ui.model.type.Integer",' && - ' path:"' && client->_bind( val = input31 - path = abap_true ) && '" }' - )->input( '{ type : "sap.ui.model.type.Integer",' && |\n| && - ' path:"' && client->_bind( val = input32 - path = abap_true ) && '" }' + )->label( `max value of the first two inputs` + )->input( `{ type : "sap.ui.model.type.Integer",` && + ` path:"` && client->_bind( val = input31 + path = abap_true ) && `" }` + )->input( `{ type : "sap.ui.model.type.Integer",` && |\n| && + ` path:"` && client->_bind( val = input32 + path = abap_true ) && `" }` )->input( value = '{= Math.max($' && client->_bind( input31 ) &&', $' && client->_bind( input32 ) && ') }' enabled = abap_false ). @@ -51,13 +51,13 @@ CLASS z2ui5_cl_demo_editable IMPLEMENTATION. DATA(view) = z2ui5_cl_xml_view=>factory( ). view->shell( )->page( - )->label( 'only enabled when the quantity equals 500' - )->input( '{ type : "sap.ui.model.type.Integer",' && - ' path:"' && client->_bind( val = quantity + )->label( `only enabled when the quantity equals 500` + )->input( `{ type : "sap.ui.model.type.Integer",` && + ` path:"` && client->_bind( val = quantity path = abap_true ) && `" }` )->input( value = product - enabled = '{= 500===$' && client->_bind( quantity ) && ' }' ). + enabled = `{= 500===$` && client->_bind( quantity ) && ` }` ). client->view_display( view->stringify( ) ). ENDMETHOD. diff --git a/docs/development/model/odata.md b/docs/development/model/odata.md index aa901db..57de9fa 100644 --- a/docs/development/model/odata.md +++ b/docs/development/model/odata.md @@ -22,10 +22,10 @@ DATA(tab) = z2ui5_cl_xml_view=>factory( )->page( )->table( growing = abap_true ). tab->columns( - )->column( )->text( 'AirportID' )->get_parent( - )->column( )->text( 'Name' )->get_parent( - )->column( )->text( 'City' )->get_parent( - )->column( )->text( 'CountryCode' ). + )->column( )->text( `AirportID` )->get_parent( + )->column( )->text( `Name` )->get_parent( + )->column( )->text( `City` )->get_parent( + )->column( )->text( `CountryCode` ). tab->items( )->column_list_item( )->cells( )->text( '{FLIGHT>AirportID}' @@ -45,10 +45,10 @@ METHOD z2ui5_if_app~main. growing = abap_true ). tab->columns( - )->column( )->text( 'AirportID' )->get_parent( - )->column( )->text( 'Name' )->get_parent( - )->column( )->text( 'City' )->get_parent( - )->column( )->text( 'CountryCode' ). + )->column( )->text( `AirportID` )->get_parent( + )->column( )->text( `Name` )->get_parent( + )->column( )->text( `City` )->get_parent( + )->column( )->text( `CountryCode` ). tab->items( )->column_list_item( )->cells( )->text( '{FLIGHT>AirportID}' @@ -75,10 +75,10 @@ DATA(tab) = z2ui5_cl_xml_view=>factory( )->page( )->table( growing = abap_true ). tab->columns( - )->column( )->text( 'TravelID' )->get_parent( - )->column( )->text( 'BookingID' )->get_parent( - )->column( )->text( 'BookingSupplementID' )->get_parent( - )->column( )->text( 'SupplementID' )->get_parent( ). + )->column( )->text( `TravelID` )->get_parent( + )->column( )->text( `BookingID` )->get_parent( + )->column( )->text( `BookingSupplementID` )->get_parent( + )->column( )->text( `SupplementID` )->get_parent( ). tab->items( )->column_list_item( )->cells( )->text( '{TRAVEL>TravelID}' diff --git a/docs/development/model/tables.md b/docs/development/model/tables.md index 2bdab9c..9e8cf87 100644 --- a/docs/development/model/tables.md +++ b/docs/development/model/tables.md @@ -24,16 +24,16 @@ CLASS z2ui5_cl_sample_tab IMPLEMENTATION. DO 100 TIMES. INSERT value #( count = sy-index - value = 'red' - descr = 'this is a description' ) INTO TABLE mt_itab. + value = `red` + descr = `this is a description` ) INTO TABLE mt_itab. ENDDO. DATA(tab) = z2ui5_cl_xml_view=>factory( )->page( )->table( client->_bind( mt_itab ) ). tab->columns( - )->column( )->text( 'Counter' )->get_parent( - )->column( )->text( 'Value' )->get_parent( - )->column( )->text( 'Description' ). + )->column( )->text( `Counter` )->get_parent( + )->column( )->text( `Value` )->get_parent( + )->column( )->text( `Description` ). tab->items( )->column_list_item( )->cells( )->text( '{COUNT}' )->text( '{VALUE}' @@ -52,16 +52,16 @@ Making a table editable is a simple change. You just need to switch the binding DO 100 TIMES. INSERT value #( count = sy-index - value = 'red' - descr = 'this is a description' ) INTO TABLE mt_itab. + value = `red` + descr = `this is a description` ) INTO TABLE mt_itab. ENDDO. DATA(tab) = z2ui5_cl_xml_view=>factory( )->page( )->table( client->_bind_edit( mt_itab ) ). tab->columns( - )->column( )->text( 'Count' )->get_parent( - )->column( )->text( 'Value' )->get_parent( - )->column( )->text( 'Description' ). + )->column( )->text( `Count` )->get_parent( + )->column( )->text( `Value` )->get_parent( + )->column( )->text( `Description` ). tab->items( )->column_list_item( )->cells( )->text( '{COUNT}' )->text( '{VALUE}' @@ -105,27 +105,27 @@ CLASS z2ui5_cl_sample_tree IMPLEMENTATION. METHOD z2ui5_if_app~main. prodh_nodes = VALUE #( ( - text = 'Machines' - prodh = '00100' + text = `Machines` + prodh = `00100` nodes = VALUE #( ( - text = 'Pumps' - prodh = '0010000100' + text = `Pumps` + prodh = `0010000100` nodes = VALUE #( ( - text = 'Pump 001' - prodh = '001000010000000100' ) ( - text = 'Pump 002' - prodh = '001000010000000105' ) ) + text = `Pump 001` + prodh = `001000010000000100` ) ( + text = `Pump 002` + prodh = `001000010000000105` ) ) ) ) ) ( - text = 'Paints' - prodh = '00110' + text = `Paints` + prodh = `00110` nodes = VALUE #( ( - text = 'Gloss paints' - prodh = '0011000105' + text = `Gloss paints` + prodh = `0011000105` nodes = VALUE #( ( - text = 'Paint 001' - prodh = '001100010500000100' ) ( - text = 'Paint 002' - prodh = '001100010500000105' ) + text = `Paint 001` + prodh = `001100010500000100` ) ( + text = `Paint 002` + prodh = `001100010500000105` ) ) ) ) ) ). DATA(tree) = z2ui5_cl_xml_view=>factory( )->page( @@ -163,9 +163,9 @@ CLASS z2ui5_cl_sample_nested_structures IMPLEMENTATION. METHOD z2ui5_if_app~main. mt_itab = VALUE #( - ( product = 'table' s_details = VALUE #( create_date = `01.01.2023` create_by = `Peter` ) ) - ( product = 'chair' s_details = VALUE #( create_date = `25.10.2022` create_by = `Frank` ) ) - ( product = 'sofa' s_details = VALUE #( create_date = `12.03.2024` create_by = `George` ) ) ). + ( product = `table` s_details = VALUE #( create_date = `01.01.2023` create_by = `Peter` ) ) + ( product = `chair` s_details = VALUE #( create_date = `25.10.2022` create_by = `Frank` ) ) + ( product = `sofa` s_details = VALUE #( create_date = `12.03.2024` create_by = `George` ) ) ). DATA(tab) = z2ui5_cl_xml_view=>factory( )->table( client->_bind( mt_itab ) ). diff --git a/docs/development/navigation/app_state.md b/docs/development/navigation/app_state.md index 58f212c..a65325c 100644 --- a/docs/development/navigation/app_state.md +++ b/docs/development/navigation/app_state.md @@ -23,7 +23,7 @@ CLASS z2ui5_cl_sample_app_state IMPLEMENTATION. IF client->check_on_navigated( ). DATA(view) = z2ui5_cl_xml_view=>factory( ). client->view_display( - view->label( 'quantity' + view->label( `quantity` )->input( client->_bind_edit( mv_quantity ) )->button( text = `post with state` diff --git a/docs/development/navigation/share.md b/docs/development/navigation/share.md index 7237d42..a15e728 100644 --- a/docs/development/navigation/share.md +++ b/docs/development/navigation/share.md @@ -19,7 +19,7 @@ CLASS z2ui5_cl_sample_share IMPLEMENTATION. IF client->check_on_navigated( ). DATA(view) = z2ui5_cl_xml_view=>factory( ). client->view_display( view->shell( - )->label( 'quantity' + )->label( `quantity` )->input( client->_bind_edit( mv_quantity ) )->button( text = `share` diff --git a/docs/development/specific/barcodes.md b/docs/development/specific/barcodes.md index 5cf73ce..6598886 100644 --- a/docs/development/specific/barcodes.md +++ b/docs/development/specific/barcodes.md @@ -66,19 +66,19 @@ CLASS z2ui5_cl_sample_focus IMPLEMENTATION. METHOD z2ui5_if_app~main. IF client->check_on_init( ). - focus_id = 'id1'. + focus_id = `id1`. DATA(page) = z2ui5_cl_xml_view=>factory( )->page( ). page->simple_form( - )->content( ns = 'form' - )->label( 'One' + )->content( ns = `form` + )->label( `One` )->input( - id = 'id1' + id = `id1` value = client->_bind_edit( one ) submit = client->_event( |one_enter| ) - )->label( 'Two' + )->label( `Two` )->input( - id = 'id2' + id = `id2` value = client->_bind_edit( two ) submit = client->_event( |two_enter| ) ). @@ -89,10 +89,10 @@ CLASS z2ui5_cl_sample_focus IMPLEMENTATION. CASE client->get( )-event. WHEN `one_enter`. - focus_id = 'id2'. + focus_id = `id2`. client->view_model_update( ). WHEN `two_enter`. - focus_id = 'id1'. + focus_id = `id1`. client->view_model_update( ). ENDCASE. diff --git a/docs/development/specific/cds.md b/docs/development/specific/cds.md index 0fc7403..a3ba938 100644 --- a/docs/development/specific/cds.md +++ b/docs/development/specific/cds.md @@ -27,9 +27,9 @@ CLASS z2ui5_cl_sample_cds IMPLEMENTATION. DATA(view) = z2ui5_cl_xml_view=>factory( )->page( ). DATA(table) = view->table( client->_bind( mt_salesorder ) ). table->columns( - )->column( )->text( 'SalesOrder' )->get_parent( - )->column( )->text( 'SalesOrderType' )->get_parent( - )->column( )->text( 'SalesOrganization' ). + )->column( )->text( `SalesOrder` )->get_parent( + )->column( )->text( `SalesOrderType` )->get_parent( + )->column( )->text( `SalesOrganization` ). table->items( )->column_list_item( )->cells( )->text( '{SALESORDER}' @@ -68,9 +68,9 @@ CLASS z2ui5_cl_sample_eml_read IMPLEMENTATION. DATA(view) = z2ui5_cl_xml_view=>factory( )->page( ). DATA(table) = view->table( client->_bind( mt_salesorder ) ). table->columns( - )->column( )->text( 'SalesOrder' )->get_parent( - )->column( )->text( 'SalesOrderType' )->get_parent( - )->column( )->text( 'SalesOrganization' ). + )->column( )->text( `SalesOrder` )->get_parent( + )->column( )->text( `SalesOrderType` )->get_parent( + )->column( )->text( `SalesOrganization` ). table->items( )->column_list_item( )->cells( )->text( '{SALESORDER}' @@ -97,13 +97,13 @@ METHOD z2ui5_if_app~main. distributionchannel organizationdivision soldtoparty ) - WITH VALUE #( ( %cid = '0001' + WITH VALUE #( ( %cid = `0001` %data = VALUE #( - SalesOrderType = 'TA' - SalesOrganization = '1010' - DistributionChannel = '10' - OrganizationDivision = '00' - SoldToParty = '0033500056' ) ) ) + SalesOrderType = `TA` + SalesOrganization = `1010` + DistributionChannel = `10` + OrganizationDivision = `00` + SoldToParty = `0033500056` ) ) ) MAPPED DATA(ls_mapped) FAILED DATA(ls_failed) REPORTED DATA(ls_reported_modify). diff --git a/docs/development/specific/formatter.md b/docs/development/specific/formatter.md index 8a44211..17479ed 100644 --- a/docs/development/specific/formatter.md +++ b/docs/development/specific/formatter.md @@ -28,8 +28,8 @@ CLASS z2ui5_cl_demo_app_067 IMPLEMENTATION. IF check_initialized = abap_false. check_initialized = abap_true. - numeric = '000000000012'. - amount = '123456789.123'. + numeric = `000000000012`. + amount = `123456789.123`. currency = `USD`. ENDIF. @@ -40,24 +40,24 @@ CLASS z2ui5_cl_demo_app_067 IMPLEMENTATION. ENDCASE. DATA(page) = z2ui5_cl_xml_view=>factory( )->shell( - )->page( title = 'abap2UI5 - Currency Format' + )->page( title = `abap2UI5 - Currency Format` navbuttonpress = client->_event( |BACK| ) shownavbutton = xsdbool( client->get( )-s_draft-id_prev_app_stack IS NOT INITIAL ) ). - page->simple_form( title = 'Currency' + page->simple_form( title = `Currency` editable = abap_true - )->content( 'form' - )->title( 'Input' - )->label( 'Documentation' - )->link( text = 'https://sapui5.hana.ondemand.com/#/entity/sap.ui.model.type.Currency' - href = 'https://sapui5.hana.ondemand.com/#/entity/sap.ui.model.type.Currency' - )->label( 'One field' + )->content( `form` + )->title( `Input` + )->label( `Documentation` + )->link( text = `https://sapui5.hana.ondemand.com/#/entity/sap.ui.model.type.Currency` + href = `https://sapui5.hana.ondemand.com/#/entity/sap.ui.model.type.Currency` + )->label( `One field` )->input( |\{ parts: [ '{ client->_bind_edit( val = amount path = abap_true ) }', '{ client->_bind_edit( val = currency path = abap_true ) }'], type: 'sap.ui.model.type.Currency' \}| - )->label( 'Two field' + )->label( `Two field` )->input( |\{ parts: [ '{ client->_bind_edit( val = amount path = abap_true ) }', '{ client->_bind_edit( @@ -68,19 +68,19 @@ CLASS z2ui5_cl_demo_app_067 IMPLEMENTATION. path = abap_true ) }', '{ client->_bind_edit( val = currency path = abap_true ) }'], type: 'sap.ui.model.type.Currency' , formatOptions: \{showNumber: false\} \}| - )->label( 'Default' + )->label( `Default` )->text( |\{ parts: [ '{ client->_bind_edit( val = amount path = abap_true ) }', '{ client->_bind_edit( val = currency path = abap_true ) }'], type: 'sap.ui.model.type.Currency' \}| - )->label( 'preserveDecimals:false' + )->label( `preserveDecimals:false` )->text( |\{ parts: [ '{ client->_bind_edit( val = amount path = abap_true ) }', '| && client->_bind_edit( val = currency path = abap_true ) && |'], type: 'sap.ui.model.type.Currency' , formatOptions: \{ preserveDecimals : false \} \}| - )->label( 'currencyCode:false' + )->label( `currencyCode:false` )->text( |\{ parts: [ '{ client->_bind_edit( val = amount path = abap_true ) }', '| && client->_bind_edit( val = currency @@ -102,14 +102,14 @@ CLASS z2ui5_cl_demo_app_067 IMPLEMENTATION. )->button( text = `send` press = client->_event( `BUTTON` ) ). - page->simple_form( title = 'No Zeros' + page->simple_form( title = `No Zeros` editable = abap_true -)->content( 'form' -)->title( 'Input' -)->label( 'Documentation' -)->link( text = 'https://sapui5.hana.ondemand.com/sdk/#/api/sap.ui.model.odata.type.String%23methods/formatValue' - href = 'https://sapui5.hana.ondemand.com/sdk/#/api/sap.ui.model.odata.type.String%23methods/formatValue' -)->label( 'Numeric' +)->content( `form` +)->title( `Input` +)->label( `Documentation` +)->link( text = `https://sapui5.hana.ondemand.com/sdk/#/api/sap.ui.model.odata.type.String%23methods/formatValue` + href = `https://sapui5.hana.ondemand.com/sdk/#/api/sap.ui.model.odata.type.String%23methods/formatValue` +)->label( `Numeric` )->input( value = client->_bind_edit( val = numeric ) )->label( `Without leading Zeros` diff --git a/docs/development/specific/logging.md b/docs/development/specific/logging.md index e0260d5..b83ea51 100644 --- a/docs/development/specific/logging.md +++ b/docs/development/specific/logging.md @@ -11,8 +11,8 @@ In ABAP classic, you can use the classic BAL function modules and display the BA METHOD z2ui5_if_app~main. DATA(lt_bal) = VALUE bal_t_msgr( - ( msgid = 'Z001' msgno = '001' msgty = 'S' time_stmp = '21354' msgnumber = '01' ) - ( msgid = 'Z001' msgno = '001' msgty = 'S' time_stmp = '21354' msgnumber = '02' ) ). + ( msgid = `Z001` msgno = `001` msgty = `S` time_stmp = `21354` msgnumber = `01` ) + ( msgid = `Z001` msgno = `001` msgty = `S` time_stmp = `21354` msgnumber = `02` ) ). client->nav_app_call( z2ui5_cl_pop_messages=>factory( lt_bal ) ). @@ -27,17 +27,17 @@ METHOD z2ui5_if_app~main. DATA(lo_log) = cl_bali_log=>create( ). DATA(lo_msg) = cl_bali_message_setter=>create( severity = if_bali_constants=>c_severity_status - id = 'DEMO_LOG' - number = '002' + id = `DEMO_LOG` + number = `002` variable_1 = `username` ). lo_log->add_item( lo_msg ). - DATA(lo_bapi) = cl_bali_message_setter=>create_from_bapiret2( - VALUE #( - type = 'E' - id = 'DEMO_LOG' - number = '002' - message_v1 = 'Dummy' ) ). + DATA(lo_bapi) = cl_bali_message_setter=>create_from_bapiret2( + VALUE #( + type = `E` + id = `DEMO_LOG` + number = `002` + message_v1 = `Dummy` ) ). lo_log->add_item( lo_bapi ). 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 ```abap METHOD z2ui5_if_app~main. - DATA(log) = zcl_logger_factory=>create_log( desc = 'ABAP Logger' ). - log->e( 'This is an error...' ). - log->s( 'This is a success message...' ). + DATA(log) = zcl_logger_factory=>create_log( desc = `ABAP Logger` ). + log->e( `This is an error...` ). + log->s( `This is a success message...` ). client->nav_app_call( z2ui5_cl_pop_messages=>factory( log ) ). @@ -65,8 +65,8 @@ Compared to message classes, BAL logs include more detailed information, such as ```abap METHOD z2ui5_if_app~main. - DATA(lo_log) = zcl_logger_factory=>create_log( desc = 'ABAP Logger' ). - log->e( 'This is an error...' ). + DATA(lo_log) = zcl_logger_factory=>create_log( desc = `ABAP Logger` ). + log->e( `This is an error...` ). client->nav_app_call( z2ui5_cl_pop_bal=>factory( lo_log ) ). diff --git a/docs/development/specific/xlsx.md b/docs/development/specific/xlsx.md index 1d349c9..2dcdf4e 100644 --- a/docs/development/specific/xlsx.md +++ b/docs/development/specific/xlsx.md @@ -244,7 +244,7 @@ CLASS lcl_help IMPLEMENTATION. " Get active sheet lo_worksheet = lo_excel->get_active_worksheet( ). - lo_worksheet->set_title( 'Internal table' ). + lo_worksheet->set_title( `Internal table` ). lt_field_catalog = zcl_excel_common=>get_fieldcatalog( ip_table = val ). ls_table_settings-table_style = zcl_excel_table=>builtinstyle_medium5. diff --git a/docs/development/translation.md b/docs/development/translation.md index fe960a7..093bda1 100644 --- a/docs/development/translation.md +++ b/docs/development/translation.md @@ -10,7 +10,7 @@ Messages can be translated using the ABAP text elements, making them available i ```abap METHOD z2ui5_if_app~main. - data(lv_msg_translated) = 'this is a translatable message in english'(001). + data(lv_msg_translated) = `this is a translatable message in english`(001). client->message_box_display( lv_msg_translated ). ENDMETHOD. @@ -21,7 +21,7 @@ Messages are translated using message classes, ensuring that translations are ma ```abap METHOD z2ui5_if_app~main. - MESSAGE ID 'NET' TYPE 'I' NUMBER '001' into data(lv_msg_translated). + MESSAGE ID `NET` TYPE `I` NUMBER `001` into data(lv_msg_translated). client->message_box_display( lv_msg_translated ). ENDMETHOD. @@ -35,7 +35,7 @@ You can also retrieve and display the short, medium, or long descriptions of dat ```abap METHOD z2ui5_if_app~main. - DATA(ls_product_label) = lcl_help=>get_data_element_text( 'PRODUCT' ). + DATA(ls_product_label) = lcl_help=>get_data_element_text( `PRODUCT` ). client->message_box_display( |{ ls_product_label-short }: 100 | ). ENDMETHOD. @@ -81,9 +81,9 @@ CLASS lcl_help IMPLEMENTATION. DATA(data_element_name) = i_data_element_name. TRY. - cl_abap_typedescr=>describe_by_name( 'T100' ). + cl_abap_typedescr=>describe_by_name( `T100` ). - DATA(struct_desrc) = CAST cl_abap_structdescr( cl_abap_structdescr=>describe_by_name( 'DFIES' ) ). + DATA(struct_desrc) = CAST cl_abap_structdescr( cl_abap_structdescr=>describe_by_name( `DFIES` ) ). CREATE DATA ddic_ref TYPE HANDLE struct_desrc. ASSIGN ddic_ref->* TO FIELD-SYMBOL(). @@ -98,7 +98,7 @@ CLASS lcl_help IMPLEMENTATION. DATA(data_descr) = CAST cl_abap_datadescr( lo_typedescr ). - CALL METHOD data_descr->('GET_DDIC_FIELD') + CALL METHOD data_descr->(`GET_DDIC_FIELD`) RECEIVING p_flddescr = EXCEPTIONS @@ -117,14 +117,14 @@ CLASS lcl_help IMPLEMENTATION. CATCH cx_root. TRY. - DATA(xco_cp_abap_dictionary) = 'XCO_CP_ABAP_DICTIONARY'. - CALL METHOD (xco_cp_abap_dictionary)=>('DATA_ELEMENT') + DATA(xco_cp_abap_dictionary) = `XCO_CP_ABAP_DICTIONARY`. + CALL METHOD (xco_cp_abap_dictionary)=>(`DATA_ELEMENT`) EXPORTING iv_name = data_element_name RECEIVING ro_data_element = data_element. - CALL METHOD data_element->('IF_XCO_AD_DATA_ELEMENT~EXISTS') + CALL METHOD data_element->(`IF_XCO_AD_DATA_ELEMENT~EXISTS`) RECEIVING rv_exists = exists. @@ -132,23 +132,23 @@ CLASS lcl_help IMPLEMENTATION. RETURN. ENDIF. - CALL METHOD data_element->('IF_XCO_AD_DATA_ELEMENT~CONTENT') + CALL METHOD data_element->(`IF_XCO_AD_DATA_ELEMENT~CONTENT`) RECEIVING ro_content = content. - CALL METHOD content->('IF_XCO_DTEL_CONTENT~GET_HEADING_FIELD_LABEL') + CALL METHOD content->(`IF_XCO_DTEL_CONTENT~GET_HEADING_FIELD_LABEL`) RECEIVING rs_heading_field_label = result-header. - CALL METHOD content->('IF_XCO_DTEL_CONTENT~GET_SHORT_FIELD_LABEL') + CALL METHOD content->(`IF_XCO_DTEL_CONTENT~GET_SHORT_FIELD_LABEL`) RECEIVING rs_short_field_label = result-short. - CALL METHOD content->('IF_XCO_DTEL_CONTENT~GET_MEDIUM_FIELD_LABEL') + CALL METHOD content->(`IF_XCO_DTEL_CONTENT~GET_MEDIUM_FIELD_LABEL`) RECEIVING rs_medium_field_label = result-medium. - CALL METHOD content->('IF_XCO_DTEL_CONTENT~GET_LONG_FIELD_LABEL') + CALL METHOD content->(`IF_XCO_DTEL_CONTENT~GET_LONG_FIELD_LABEL`) RECEIVING rs_long_field_label = result-long. diff --git a/docs/development/view.md b/docs/development/view.md index 199794b..c21811e 100644 --- a/docs/development/view.md +++ b/docs/development/view.md @@ -25,8 +25,8 @@ You can use any UI5 control available in the UI5 SDK. However, working with XML client->view_display( z2ui5_cl_xml_view=>factory( )->shell( - )->page( 'My title' - )->Text( 'My text' + )->page( `My title` + )->Text( `My text` )->stringify( ) ). ENDMETHOD. diff --git a/docs/technical/dx.md b/docs/technical/dx.md index 65c9d01..51a854b 100644 --- a/docs/technical/dx.md +++ b/docs/technical/dx.md @@ -46,9 +46,9 @@ Input handling was never a challenge in classic ABAP — just define a Report wi ```abap REPORT zre_app_input. - PARAMETERS pa_arbgb TYPE t100-arbgb DEFAULT 'MDG_TR'. + PARAMETERS pa_arbgb TYPE t100-arbgb DEFAULT `MDG_TR`. START-OF-SELECTION. - MESSAGE |Input: { pa_arbgb }| type 'I'. + MESSAGE |Input: { pa_arbgb }| type `I`. ``` Benefits: - Rapid prototyping with minimal code @@ -153,18 +153,18 @@ Anyone who has browsed SE37 for POPUP_TO_* knows the charm of classic ABAP popup REPORT zre_app_alv. DATA event TYPE string. -CALL FUNCTION 'POPUP_TO_CONFIRM' +CALL FUNCTION `POPUP_TO_CONFIRM` EXPORTING - titlebar = 'Title' - text_question = 'Do you like dinosaurs?' + titlebar = `Title` + text_question = `Do you like dinosaurs?` IMPORTING answer = event. CASE event. - WHEN '1'. - MESSAGE `the result is YES` TYPE 'I'. - WHEN '2'. - MESSAGE `the result is NO` TYPE 'I'. + WHEN `1`. + MESSAGE `the result is YES` TYPE `I`. + WHEN `2`. + MESSAGE `the result is NO` TYPE `I`. ENDCASE. ``` Benefits: @@ -185,7 +185,7 @@ CLASS zcl_app_alv_event IMPLEMENTATION. IF client->check_on_init( ). client->nav_app_call( z2ui5_cl_pop_to_confirm=>factory( - i_question_text = 'Do you like dinosaurs?' + i_question_text = `Do you like dinosaurs?` i_title = `Title` i_event_confirm = `YES` i_event_cancel = `NO` ) ).