05-30-2007 8:37 AM
Hi,
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>
05-30-2007 8:44 AM
05-30-2007 8:44 AM
05-30-2007 10:13 AM
Hi,
Thanks for your reply.
I am on Ver 4.7 and i get the output as 2.
Regards,
Vijay
05-30-2007 8:45 AM
Hi,
After the statements DESCRIBE TABLE, LOOP AT, and READ TABLE, the system fills SY-TLENG with the row size of the addressed internal table.
Regards
Sudheer
05-30-2007 10:14 AM
Hi,
Thank you for the information.
But why is the output displayed as 2 ?
Regards,
Vijay