Skip to Content
author's profile photo
Former Member

Write I type with length

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!

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Best Answer
    author's profile photo
    Former Member
    Posted on Sep 28, 2007 at 03: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

    Add comment
    10|10000 characters needed characters exceeded