New Naming Conventions

The names of class components - that is, attributes, methods, and events - can be made up of the characters "A-Z", "0-9" and "_" only. Names cannot begin with a digit.

In ABAP Objects, the following statements cause an error message:

DATA: field-name TYPE ...,
      1name TYPE ...

Correct syntax:

DATA: field_name TYPE ...,
      name1 TYPE ...

Cause:

You cannot use special characters in names, because they often have a particular meaning in the system. The new naming conventions correspond to those for other programming languages.

Overview:

Replacement for Obsolete Statements ABAP Objects