Skip to Content
author's profile photo Former Member
Former Member

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

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Oct 19, 2007 at 04:13 AM

    hi

    after inserting, you can know counts by sy-dbcnt

    Best Regards

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 19, 2007 at 04:15 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 19, 2007 at 04:15 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.