abapOpenChecks - Installation - Checks - Utilities - Links

CHECK_07 - Functional writing style for CALL METHOD

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( ).

Use functional writing style instead of RECEIVING

zcl_foo=>bar(
  RECEIVING
    rv_moo = lv_boo ).

can be reduced to

lv_boo = zcl_foo=>bar( ).

Configuration

Configuration