2.5 ABAP versions

«« Previous
Next »»

Each ABAP program has the program attribute ABAP version defined internally by the version ID. The version of a program specifies which language elements and which repository objects can be used in the program and which syntax rules apply. The following version are currently provided:

Version
Meaning
Version ID
Non-Unicode program This version of ABAP is obsolete and is not longer supported in the current release. The version ID of a program of this type is initial. This is the same as stating that the program attribute Unicode checks active is not set and the Unicode checks are not performed.
-
Unicode program This version of ABAP is the universal basic version. It covers the entire language scope of ABAP that can be used in Unicode systems. The version ID of a program of this type is "X". This is the same as stating that the program attribute Unicode checks active is set and the Unicode checks are performed. The documentation of this version describes all ABAP language elements.
X
ABAP for Key Users This version of ABAP is designed for secure implementations of enhancements as part of enhancement points by key users provided by SAP. The rules for Unicode programs apply, but only a heavily restricted set of language elements is supported. Furthermore, the enhancements are implemented in methods and the stricter syntax rules for classes apply automatically. No obsolete language elements are allowed. The version ID of a program of this type is "2". The documentation for restricted ABAP is an appropriately restricted version of the full documentation.
2

The version ID of program is generally transparent for developers. From a technical perspective, the version ID is in the column UCCHECK of the database table TRDIR for program attributes and is usually set by the associated tools. The statements INSERT REPORT and SYNTAX-CHECK used to edit programs either set the version implicitly or or set it explicitly using the additions VERSION and DIRECTORY ENTRY.

Note : If a program has a version ID not specified in the table above it is handled like a version that does not support any language elements.

Example

The program DEMO_ABAP_VERSIONS makes it possible to check ABAP source code using the syntax rules of the different ABAP versions.

«« Previous
Next »»