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: 

How to know howmany records are failed to enter in to table

Former Member
0 Kudos

Hi,

Iam uploding the file from application server to presentation server and then iam validating the records and sending them to table.i want to know how many(count) records are failed to enter into table.Can any one help me on this.

Thanks & Regards

Bhargavi.

3 REPLIES 3

Former Member
0 Kudos

hi

after inserting, you can know counts by sy-dbcnt

Best Regards

Former Member
0 Kudos

hello bhargavi,

i hope u r uploading the data to database. if u r using call transaction method then use the structure BDCMSGCOLL to upload error records into this table .create a stuture of this type then pass that in the call transaction syntax statement. then u can count the number of error records by looping this table.

reward if useful.

Former Member
0 Kudos

Hi,

If it is BDC with call transaction method -- check sy-subrc <> 0.

If it is INSERT statement from a report use sy-subrc <> 0 again.