sapdev logo background
sapdev logo sapdev logo
Comments

SAP SERIALIZE DREF ABEXA documentation, setup help and example usage



Return to SAP documentation index


ARTICLE

Serializing Data References
This example demonstrates serializations of data references to asXML and to
asJSON .

ABAP_SOURCE_CODE
ABAP_EXEC

ABAP_DESCRIPTION
This example demonstrates the serialization of data reference variables using the identity transformation ID to the canonical formats asXML and asJSON .
  • First a data reference is serialized that points to an anonymous data object in the heap and whose dynamic type struc was created in the same program using the TYPES statement. No problems should arise from this serialization.

  • Next, however, a data reference variable is serialized that points to an anonymous data object in the heap whose dynamic type does not have a name. This is the technical type of a structure and reference to this type is made using LIKE . A data reference variable of this type cannot be serialized without taking further actions. This exception can be prevented using the transformation option technical_types , however the data reference variable is ignored.

  • Finally, a data reference variable is serialized that points to a data object in the stack . The data reference variable is ignored by default, but can be serialized using the transformation option data_refs .
    Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved




  • SERIALIZATION_GLOSRY
    SERIALIZE_REF_HEAP_EMBED_ABEXA




    comments powered by Disqus