Omit Redundant EXPORTING in Method Calls
WarningAnti-Patterns & Bad PracticesQuickFix Ready#EC NO_CALL_EXPORTINGRemote Enabled
Overview
Omit Redundant EXPORTING in Method Calls.
ATC Finding Message:
Omit explicit EXPORTING keyword in method invocation
Rationale
In functional ABAP method calls, the EXPORTING keyword is redundant when no other clauses (such as IMPORTING, CHANGING, or EXCEPTIONS) are present. Removing EXPORTING reduces syntax noise and simplifies signature reading.
Non-Compliant
abap
lo_pricing->apply_discount( EXPORTING iv_percent = 10 ).Compliant
abap
lo_pricing->apply_discount( iv_percent = 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.
Suppression
To suppress findings for this rule, append the pseudo-comment to the statement:
abap
" Standard pseudo-comment:
... "#EC NO_CALL_EXPORTING
" SAP CI_ prefix format:
... "#EC CI_NO_CALL_EXPORTINGRelated Rules
- Avoid Obsolete CALL METHOD —
#EC NO_CALL_METHOD - Omit RECEIVING in Method Invocations —
#EC NO_CALL_RECEIVING - Prefer Functional RETURNING Parameters —
#EC PREF_RETURNING
Technical Details
- Native ATC Class:
ZCL_SKYLINT_NO_CALL_EXPORTING - Implementation File: zcl_skylint_no_call_exporting.clas.abap