<?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 IDOC Status Code 51  error inserting record into custom table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-status-code-51-error-inserting-record-into-custom-table/m-p/12710046#M2019010</link>
    <description>&lt;P&gt;Hi.&lt;/P&gt;
  &lt;P&gt;In one scenario, records in Inbound IDOC are coming at the same time(even the same second) and there can be multiple line items in that one IDOC. Data is dumped into the Custom table and then process further.&lt;/P&gt;
  &lt;P&gt;Now suppose one IDOC has 3 line items, 1st line item is pushed to the custom table successfully, next one is giving an error in some instances - 'Error inserting a record into custom table Z*'.&lt;/P&gt;
  &lt;P&gt;It is only happening in that instance when 2 or more records come at the same item then one of the items in IDOC result in below error&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2139769-image.png" /&gt;&lt;/P&gt;
  &lt;P&gt;Please suggest how to resolve or any workaround so that all record will save in custom table.&lt;/P&gt;</description>
    <pubDate>Sat, 18 Feb 2023 12:24:18 GMT</pubDate>
    <dc:creator>ankeshjindal</dc:creator>
    <dc:date>2023-02-18T12:24:18Z</dc:date>
    <item>
      <title>IDOC Status Code 51  error inserting record into custom table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-status-code-51-error-inserting-record-into-custom-table/m-p/12710046#M2019010</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;
  &lt;P&gt;In one scenario, records in Inbound IDOC are coming at the same time(even the same second) and there can be multiple line items in that one IDOC. Data is dumped into the Custom table and then process further.&lt;/P&gt;
  &lt;P&gt;Now suppose one IDOC has 3 line items, 1st line item is pushed to the custom table successfully, next one is giving an error in some instances - 'Error inserting a record into custom table Z*'.&lt;/P&gt;
  &lt;P&gt;It is only happening in that instance when 2 or more records come at the same item then one of the items in IDOC result in below error&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2139769-image.png" /&gt;&lt;/P&gt;
  &lt;P&gt;Please suggest how to resolve or any workaround so that all record will save in custom table.&lt;/P&gt;</description>
      <pubDate>Sat, 18 Feb 2023 12:24:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-status-code-51-error-inserting-record-into-custom-table/m-p/12710046#M2019010</guid>
      <dc:creator>ankeshjindal</dc:creator>
      <dc:date>2023-02-18T12:24:18Z</dc:date>
    </item>
    <item>
      <title>Re: IDOC Status Code 51  error inserting record into custom table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-status-code-51-error-inserting-record-into-custom-table/m-p/12710047#M2019011</link>
      <description>&lt;P&gt;How were unique keys defined in the intermediate Z-table, can you consider &lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;updating records when they already exist&lt;/LI&gt;&lt;LI&gt;using a lock process (on the table for example, lock table with ENQUEUE_E_TABLE, do it some limited times with wait if already locked, insert records and COMMIT WORK to relase lock and validate database)&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Sun, 19 Feb 2023 09:25:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-status-code-51-error-inserting-record-into-custom-table/m-p/12710047#M2019011</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2023-02-19T09:25:59Z</dc:date>
    </item>
  </channel>
</rss>

