Skip to content

Single Parameter or Field Per Line ​

WarningClean ABAP & Modern Syntax#EC PREF_PARAM_1LINERemote Enabled

Overview ​

Parameters and structure fields must be on separate lines.

ATC Finding Message: Multiple parameters or fields on the same line; place each on a separate line

Rationale ​

When passing multiple parameters in method calls or constructor expressions, place each parameter or field on its own separate line.

Non-Compliant ​

abap
ls_data = VALUE #( a = 1 b = 2 ).

Compliant ​

abap
ls_data = VALUE #(
    a = 1
    b = 2 ).

Suppression ​

To suppress findings for this rule, append the pseudo-comment to the statement:

abap
" Standard pseudo-comment:
... "#EC PREF_PARAM_1LINE

" SAP CI_ prefix format:
... "#EC CI_PREF_PARAM_1LINE

Technical Details ​

Released under the MIT License.