Skip to content

Limit Line Length ​

WarningMetrics & Complexity Limits#EC LINE_LENRemote Enabled

Overview ​

Maximum Line Length.

ATC Finding Message: Line length exceeds configured maximum limit

Rationale ​

Lines longer than the configured limit force horizontal scrolling and hide parts of a statement in review tools. They also encourage dense expressions that are hard to debug. Break statements at logical operators and use short, meaningful names.

Non-Compliant ​

abap
lv_result = lo_service->calculate_total_with_discount_and_tax_for_customer( iv_customer_id = lv_customer_id iv_currency = lv_currency ).

Compliant ​

abap
lv_result = lo_service->calculate_total_with_discount_and_tax_for_customer(
  iv_customer_id = lv_customer_id
  iv_currency    = lv_currency ).

Configuration & Thresholds ​

This check can be fine-tuned directly in the ATC Check Variant Editor (CHKV) in Eclipse ADT:

Parameter NameData TypeDefault Value
MAX_LENGTHInteger120

Suppression ​

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

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

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

Technical Details ​

Released under the MIT License.