Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

[LINES<n> ]SY-TFILL

Former Member
0 Kudos

To describe internal tables by lines we use

DESCRIBE TABLE <internal_table> [LINES<n> ] .

How does statement differ from the following:-

.............

.................

WRITE : SY-TFILL

4 REPLIES 4

Former Member
0 Kudos

hi,

as per my knowledge both output's the same.

but, Describe table will assign values to sy-tfill, sy-tleng

regards,

pavan

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

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 :

http://www.sap-img.com/ab009.htm