2007 Apr 19 3:14 PM
2007 Apr 19 3:16 PM
Hi
Database Count. It will count number of records in a database table.
Regards
Haritha.
Hi
Database Count. It will count number of records in a database table.
Regards
Haritha.
2007 Apr 19 3:16 PM
Hi
Database Count. It will count number of records in a database table.
Regards
Haritha.
2007 Apr 19 3:17 PM
SY-DBCNT gives the number of records in database table
After an open SQL statement, the system field sy-dbcnt contains the number of database lines processed.
REPORT ychatest.
DATA : v_matnr LIKE mara-matnr.
SELECT matnr FROM mara INTO v_matnr UP TO 1 ROWS.
ENDSELECT.
WRITE : sy-dbcnt.
Message was edited by:
Chandrasekhar Jagarlamudi
2007 Apr 19 3:18 PM
it will return the number of records processed in the database.
2007 Apr 19 3:19 PM
hi,
Welcome to SDN
SY-DBCNT:: no. of records processed in database table after a query.
SY-DBCNT
SQL statements set the content of SY-DBCNT to the number of database lines processed. With SELECT loops in Open SQL, SY-DBCNT is set after the ENDSELECT statement. In Native SQL, SY-DBCNT is set after the ENDEXEC statement.
DELETE sets SY-DBCNT to the number of lines deleted.
FETCH sets SY-DBCNT to the number of lines already read by the current cursor.
INSERT sets SY-DBCNT to the number of lines inserted.
MODIFY sets SY-DBCNT to the number of lines processed.
UPDATE sets SY-DBCNT to the number of lines changed.
Return Value
~~Guduri
2007 Apr 19 3:24 PM
it is a System Field which gives you the Number of Records In database table
regards,
santosh.
2007 Apr 19 7:52 PM
Hi,
Number of elements in edited dataset with DB operations
WRITE: /12 'Number of selected records:', SY-DBCNT CENTERED.
Regards,
Bhaskar
2007 Apr 19 7:56 PM
when a selct query was executed it will have how many records fetched from database
2009 Mar 05 9:14 AM
2012 Sep 08 12:41 PM
2012 Sep 08 12:50 PM
Dear,
this thread is marked as answered s no need to give answer
2012 Sep 08 12:58 PM
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |