Get Example source ABAP code based on a different SAP table
ABAP_ASXML - Mapping of Qualified Names This example demonstrates the mapping of XML schema data types for qualified names.
ABAP_SOURCE_CODE DEMO CL_DEMO_ASXML_QNAME
ABAP_DESCRIPTION In this example, only two serializations of ABAP data objects are performed to asXML format whose content corresponds to the {URI}name> format. In the first serialization, the data objects have the type string>. In the second they have the type XSDQNAME>. In the first case, the content is passed unchanged, but in the second case it is interpreted as a qualified name and the associated namespace declarations are created. Next, XML data is created, which contains one element with a namespace prefix and one without a namespace prefix. This data is deserialized to ABAP data objects with the type string> and the type XSDQNAME >. The element with a namespace prefix is deserialized to the data object with the type string> unchanged. However, when deserializing to the data object of the type XSDQNAME>, a conversion to the format {URI}name> takes place. The element with no namespace prefix is deserialized unchanged in both cases, since only the empty standard namespace exists.