SAP NetWeaver AS ABAP Release 740, ©Copyright 2014 SAP AG. All rights reserved.
ABAP Keyword Documentation → ABAP − Reference → Data Interfaces and Communication Interfaces → ABAP and XML → Transformations for XML → Simple Transformations → ST - Serialization and Deserialization → ST - Flow Control → ST - tt:cond, Conditional Transformations →ST - using, Preconditions
Syntax
... using="..." ...
Effect
The following preconditions can be specified for the content of the attribute using of an element tt:cond:
Precondition | Meaning |
exist(node) | Met if an ABAP data object is bound to the node |
type-...(node) | Met if an ABAP data object of type ... is bound to the node |
Each predefined ABAP type has a precondition type-... where the data type is specified in uppercase letters (see examples). The operand node can be a data node, which must be specified in a special form.
A single precondition can be specified as a list of several of the above preconditions, separated by commas. Such a precondition is met if all preconditions in the list are met. Within the list, every data node may appear only once.
Example
The element X is considered during serialization only if the ABAP data object bound to ROOT is of type c.
Instead of "type-C(ref('ROOT'))", "type-C(ROOT)" is of course also possible here.
Example
The element X is respected by serializations only if the ABAP data object bound to ROOT1 is of type i and the ABAP data object bound to ROOT2 is of type d.