Statements for implementing methods

Methods are used to implement the functionality of classes (between METHOD - ENDMETHOD).

The same basic rules that apply to all other procedures in ABAP also apply to methods. For example, methods must not contain any other processing blocks such as subroutines or dialog modules. The statements allowed in methods are basically the same that were previously allowed for procedures, i.e., for function modules and subroutines. However, please note that all statements in methods are subject to the stricter syntax of ABAP Objects.