SAP WRITE TRUNCATION ABEXA



Get Example source ABAP code based on a different SAP table
  



WRITE TO, Truncation Behavior
This example demonstrates the truncation behavior of the statement WRITE TO for all elementary data types.

ABAP_SOURCE_CODE
ABAP_EXEC

ABAP_DESCRIPTION
The class demo contains an attribute for every built-in ABAP type and for time stamps in packed numbers. These attributes are filled with example values and assigned to a data object using WRITE TO, whose length can be selected on the selection screen.
The country-specific formats for numbers, dates, and times set by SET COUNTRY can also be specified on the selection screen. This example demonstrates these formats as well.
The output list shows the result of the formatting for each data type. If an exception is raised, the character ! is output in a different color.