abapOpenChecks - Installation - Checks - Utilities - Links

CHECK_30 - EXPORTING can be omitted

Improve this page
RFC enabled
CODE

When calling methods with functional writing style and supplying only exporting parameters, the keyword EXPORTING can be omitted

lx_error->to_fpm_error(
  EXPORTING
    iv_ref_name  = lv_field_name
    iv_ref_index = lv_row ).

Can be reduced to

lx_error->to_fpm_error(
  iv_ref_name  = lv_field_name
  iv_ref_index = lv_row ).

https://github.com/SAP/styleguides/blob/master/clean-abap/CleanABAP.md#omit-the-optional-keyword-exporting

Configuration

Configuration