06-28-2007 12:07 PM
hi,
I am retrieving the data from bseg, bsad and kna1 into 3 different internal tables and combing that data into one final internal table after applying the filtering conditions like debit and credit indicator i am separating those records into 2 separate internal tables doing some more calculations on those like sorting, subtotals then combining all those internal table records into one final internal table and adding the trailer record also into that internal table, passing the whole internal table to a file on the application server...
so here my question in the trailer record there is one filed to calculate the total number of records in that file..... how to do that? how to get the total number of records in the file after appending the debit and credit records into one internal table or into the file...
can anyone guide me plz...
SRI
06-28-2007 12:11 PM
Hi
Use describe statement to know the number of records in an internal table (populated with data from file)
<b>DESCRIBE itab lines lf_lines.</b>
Regards
Raj
06-28-2007 2:01 PM
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.
Regards,
Bhaskar
06-28-2007 2:03 PM
You can use Describe statement.
Describe table it_credit.
no of records will be in <b>sy-tfill</b> system variable
Regards
Vijay