09-28-2007 4:29 AM
DATA: NUMBER TYPE I VALUE '1234567',
TEXT(10) VALUE 'ABCDEFGHIJ'.
break-point.
WRITE: (5) NUMBER,
(6) TEXT.
what is result?
and why?
Thanks for all you kindly reply!
09-28-2007 4:40 AM
The output is
*4567 ABCDEF
The reason is
First you are displaying Integer. Fir integers, values are printed right justified and the field length is 11. As we are displaying only 5 characters, it display *4567, * for truncated value.
For character it displays left justified, and as 6 character length is specified, it displays ABCDEF.
See this for more detail -
http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9e2335c111d1829f0000e829fbfe/frameset.htm
09-28-2007 4:40 AM
The output is
*4567 ABCDEF
The reason is
First you are displaying Integer. Fir integers, values are printed right justified and the field length is 11. As we are displaying only 5 characters, it display *4567, * for truncated value.
For character it displays left justified, and as 6 character length is specified, it displays ABCDEF.
See this for more detail -
http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9e2335c111d1829f0000e829fbfe/frameset.htm
09-28-2007 4:47 AM