ABAP Keyword Documentation → ABAP − Release-Specific Changes → Changes in Release 6.20
ABAP Objects in Release 6.20
1. New Variant PROVIDE FIELDS
2. Creating Objects from the SAP XSLT Processor
3.Polymorphism and Object Services
4. Accessing Data References and Static Class Components in JavaScript
5. Kernel Methods
6. Recursions of RAISE EVENT
Other versions: 7.31 | 7.40 | 7.54
Modification 1
New Variant PROVIDE FIELDS
The PROVIDE FIELDS
statement allows you to process
internal tables without
headers. The functions of the PROVIDE
statement are therefore also available under
ABAP Objects.
Modification 2
Creating Objects from the SAP XSLT Processor
It is possible to create objects and call class methods from the SAP XSLT processor. Now only public methods are allowed, whereas previously you could also call private and protected methods.
The transfer of parameters now supports all ABAP elementary types, any object references, and the generic types CSEQUENCE and XSEQUENCE. Previously, the types C, D, F, I, N, STRING, and T were supported.
The transfer has been tightened, so that for the data types D and I only valid specifications are permitted. Value losses for type p
are now caught. The values of types X and XSTRING are converted into the
XML standard format base64.
Modification 3
Polymorphism and Object Services
The uniqueness of object keys is now checked not only by class, but across the whole inheritance hierarchy. The behavior of the following methods has also been changed:
- The methods RELEASE and REFRESH_PERSISTENT behave polymorphically, so that objects of subclasses can also be handled.
- The methods GET_PERSISTENT and DELETE_PERSISTENT now access a table of the root class first, to optimize the type determination. Because the type is now stored over several transactions, it can no longer be changed.
-
By searching in the tables of the root class, the methods CREATE_PERSISTENT and CREATE_TRANSIENT now check whether the object key exists in another class of the inheritance hierarchy.
Modification 4
Accessing Data References and Static Class Components in JavaScript
Binding JavaScript objects to ABAP objects has been extended to allow you to access data reference variables and static components (attributes and methods) of classes. In bound internal tables, you can delete rows using the JS method deleteLines and the JS method append has been renamed appendLine.
Note
Support for the connection of JavaScript to ABAP will be discontinued without replacement in a release after 7.1.
Modification 5
Kernel Methods
The BY KERNEL MODULE
addition to the METHOD
statement allows you implement methods as
kernel methods.
Modification 6
Recursions of RAISE EVENT
The number of possible recursions of the statement RAISE EVENT
has been raised from 63 to 1023.