Omit Redundant Call Syntax (EXPORTING / RECEIVING / Single Param)
WarningAnti-Patterns & Bad PracticesQuickFix Ready#EC EXPORTINGLocal Only
Overview
Omit redundant EXPORTING and RECEIVING in method calls.
ATC Finding Messages:
Omit explicit EXPORTING keyword in method invocationOmit RECEIVING keyword; use functional call or omit parameterOmit explicit parameter name in single parameter method call
Rationale
In functional calls the EXPORTING and RECEIVING keywords are optional, and a method with a single importing parameter can be called positionally. Repeating the keywords and parameter name adds noise without improving clarity. Omit them when the call is unambiguous, but keep parameter names when several optional parameters could be confused.
Non-Compliant
abap
lo_pricing->apply_discount( EXPORTING iv_percent = 10 ).Compliant
abap
lo_pricing->apply_discount( 10 ).Automated QuickFix
This rule provides an automated QuickFix directly in Eclipse ABAP Development Tools (ADT):
- Position the cursor on the flagged statement.
- Press Ctrl + 1 (Quick Assist).
- Select the automated refactoring to apply the clean syntax immediately.
Configuration & Thresholds
This check can be fine-tuned directly in the ATC Check Variant Editor (CHKV) in Eclipse ADT:
| Parameter Name | Data Type | Default Value |
|---|---|---|
CHECK_EXPORTING | Boolean | true |
CHECK_RECEIVING | Boolean | true |
CHECK_PARAM_NAME | Boolean | true |
Suppression
To suppress findings for this rule, append the pseudo-comment to the statement:
abap
" Standard pseudo-comment:
... "#EC EXPORTING
" SAP CI_ prefix format:
... "#EC CI_EXPORTINGTechnical Details
- Native ATC Class:
ZCL_SKYLINT_NO_REDUNDANT_CALL - Implementation File: zcl_skylint_no_redundant_call.clas.abap