Application Development and Automation 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: 
Read only

check it

Former Member
0 Likes
1,072

what is the use of SY-TFILL ?

1 ACCEPTED SOLUTION
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
1,054

NO OF RECORDS IN A ITAB

10 REPLIES 10
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
1,055

NO OF RECORDS IN A ITAB

Read only

0 Likes
1,054

DESCRIBE TABLE ITAB.

WRITE SY-TFILL.

Read only

prasanth_kasturi
Active Contributor
0 Likes
1,054

hi,

Sy-Tfill contains : Row Number of Internal Tables . i.e totla number of entries in the internal table

To find the number of records or number of exits we use sy-tfill.

example

describe table jtab.

skip.

format color col_total intensified on.

write:/ 'No of Exits:' , sy-tfill.

regards

prasanth

Read only

Former Member
0 Likes
1,054
DESCRIBE TABLE T_COSP LINES SY-TFILL.
  WRITE : / 'For all entries in time: ', TIME3.
  WRITE : / 'For all entries in rows: ', SY-TFILL.
Read only

Former Member
0 Likes
1,054

Reward Points..

Read only

Former Member
0 Likes
1,054

syst-tfill contains the current number of entries in internal table.

But be carefull, those fields vary per internal table. i.e. If your are looping thru itab 1 it is itab1sy-tfill. but if you are looping thru itab2 inside loop of itab1, you will have sy-tfill from itab2. Make a copy of itab1 if needed. Test it,I am not 100% SURE, BUT ONE THING IS CERTAIN,

that sy-tfill contains the current number of entries.

tmp2 = sy-tfill. "tfill of itab2

endloop."itab2

..

tmp = sy-tfill. "tfill of itab1

endloop."itab1

Reward Points..

Read only

Former Member
0 Likes
1,054

hi,

sy-tfill contains the current number of entries in internal table.

After a DESCRIBE TABLE statement SY-TFILL will contain the number of rows in the internal table

Reward pts if helpfull.

regards,

Dhan

Read only

Former Member
0 Likes
1,054

hi Sami,

With the statements DESCRIBE TABLE, LOOP AT, and READ TABLE, SY-TFILL is filled with the row number of the addressed internal table.

IT holds hte row number .

ok for more details go through the below link for system fields.

[http://help.sap.com/saphelp_nw70/helpdata/en/7b/fb96c8882811d295a90000e8353423/content.htm]

hope its clear to you,

Reward points if usefull,

Thanks,

Kalyan.

Read only

Former Member
0 Likes
1,054

sy-tfill-->Row Number of Internal Tables

Thanks

Read only

Former Member
0 Likes
1,054

Hi,

SY-TFILL

After the statements DESCRIBE TABLE, LOOP AT, and READ TABLE, SY-TFILL contains the number of lines in the relevant internal table.

http://www.ajudaprogramadores.hpg.ig.com.br/abap/exemplos/fields.htm

Regards

Adil