Skip to content

Provide FAILED and REPORTED in RAP EML Statements ​

WarningClean ABAP & Modern Syntax#EC EML_RESPONSERemote Enabled

Overview ​

Provide FAILED and REPORTED in RAP EML statements.

ATC Finding Message: Always provide FAILED and REPORTED in EML statements

Rationale ​

In ABAP RESTful Application Programming Model (RAP), Entity Manipulation Language (EML) statements process transactional data. Omitting FAILED and REPORTED clauses causes silent failures, lost error messages, and unhandled business exceptions. Always provide both response parameters to safely inspect and propagate issues.

Non-Compliant ​

abap
MODIFY ENTITIES OF z_root
  ENTITY travel
  UPDATE FIELDS ( description ) WITH lt_update.

Compliant ​

abap
MODIFY ENTITIES OF z_root
  ENTITY travel
  UPDATE FIELDS ( description ) WITH lt_update
  FAILED DATA(lt_failed)
  REPORTED DATA(lt_reported).

Configuration & Thresholds ​

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

Parameter NameData TypeDefault Value
CHECK_MODIFYBooleantrue
CHECK_READBooleantrue

Suppression ​

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

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

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

Technical Details ​

Released under the MIT License.