12-12-2007 7:30 PM
Hi,
How to find number of records, without fetching them into a internal table?
is there any command for that?
I want to know the number of records of a standard table in a report.
Thanks
12-12-2007 7:36 PM
In the data browser (SE16) just press the 'number of entries' button.
Rob
12-12-2007 7:41 PM
12-12-2007 7:44 PM
12-12-2007 7:56 PM
12-12-2007 7:45 PM
DATA: l_count TYPE i.
SELECT COUNT(*) AS l_count
INTO l_count
FROM dd02l.
WRITE l_count.
12-12-2007 8:36 PM
Hi,
If you want to know the number of records in your internal table after select statement.
You can use the below statement.
data : wa_lines like sy-tfill.
DESCRIBE TABLE itab LINES WS_LINES.
In wa_lines you will have the number of records.
If you want to know the number of records from standard itself.
You can use below :
select count(*) from table into variable
endselect.
Thanks,
Sriram Ponna.
12-12-2007 8:37 PM
Hi,
If you want to know the number of records in your internal table after select statement.
You can use the below statement.
data : wa_lines like sy-tfill.
DESCRIBE TABLE itab LINES WS_LINES.
In wa_lines you will have the number of records.
If you want to know the number of records from standard itself.
You can use below :
select count(*) from table into variable
endselect.
Thanks,
Sriram Ponna.