abapOpenChecks - Installation - Checks - Utilities - Links

CHECK_07 - Functional writing style for CALL METHOD

Improve this page
RFC enabled
CODE

See https://help.sap.com/http.svc/rc/abapdocu_740_index_htm/7.40/en-US/abenmethod_call_guidl.htm

Example:

CALL METHOD lo_obj->method( ).

Can be reduced to

lo_obj->method( ).

https://github.com/SAP/styleguides/blob/master/clean-abap/CleanABAP.md#prefer-functional-to-procedural-calls

Use functional writing style instead of RECEIVING

zcl_foo=>bar(
  RECEIVING
    rv_moo = lv_boo ).

can be reduced to

lv_boo = zcl_foo=>bar( ).

https://github.com/SAP/styleguides/blob/master/clean-abap/CleanABAP.md#omit-receiving

Configuration

Configuration