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):
- 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 PREF_IS_SUPPLIED
" SAP CI_ prefix format:
... "#EC CI_PREF_IS_SUPPLIEDTechnical Details
- Native ATC Class:
ZCL_SKYLINT_PREF_IS_SUPPLIED - Implementation File: zcl_skylint_pref_is_supplied.clas.abap