SAP ST OPTION XSDANY



Get Example source ABAP code based on a different SAP table
  


• preserveWS ABAP_ST_ELEMENT
• stripW ABAP_ST_ELEMENT
• preserveCharRef ABAP_ST_ELEMENT
• noRootAttr ABAP_ST_ELEMENT

ABAP_ST - option, Mapping Rules for XML Fragments

ABAP_SYNTAX
... option='$[preserveWS$]$[,stripWS$]$[,preserveCharRef$]$[ ,noRootAttr$]'

What does it do?
If one or more of the values preserveWS, stripWS, preserveCharRef, or noRootAttr are specified for option , the mapping rule for XML fragments is changed. These values are only respected by data objects that are declared with a reference to the DDIC domain XSDANY.

<(>preserveWS<)>
If the value preserveWS is specified, all whitespaces (blanks and line breaks) are preserved in deserializations.

<(>stripWS<)>
If the value stripWS is specified, all whitespace (blanks and line breaks) is stripped in deserializations.

<(>preserveCharRef<)>
The value preserveCharRef prevents character references from being resolved.

<(>noRootAttr<)>
The value noRootAttr is used to change the mapping rule for XML fragments so that no attribute asx:root containing the name of the root element of the XML fragment is added to the XML element. In deserializations, the root element is given the name of the XML element.



Latest notes:

In deserializations to XSDANY, whitespace in front of the first element is removed and whitespace from the first element is preserved.
NON_V5_HINTS
ABAP_HINT_END

ABAP_EXAMPLE_ABEXA
ST, Mapping of XML Fragments
ABAP_EXAMPLE_END