SAP ST DECIMALS OPTION ABEXA



Get Example source ABAP code based on a different SAP table
  



ABAP_ST - Option for Decimal Places
This example demonstrates the representation of numeric ABAP types and the time stamp type utclong with specifications for decimal places.

ABAP_SOURCE_CODE
DEMO CL_DEMO_ST_DECIMALS_OPTION

ABAP_DESCRIPTION
This example passes various types of numeric ABAP data including the time stamp to the transformation DEMO_ST_DECIMALS_OPTION and displays the result for XML and JSON. The transformation applies the option decimals to the ABAP data:
TRNS DEMO_ST_DECIMALS_OPTION
The transformation creates JSON-XML to represent both XML and JSON. The time stamp in the packed number datetimel is typed with the special domain XSDDATETIME_LONG_Z. This time stamp is still handled as such after the handling by decimals . For the number timestmpl of type p, the corresponding effect is obtained by using the additional time stamp formats specified with format. Time stamps in the time stamp fields of the type utclong are handled as such by default.