Ansicht
Dokumentation

ABENABAP_XSLT_ASXML_FRAGMENT - ABAP XSLT ASXML FRAGMENT

ABENABAP_XSLT_ASXML_FRAGMENT - ABAP XSLT ASXML FRAGMENT

ROGBILLS - Synchronize billing plans   Vendor Master (General Section)  
This documentation is copyright by SAP AG.
SAP E-Book

- Mapping of XML Fragments

asXML allows the mapping of entire XML fragments, that is, of complete elements and their subelements that exist in XML format in ABAP as the content of data objects or of parts of data objects (such as structure components or table rows). The data objects must have the type xstring and be declared with reference to the DDIC domain XSDANY.

  • When serialized, such a data object or part of a data object must contain the UTF-8 representation of a complete XML fragment. The content of the root element of the XML fragment is passed unchanged to the XML element for which the data object was created. If the name of the XML element is not the same as the name of the root element of the XML fragment, the latter is used as the content of an attribute asx:root that is added to the XML element. No attribute is created if the names are the same.
  • When deserialized, an XML element that contains the attribute asx:root must be assigned to such a data object or part of a data object. An XML fragment is created in the data object that has the content of the attribute as a root element and whose content is inherited unchanged from the XML element. If the attribute asx:root does not exist, the root element is given the name of the XML element.

The following restrictions apply:

  • XML fragments whose elements do not contain attributes cannot be deserialized.
  • XML fragments whose root element is in the standard namespace cannot be serialized or deserialized.

Notes

  • An XML fragment that exists in a data object of type xstring and that is not declared with reference to the domain XSDANY is formatted as the XML schema type xsd:base64Binary in accordance with the rules for mapping elementary data types.
  • An XML element that contains the attribute asx:root cannot be deserialized to data objects that are not declared with reference to the domain XSDANY.

asXML, Mapping of XML Fragments






ROGBILLS - Synchronize billing plans   General Material Data  
This documentation is copyright by SAP AG.

Length: 4002 Date: 20240426 Time: 232623     sap01-206 ( 72 ms )