Using the Conversion Exit
You use a conversion exit to define a jump to a conversion routine for a column of your output table. As the exit you specify the<conv> part of a function module called CONVERSION_EXIT_ <conv> _OUTPUT . For example, you can use conversion exit ALPHA (see function module CONVERSION_EXIT_ALPHA_OUTPUT ) to suppress leading zeros of account numbers.
The conversion exit is implemented through WRITE addition
So that the ALV Grid Control can perform the conversion, it must know the internal and the external length of the field, which is the same as the length before and the length after the conversion.
The following example that uses editing template
DATA TIME TYPE T VALUE '154633'.
WRITE (8) TIME USING EDIT MASK '__:__:__'. "Output: 15:46:33
In this example, the internal length (of type T) is six characters, while the output length is eight.
The column width (which can be set using the current layout) does not depend on these values and needs not be adjusted accordingly.
The values of the columns are run through the conversion routine before display.