<?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 Table data entry error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-data-entry-error/m-p/4451622#M1055495</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are two fields in the ztable: one field that is the primary key and one more field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am entering value for the primary key field and I get the error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The ABAP/4 Open SQL array insert results in duplicate database records. records in the data base.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know what is missing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Sep 2008 03:20:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-09-12T03:20:12Z</dc:date>
    <item>
      <title>Table data entry error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-data-entry-error/m-p/4451622#M1055495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are two fields in the ztable: one field that is the primary key and one more field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am entering value for the primary key field and I get the error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The ABAP/4 Open SQL array insert results in duplicate database records. records in the data base.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know what is missing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2008 03:20:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-data-entry-error/m-p/4451622#M1055495</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-12T03:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: Table data entry error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-data-entry-error/m-p/4451623#M1055496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this is self-explanatory problem. you're trying to insert with the same data in your primary key. put a checking in your prorgram if data exist dont update.,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2008 03:25:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-data-entry-error/m-p/4451623#M1055496</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-12T03:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: Table data entry error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-data-entry-error/m-p/4451624#M1055497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you know primary key is to avoid duplicate entries in the table,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you are entering records with same primary key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think its better to change your primary key, or take care duplicate entries are not inserted&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;prasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2008 04:03:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-data-entry-error/m-p/4451624#M1055497</guid>
      <dc:creator>prasanth_kasturi</dc:creator>
      <dc:date>2008-09-12T04:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: Table data entry error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-data-entry-error/m-p/4451625#M1055498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The error is because there is already a similar record existing in the database.&lt;/P&gt;&lt;P&gt;Check if sy-subrc = 0 just after the select statement, which will indicate that the record already exists. &lt;/P&gt;&lt;P&gt;You will have to give different name (primary key) for inserting a new record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this solves the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Darpana.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2008 04:25:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-data-entry-error/m-p/4451625#M1055498</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-12T04:25:56Z</dc:date>
    </item>
  </channel>
</rss>

