Ansicht
Dokumentation

ABENST_DECIMALS_OPTION_ABEXA - ST DECIMALS OPTION ABEXA

ABENST_DECIMALS_OPTION_ABEXA - ST DECIMALS OPTION ABEXA

ABAP Short Reference   BAL Application Log Documentation  
This documentation is copyright by SAP AG.
SAP E-Book

- Option for Decimal Places

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

Source Code

Execute

Description

This example passes various types of numeric ABAP data including the time stamp to the transformation DEMO_ST_DECIMALS_OPTION and represents the result for XML and JSON. The transformation applies the option decimals to the ABAP data:

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.






General Material Data   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.

Length: 1639 Date: 20240329 Time: 133502     sap01-206 ( 29 ms )