SAP ST FORMAT OPTION ABEXA



Get Example source ABAP code based on a different SAP table
  



ABAP_ST - Formatting Options
This example demonstrates how ABAP types are mapped using formatting options.

ABAP_SOURCE_CODE
DEMO CL_DEMO_ST_FORMAT_OPTION

ABAP_DESCRIPTION
This example passes various types of ABAP data to the transformation DEMO_ST_FORMAT_OPTION and provides the result for XML and JSON. The transformation applies those formatting options to the ABAP data that match its data type:
TRNS DEMO_ST_FORMAT_OPTION
The transformation creates JSON-XML to represent both XML and JSON. It should be noted that the formats ticks and ticksOffset only have a special meaning in JSON, where they create the JSON representation of UNIX time stamps for OData.