<?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: Insert same primary key to custom table not dump in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-same-primary-key-to-custom-table-not-dump/m-p/12488592#M2002340</link>
    <description>&lt;P&gt;I have authorizations  to manage request.I want to back up and restore Q / P system data.&lt;/P&gt;&lt;P&gt;When I back up and restore Q system data,&lt;/P&gt;&lt;P&gt;First, I create a request in Q system data ,and delete the  the data for Specifies  table in Q system&lt;/P&gt;&lt;P&gt; ,then relasing the request,how to restore the table data at Q system?&lt;/P&gt;&lt;P&gt;I think the ways is suitable to tranport the data from Q system data to P systrem,&lt;/P&gt;&lt;P&gt;cannot be  backup and restore on the same system.&lt;/P&gt;</description>
    <pubDate>Mon, 11 Apr 2022 09:32:38 GMT</pubDate>
    <dc:creator>former_member660488</dc:creator>
    <dc:date>2022-04-11T09:32:38Z</dc:date>
    <item>
      <title>Insert same primary key to custom table not dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-same-primary-key-to-custom-table-not-dump/m-p/12488558#M2002306</link>
      <description>&lt;P&gt;Hi experts,&lt;/P&gt;
  &lt;P&gt;As I am trying to insert same primary key to a custom table ,there is no dump and the data is normally saved to the custom table,not dump.Why is this happening?&lt;/P&gt;
  &lt;P&gt;INSERT zhx_ficot015i FROM TABLE gt_tb_di.&lt;/P&gt;
  &lt;P&gt;The same data exists in gt_tb_di and zhx_ficot015i ,but sy-subrc return 0.&lt;/P&gt;
  &lt;P&gt;codes:&lt;/P&gt;
  &lt;P&gt;DATA:gw_ficot015i TYPE zhx_ficot015i,&lt;BR /&gt; gt_ficot015i TYPE TABLE OF zhx_ficot015i.&lt;BR /&gt;&lt;BR /&gt;gw_ficot015i-mandt = '500'.&lt;BR /&gt;gw_ficot015i-od_type = '02'.&lt;BR /&gt;gw_ficot015i-receno = 'F510320220420004'.&lt;BR /&gt;gw_ficot015i-itemno = '000001'.&lt;BR /&gt;APPEND gw_ficot015i TO gt_ficot015i.&lt;BR /&gt;&lt;BR /&gt;INSERT zhx_ficot015i FROM TABLE gt_ficot015i ACCEPTING DUPLICATE KEYS.&lt;BR /&gt;IF SY-SUBRC = 0.&lt;BR /&gt;&lt;BR /&gt;ENDIF.&lt;BR /&gt;BREAK-POINT.&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2040464-table.png" /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2040465-data.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 09:39:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-same-primary-key-to-custom-table-not-dump/m-p/12488558#M2002306</guid>
      <dc:creator>former_member660488</dc:creator>
      <dc:date>2022-04-07T09:39:31Z</dc:date>
    </item>
    <item>
      <title>Re: Insert same primary key to custom table not dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-same-primary-key-to-custom-table-not-dump/m-p/12488559#M2002307</link>
      <description>&lt;P&gt;Please look at ABAP Documentation. The consequence of INSERT ... FROM TABLE ... with data which would lead to duplicate keys in the table is:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;if you also indicate ACCEPTING DUPLICATE KEYS, you will get SY-SUBRC = 4.&lt;/LI&gt;&lt;LI&gt;otherwise you get CX_SY_OPEN_SQL_DB. If you don't catch this exception, there will be a short dump.&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Thu, 07 Apr 2022 14:55:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-same-primary-key-to-custom-table-not-dump/m-p/12488559#M2002307</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2022-04-07T14:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: Insert same primary key to custom table not dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-same-primary-key-to-custom-table-not-dump/m-p/12488560#M2002308</link>
      <description>&lt;P&gt;If it's another case, check SAP notes or contact SAP support.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 14:56:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-same-primary-key-to-custom-table-not-dump/m-p/12488560#M2002308</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2022-04-07T14:56:21Z</dc:date>
    </item>
    <item>
      <title>Re: Insert same primary key to custom table not dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-same-primary-key-to-custom-table-not-dump/m-p/12488561#M2002309</link>
      <description>&lt;P&gt;For a detail analysis I would change the INSERT ... FROM TABLE to a single INSERT in a LOOP-statement. Just to find out which record is responsible for the dump.&lt;/P&gt;&lt;P&gt;But  &lt;SPAN class="mention-scrubbed"&gt;sandra.rossi&lt;/SPAN&gt; is right, you should indeed consider to catch the related exception if you want to stay by this variant using INSERT ... FROM TABLE.&lt;/P&gt;&lt;P&gt;It would be also an option to change it to MODIFY ... FROM TABLE, then there is no issue anymore in case of an existing record in the table with the same key (as it will be just updated in this case).&lt;/P&gt;&lt;P&gt;Kind regards&lt;BR /&gt;Jens&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 16:52:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-same-primary-key-to-custom-table-not-dump/m-p/12488561#M2002309</guid>
      <dc:creator>Jeansy</dc:creator>
      <dc:date>2022-04-07T16:52:25Z</dc:date>
    </item>
    <item>
      <title>Re: Insert same primary key to custom table not dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-same-primary-key-to-custom-table-not-dump/m-p/12488562#M2002310</link>
      <description>&lt;P&gt;same primary key insert from wa or table not dump.Only this table will show this situation.&lt;/P&gt;&lt;P&gt; indicate ACCEPTING DUPLICATE KEYS ,  SY-SUBRC  still   return 0.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2040504-same.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 01:39:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-same-primary-key-to-custom-table-not-dump/m-p/12488562#M2002310</guid>
      <dc:creator>former_member660488</dc:creator>
      <dc:date>2022-04-08T01:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: Insert same primary key to custom table not dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-same-primary-key-to-custom-table-not-dump/m-p/12488563#M2002311</link>
      <description>&lt;P&gt;If the previous record came from somewhere else (like an integration); it might be the case that one of the columns contains an additional special character which can't be displayed by SAPGUI. Characters like TAB, CR, LF, etc are typical examples.&lt;/P&gt;&lt;P&gt;If that's the case, the system rightly thinks that the old value (containing the rogue character) is different from your clean value.&lt;/P&gt;&lt;P&gt;You might want to inspect the table contents through an external non-SAP tool and see if it shows such a rogue character. Checking string length is also an approach.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 05:09:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-same-primary-key-to-custom-table-not-dump/m-p/12488563#M2002311</guid>
      <dc:creator>keremkoseoglu</dc:creator>
      <dc:date>2022-04-08T05:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: Insert same primary key to custom table not dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-same-primary-key-to-custom-table-not-dump/m-p/12488564#M2002312</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;strange. When showing the database object (in SE11 &amp;gt; Utilities &amp;gt; Database Object &amp;gt; Display), is the primary index ZHX...~0 shown as "Unique" (like usually)?&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 06:45:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-same-primary-key-to-custom-table-not-dump/m-p/12488564#M2002312</guid>
      <dc:creator>jmodaal</dc:creator>
      <dc:date>2022-04-08T06:45:05Z</dc:date>
    </item>
    <item>
      <title>Re: Insert same primary key to custom table not dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-same-primary-key-to-custom-table-not-dump/m-p/12488565#M2002313</link>
      <description>&lt;P&gt;Codes：search by primary key have 12 records now.&lt;/P&gt;&lt;P&gt;It should not be the cause of abnormal characters.&lt;/P&gt;SELECT * INTO TABLE @DATA(gt_ficot015i) FROM zhx_ficot015i&lt;BR /&gt;WHERE od_type = '02' AND receno = 'F510320220420004'&lt;BR /&gt;&lt;P&gt; AND itemno = '000001'.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2040508-records.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 06:54:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-same-primary-key-to-custom-table-not-dump/m-p/12488565#M2002313</guid>
      <dc:creator>former_member660488</dc:creator>
      <dc:date>2022-04-08T06:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: Insert same primary key to custom table not dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-same-primary-key-to-custom-table-not-dump/m-p/12488566#M2002314</link>
      <description>&lt;P&gt;Is the index the cause of this problem?&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I'm not sure about the indexes&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2040509-indexes.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 07:01:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-same-primary-key-to-custom-table-not-dump/m-p/12488566#M2002314</guid>
      <dc:creator>former_member660488</dc:creator>
      <dc:date>2022-04-08T07:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: Insert same primary key to custom table not dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-same-primary-key-to-custom-table-not-dump/m-p/12488567#M2002315</link>
      <description>&lt;P&gt;After checking, I found this problem.&lt;/P&gt;&lt;P&gt; Is it caused by this? What should I do? This table already has a lot of data&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2040510-problem.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 07:08:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-same-primary-key-to-custom-table-not-dump/m-p/12488567#M2002315</guid>
      <dc:creator>former_member660488</dc:creator>
      <dc:date>2022-04-08T07:08:37Z</dc:date>
    </item>
    <item>
      <title>Re: Insert same primary key to custom table not dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-same-primary-key-to-custom-table-not-dump/m-p/12488568#M2002316</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;so it seems the missing primary index causes the problem, that you were able to insert multiple rows with same primary key fields. Don't know how this could happen (except deleting it on database level). With the database utility (Utilities &amp;gt; Database Object &amp;gt; Database Utility) you can try to fix this by choosing "Persist data" and clicking "Activate and adjust database". In front of this duplicates of the primary key fields should be deleted, otherwise I guess the database utility will fail. And I would think about extracting / back up the data in front of this (by using a transport request or R3trans or a self-developed ABAP). &lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 07:20:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-same-primary-key-to-custom-table-not-dump/m-p/12488568#M2002316</guid>
      <dc:creator>jmodaal</dc:creator>
      <dc:date>2022-04-08T07:20:02Z</dc:date>
    </item>
    <item>
      <title>Re: Insert same primary key to custom table not dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-same-primary-key-to-custom-table-not-dump/m-p/12488569#M2002317</link>
      <description>&lt;P&gt;I have delete the duplicates records,then tried clicking "Activate and adjust database"  ,Promting success.&lt;/P&gt;&lt;P&gt; but the primary index strill missing.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 07:36:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-same-primary-key-to-custom-table-not-dump/m-p/12488569#M2002317</guid>
      <dc:creator>former_member660488</dc:creator>
      <dc:date>2022-04-08T07:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: Insert same primary key to custom table not dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-same-primary-key-to-custom-table-not-dump/m-p/12488570#M2002318</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;even after activating the table again in SE11?&lt;/P&gt;&lt;P&gt;Then you could try to make one of the primary key fields longer, activate it (my expectation would be that the primary index will be created again) and after it shorten the primary key field again to its original length and activate again. &lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 07:55:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-same-primary-key-to-custom-table-not-dump/m-p/12488570#M2002318</guid>
      <dc:creator>jmodaal</dc:creator>
      <dc:date>2022-04-08T07:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: Insert same primary key to custom table not dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-same-primary-key-to-custom-table-not-dump/m-p/12488571#M2002319</link>
      <description>&lt;P&gt;I try change a primary key longer and add a primary key then  clicking "Activate and adjust database",&lt;/P&gt;&lt;P&gt;cannot activate &lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2040516-error.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 08:34:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-same-primary-key-to-custom-table-not-dump/m-p/12488571#M2002319</guid>
      <dc:creator>former_member660488</dc:creator>
      <dc:date>2022-04-08T08:34:27Z</dc:date>
    </item>
    <item>
      <title>Re: Insert same primary key to custom table not dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-same-primary-key-to-custom-table-not-dump/m-p/12488572#M2002320</link>
      <description>&lt;P&gt;Encouple the primary key fields from any value tables by using data elements CHAR2, CHAR16, CHAR6 and try it again. Then change it back to the currently used data elements and activate again. &lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 09:04:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-same-primary-key-to-custom-table-not-dump/m-p/12488572#M2002320</guid>
      <dc:creator>jmodaal</dc:creator>
      <dc:date>2022-04-08T09:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: Insert same primary key to custom table not dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-same-primary-key-to-custom-table-not-dump/m-p/12488573#M2002321</link>
      <description>&lt;P&gt; I just checked the z table,  Actually  the duplicates records cannot delete by se16n or abap code&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 09:25:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-same-primary-key-to-custom-table-not-dump/m-p/12488573#M2002321</guid>
      <dc:creator>former_member660488</dc:creator>
      <dc:date>2022-04-08T09:25:42Z</dc:date>
    </item>
    <item>
      <title>Re: Insert same primary key to custom table not dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-same-primary-key-to-custom-table-not-dump/m-p/12488574#M2002322</link>
      <description>&lt;P&gt;I have been confirmed that there is no duplicate data. The length of the primary key has been adjusted to cahr16, but it cannot be activated&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2040519-p.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 09:34:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-same-primary-key-to-custom-table-not-dump/m-p/12488574#M2002322</guid>
      <dc:creator>former_member660488</dc:creator>
      <dc:date>2022-04-08T09:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: Insert same primary key to custom table not dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-same-primary-key-to-custom-table-not-dump/m-p/12488575#M2002323</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;column "Data element" still shows your own data elements. Did you try to change this to CHAR16 to get rid off the search help?&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 09:56:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-same-primary-key-to-custom-table-not-dump/m-p/12488575#M2002323</guid>
      <dc:creator>jmodaal</dc:creator>
      <dc:date>2022-04-08T09:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: Insert same primary key to custom table not dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-same-primary-key-to-custom-table-not-dump/m-p/12488576#M2002324</link>
      <description>&lt;P&gt;Additional error fields that exist and I added a field bukrs as the primary key. Now I can't cancel it&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2040521-problem.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2040523-p2.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 10:25:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-same-primary-key-to-custom-table-not-dump/m-p/12488576#M2002324</guid>
      <dc:creator>former_member660488</dc:creator>
      <dc:date>2022-04-08T10:25:29Z</dc:date>
    </item>
    <item>
      <title>Re: Insert same primary key to custom table not dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-same-primary-key-to-custom-table-not-dump/m-p/12488577#M2002325</link>
      <description>&lt;P&gt;I have the impression that the action is meanwhile somewhat... chaotic. Still using the data elements bound to search helps? My idea was to replace these data elements by simple CHAR... data elements for getting rid of most dependencies to finally enable the activation of the database table with a valid, unique primary key.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 11:16:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-same-primary-key-to-custom-table-not-dump/m-p/12488577#M2002325</guid>
      <dc:creator>jmodaal</dc:creator>
      <dc:date>2022-04-08T11:16:13Z</dc:date>
    </item>
  </channel>
</rss>

