sapdev logo background
sapdev logo sapdev logo
Comments

SAP WRITE STYLE ABEXA documentation, setup help and example usage



Return to SAP documentation index


ARTIClE

Decimal Floating Point Numbers, Formatting with STYLE
This example demonstrates the formatting of decimal floating point numbers.

ABAP_SOURCE_CODE
ABAP_EXEC

ABAP_DESCRIPTION
The program uses a classic list to depict the effects of all possible output formats from the CL_ABAP_FORMAT class for a decimal floating point number . The possible ouput formats are read using RTTI and are sorted according to their value. Formatting takes place once with the STYLE addition of the WRITE TO statement and twice with the STYLE parameter in embedded expressions of string templates .
For the first string template, the format RAW is implicitly used for the formating option NUMBER , which is why a point ( . ) and not a thousand separator is displayed as the decimal separator. Explicitly specifying the format USER creates the same formatting as for WRITE TO .
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved




WRITE_OUTPUT_LENGTH
WRITING_POSITION_GLOSRY




comments powered by Disqus