code pal for ABAP > Documentation > CALL METHOD Usage Check
This check searches for CALL METHOD statements. Static occurrences, i.e. those where the called method is known statically at compile-time, of this statement are obsolete and should be replaced by their functional equivalents.
The check finds CALL METHOD statements that do not contain dynamic parts. Dynamic parts are indicated by the method being called being specified by a literal or character-like variable in parentheses or the usage of the additions PARAMETER-TABLE or EXCEPTION-TABLE.
Change the method calls using CALL METHOD to functional method calls.
In exceptional cases, you can suppress this finding by using the pseudo comment "#EC CALL_METH_USAGE which has to be placed after the CALL METHOD statement:
CALL METHOD method_name. "#EC CALL_METH_USAGEBefore the check:
DATA(class) = NEW object( ).
CALL METHOD class->method
EXPORTING param = var.After the check:
DATA(class) = NEW object( ).
class->method( var ).