AS ABAP Release 758, ©Copyright 2024 SAP SE. All rights reserved.
ABAP - Keyword Documentation → ABAP - ABAP Release News → News for ABAP Release 7.0 and its EhPs → News for ABAP Release 7.0, EhP2 →XML Binding in ABAP Release 7.0, EhP2
In ABAP release 7.0, EhP2 the interface between ABAP and XML has been enhanced as follows:
Access to ABAP Objects from Simple Transformations
The following new ST statements can be used to call methods of global classes and create objects of these classes in ST programs:
For addressing objects, a new addition tt:ref-type of the statements tt:parameter and tt:variable has been introduced that makes it possible to create parameters and variables from ST programs explicitly as reference variables. Another new statement tt:cast also enables a downcast of reference variables in ST programs.
See the ST Statement Overview.
Mapping of XML Schema Data Types
Previously, asXML allowed only mappings of the elementary built-in ABAP types to XML schema data types and back. But this did not cover all XML schema data types. Special DDIC domains named XSD... have been introduced that allow mapping of further XML schema data types.
Hints
Lengths Specified in Simple Transformations
In the ST statements tt:value, tt:write and
tt:read can be used to make length specifications in order to provide a minimum length for serialization of character and type strings and a maximum length for deserialization.
Validation of Values in Simple Transformations
An XML schema type and further restrictions can now be specified in the ST statements tt:value,
tt:write, and tt:read, to validate a value with respect to a value range.
New Values for Transformation Option value_handling
The new values accept_decimal_loss and reject_illegal_characters can be selected for the transformation option value_handling of the statement CALL TRANSFORMATION.
New Values for Transformation Option data_refs
The new values heap-or-error and heap-or-create can be selected for the transformation option data_refs of the statement CALL TRANSFORMATION, to control the handling of stack references.
Hint
This change was transported back as far as ABAP release 6.20 (in ABAP release 7.0, from SP6).
New Value for Transformation Option initial_components
The new value suppress_boxed can be selected for the transformation option initial_components of the statement CALL TRANSFORMATION, to control the handling of
boxed components. The new value is also the new default setting.
New Transformation Option technical_types
error or ignore can be selected for the new transformation option technical_types of the statement CALL TRANSFORMATION, to control the handling of data reference variables with unknown dynamic types.
Hint
This change was transported back as far as ABAP release 6.20 (in ABAP release 7.0, from SP6).
New Transformation Option clear
all, supplied, or none can be selected for the new transformation option clear of the statement CALL TRANSFORMATION, to control the initialization of the ABAP target fields in deserializations.