Skip to content

Clean up code style and remove unnecessary ICF check#612

Merged
oblomov-dev merged 2 commits into
standardfrom
claude/cool-ritchie-imm8g
May 21, 2026
Merged

Clean up code style and remove unnecessary ICF check#612
oblomov-dev merged 2 commits into
standardfrom
claude/cool-ritchie-imm8g

Conversation

@oblomov-dev
Copy link
Copy Markdown
Member

Summary

This PR applies code style improvements and removes an obsolete ICF service availability check across multiple demo apps.

Key Changes

  • Removed ICF service check in z2ui5_cl_demo_app_s_03_0: Eliminated the SELECT query checking if the /SAP/PUBLIC/BC/ABAP/mime_demo ICF service is active and the associated warning message, as this check is no longer necessary.

  • Simplified method calls by removing unnecessary CONV type conversions:

    • z2ui5_cl_demo_app_130: Removed CONV #() when passing lr_tab->field_doma to get_txt() and lr_tab->field to _event()
    • z2ui5_cl_demo_app_058: Removed CONV string() when passing lr_field->title to text()
  • Improved code formatting for consistency:

    • Standardized spacing around assignment operators in method parameters (e.g., id = test instead of `id =`test)
    • Adjusted spacing in method calls (e.g., client->_event( STEP22 ) instead of client->_event(STEP22 ))
    • Simplified method parameter syntax (e.g., vbox( sapUiSmallMargin ) instead of vbox( class = sapUiSmallMargin ))
  • Updated method calls to use positional arguments where appropriate:

    • view->_z2ui5( )->focus( inputApp ) instead of focus( focusid = inputApp )
    • vbox->text( The magic key is: abap2UI5 ) instead of text( text = ... )

Files Modified

  • src/99/z2ui5_cl_demo_app_s_03_0.clas.abap
  • src/z2ui5_cl_demo_app_130.clas.abap
  • src/99/z2ui5_cl_demo_app_202_0.clas.abap
  • src/z2ui5_cl_demo_app_058.clas.abap
  • src/z2ui5_cl_demo_app_069.clas.abap
  • src/z2ui5_cl_demo_app_098.clas.abap
  • src/z2ui5_cl_demo_app_104.clas.abap
  • src/z2ui5_cl_demo_app_202.clas.abap

All changes align with the SAP ABAP Style Guide and project conventions.

https://claude.ai/code/session_01Cm8k1AzFsT9476zatCr5U4

claude added 2 commits May 21, 2026 20:16
Remove redundant STRING conversions (app_058, app_130) and add missing
spaces before backtick literals (app_069, app_098, app_104, app_202, app_202_0).

https://claude.ai/code/session_01Cm8k1AzFsT9476zatCr5U4
Remove SELECT on unknown system table icfservloc (check_syntax) along with
the conditional ICF warning strip, and use positional parameters for the
three default-parameter calls (omit_parameter_name).

https://claude.ai/code/session_01Cm8k1AzFsT9476zatCr5U4
@oblomov-dev oblomov-dev merged commit 8382442 into standard May 21, 2026
6 checks passed
@oblomov-dev oblomov-dev deleted the claude/cool-ritchie-imm8g branch May 21, 2026 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants