Skip to content

Prefer IS SUPPLIED over IS REQUESTED ​

WarningClean ABAP & Modern SyntaxQuickFix Ready#EC PREF_IS_SUPPLIEDRemote Enabled

Overview ​

Prefer IS SUPPLIED over the obsolete IS REQUESTED.

ATC Finding Message: Use IS SUPPLIED instead of IS REQUESTED

Rationale ​

IS REQUESTED is obsolete and only reports whether an output parameter was requested by the caller, not whether an input was actually supplied. IS SUPPLIED works for every parameter direction and states the real condition. Replace IS REQUESTED with IS SUPPLIED.

Non-Compliant ​

abap
IF iv_currency IS REQUESTED.
  convert_amount( iv_currency ).
ENDIF.

Compliant ​

abap
IF iv_currency IS SUPPLIED.
  convert_amount( iv_currency ).
ENDIF.

Automated QuickFix ​

This rule provides an automated QuickFix directly in Eclipse ABAP Development Tools (ADT):

  1. Position the cursor on the flagged statement.
  2. Press Ctrl + 1 (Quick Assist).
  3. 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 PREF_IS_SUPPLIED

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

Technical Details ​

Released under the MIT License.