Skip to Content
Former Member
May 30, 2007 at 07:37 AM

sy-tleng output



Pls have a look at the below code.

<b>data: begin of it occurs 3,

f1 value 'X',

end of it,

n type i.

append: it, it, it.

describe table it lines n.

write: / 'length of a row from sy-tleng:', sy-tleng.</b>

After executing the above piece of code, the output displayed is [length of a row from sy-tleng: 2].

As far as i understand, <b>length of the row in this case should be 1</b> since f1 is a char type variable with default length 1.

<b>Why is the output 2??</b>