SAP ABAP JSON TRAFOS

Get Example source ABAP code based on a different SAP table
  


ARTICLE

Transformations for JSON
The transformations for XML that can be called from ABAP, namely XSL transformationen and simple transformations, can also be used JSON.
To call a transformation for JSON data as a source, the following XML sources can be specified in the statement CALL TRANSFORMATION:
A string or internal table with JSON data in character-like or byte-like representation.
A JSON reader A JSON reader returns JSON data in JSON-XML format. The JSON data specified as a string or in an internal table is also handled like XML representing JSON data JSON-XML format.
To call a transformation for JSON data as a target, a JSON writer can be specified as an XML target in the statement CALL TRANSFORMATION: A JSON writer expects data in JSON-XML format.
Any XSLT programs and ST programs can be called that can handle JSON-XML:
If the source is JSON data, the transformation must process JSON-XML as its input.
If the target is JSON data, the transformation must create JSON-XML.
Self-written transformations must be programmed accordingly. The identity transformation ID is handled appropriately internally.
Self-Written Transformations
Identity Transformation