12-18-2007 10:48 AM
To describe internal tables by lines we use
DESCRIBE TABLE <internal_table> [LINES<n> ] .
How does statement differ from the following:-
.............
.................
WRITE : SY-TFILL
12-18-2007 11:43 AM
hi,
as per my knowledge both output's the same.
but, Describe table will assign values to sy-tfill, sy-tleng
regards,
pavan
12-18-2007 11:48 AM
Hi,
You can use sy-tfill when you are looping on an internal table, but use can use DESCRIBE anywhere in the program.
Rgds,
Pankaj
12-18-2007 12:00 PM
Hi,
The system field SY-TFILL is used for corrent line and discribe is used for number records in the table
SY-TFILL
With the statements DESCRIBE TABLE, LOOP AT, and READ TABLE, SY-TFILL is filled with the row number of the addressed internal table.
Plz Reward if useful,
Mahi.
12-18-2007 12:48 PM
describe table enables u to store the no. of records in the internal table in the variable specified.
and sy-tfill will also contain the no. of records int he internal table when used after DESCRIBE TABLE, LOOP AT, and READ TABLE.
also refer to link :