Skip to content

Avoid Classic List Processing Statements ​

WarningAnti-Patterns & Bad Practices#EC LIST_PROCRemote Enabled

Overview ​

Prohibit classic list processing statements.

ATC Finding Message: List processing statement is forbidden in OO/Cloud ABAP

Rationale ​

Classic list processing with WRITE, ULINE, FORMAT, and READ LINE only works in SAP GUI list reports and is unavailable in ABAP Cloud. It couples business logic to screen output and makes the code impossible to test independently. Use application logging or a modern UI framework instead of writing directly to a list.

Non-Compliant ​

abap
WRITE / 'Order processed:'.
ULINE.

Compliant ​

abap
mo_logger->info( 'Order processed:' ).

Configuration & Thresholds ​

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

Parameter NameData TypeDefault Value
CHECK_WRITEBooleantrue
CHECK_ULINEBooleantrue
CHECK_SKIPBooleantrue
CHECK_OTHERBooleantrue
IGN_WRITE_TOBooleantrue
CHECK_LEAVEBooleantrue
CHECK_REJECTBooleantrue

Suppression ​

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

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

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

Technical Details ​

Released under the MIT License.