<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Problem in Error Message in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-error-message/m-p/4227423#M1009742</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its not working.&lt;/P&gt;&lt;P&gt;Its replacing the database record with the new one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest other solution with error msg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Jul 2008 16:00:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-28T16:00:39Z</dc:date>
    <item>
      <title>Problem in Error Message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-error-message/m-p/4227419#M1009738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abappers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have coded as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT lt_toa01 INTO ls_toa01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  INSERT INTO toa01 VALUES ls_toa01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;    MESSAGE ID 'ZIXMESSAGE' TYPE 'E' NUMBER '000'.&lt;/P&gt;&lt;P&gt;    CONTINUE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    WRITE:/ ls_toa01-mandt,&lt;/P&gt;&lt;P&gt;            ls_toa01-sap_object,&lt;/P&gt;&lt;P&gt;            ls_toa01-object_id,&lt;/P&gt;&lt;P&gt;            ls_toa01-archiv_id,&lt;/P&gt;&lt;P&gt;            ls_toa01-arc_doc_id,&lt;/P&gt;&lt;P&gt;            ls_toa01-ar_object,&lt;/P&gt;&lt;P&gt;            ls_toa01-ar_date,&lt;/P&gt;&lt;P&gt;            ls_toa01-del_date,&lt;/P&gt;&lt;P&gt;            ls_toa01-reserve.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR ls_toa01.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, when the duplicate record exist in the database, it gives the error message as Duplicate entry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and comes out of the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to do that if there are 100 records, and 51 st is the duplicate entry, then it list the 51st record and continue to upload the remaining records from the internal table to the Database table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2008 15:41:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-error-message/m-p/4227419#M1009738</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-28T15:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Error Message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-error-message/m-p/4227420#M1009739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;first of all get all the entries from your table .. &lt;/P&gt;&lt;P&gt;read if an entry already exists .. if not then only append .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT lt_toa01 INTO ls_toa01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table it_toa01 with key ....&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;  write &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; it_toa01-field1 ...&lt;/P&gt;&lt;P&gt;             sy-tabix.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;INSERT INTO toa01 VALUES ls_toa01.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2008 15:46:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-error-message/m-p/4227420#M1009739</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-28T15:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Error Message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-error-message/m-p/4227421#M1009740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srinivas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is of the case when the test data contains the duplicate record.&lt;/P&gt;&lt;P&gt;What if the database table contains a record previously and test data also has that one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please clearify.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2008 15:51:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-error-message/m-p/4227421#M1009740</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-28T15:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Error Message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-error-message/m-p/4227422#M1009741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in such cases also this will filter the record and will not &lt;/P&gt;&lt;P&gt;update the record ..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2008 15:54:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-error-message/m-p/4227422#M1009741</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-28T15:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Error Message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-error-message/m-p/4227423#M1009742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its not working.&lt;/P&gt;&lt;P&gt;Its replacing the database record with the new one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest other solution with error msg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2008 16:00:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-error-message/m-p/4227423#M1009742</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-28T16:00:39Z</dc:date>
    </item>
  </channel>
</rss>

