Skip to content

Max One Method Parameter Definition Per Line ​

WarningClean ABAP & Modern Syntax#EC MAX_PARAM_LINERemote Enabled

Overview ​

Max one method parameter definition per line.

ATC Finding Message: Keep max one method parameter definition per line

Rationale ​

Several parameters on one line are hard to scan and produce noisy diffs when one parameter changes. Multi-line signatures also allow types and comments to align clearly. Declare each parameter on its own line.

Non-Compliant ​

abap
METHODS process IMPORTING iv_a TYPE i iv_b TYPE string.

Compliant ​

abap
METHODS process
  IMPORTING
    iv_a TYPE i
    iv_b TYPE string.

Suppression ​

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

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

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

Technical Details ​

Released under the MIT License.