<?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: how to catch write errors in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-catch-write-errors/m-p/3583840#M862847</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it is easy task if you are updating std SAP table, because most of the cases lock will already exist. &lt;/P&gt;&lt;P&gt;So you can &lt;/P&gt;&lt;P&gt;call function enqueu_xxxx&lt;/P&gt;&lt;P&gt;then insert xxx&lt;/P&gt;&lt;P&gt;dequeue_all&lt;/P&gt;&lt;P&gt;**if lock does not exist, then you need to create in Se11.&lt;/P&gt;&lt;P&gt;e.g. for MARA table update/insert you can use existing function module &lt;/P&gt;&lt;P&gt; ENQUEUE_E_PDTC_MARA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Apr 2008 12:59:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-02T12:59:28Z</dc:date>
    <item>
      <title>how to catch write errors</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-catch-write-errors/m-p/3583834#M862841</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;I have to write data to database tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I write the data like this: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;insert (tabname) from TABLE &amp;lt;it&amp;gt;.&lt;/P&gt;&lt;P&gt;&amp;lt;it&amp;gt; is a field symbol with the table contents to write..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I catch errors like 'duplicate records' or ... &lt;/P&gt;&lt;P&gt;There will probably be a lot of errors to catch. :d&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2008 07:47:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-catch-write-errors/m-p/3583834#M862841</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-02T07:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: how to catch write errors</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-catch-write-errors/m-p/3583835#M862842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;best way is Enque (get the lock) . if you get lock successfully then you can update insert without err. &amp;amp; Deque after successfullt completing that operation.&lt;/P&gt;&lt;P&gt;This is required because otherwise you may get short dump also,  &lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/ce/532b3a6b4f4644e10000000a11402f/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/ce/532b3a6b4f4644e10000000a11402f/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2008 08:17:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-catch-write-errors/m-p/3583835#M862842</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-02T08:17:12Z</dc:date>
    </item>
    <item>
      <title>Re: how to catch write errors</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-catch-write-errors/m-p/3583836#M862843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;transaction SE11 for creating lock objects&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw70/helpdata/en/cf/21eea5446011d189700000e8322d00/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw70/helpdata/en/cf/21eea5446011d189700000e8322d00/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2008 08:23:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-catch-write-errors/m-p/3583836#M862843</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-02T08:23:20Z</dc:date>
    </item>
    <item>
      <title>Re: how to catch write errors</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-catch-write-errors/m-p/3583837#M862844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hmm.. So there isn't just a simple function like Try.. Catch in VB.net?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2008 09:29:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-catch-write-errors/m-p/3583837#M862844</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-02T09:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: how to catch write errors</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-catch-write-errors/m-p/3583838#M862845</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;we have the functionality same as try...catch in abap also.&lt;/P&gt;&lt;P&gt;please refer to this link&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/a9/b8eef8fe9411d4b2ee0050dadfb92b/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/a9/b8eef8fe9411d4b2ee0050dadfb92b/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;bharat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2008 09:36:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-catch-write-errors/m-p/3583838#M862845</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-02T09:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: how to catch write errors</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-catch-write-errors/m-p/3583839#M862846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;THX!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2008 09:42:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-catch-write-errors/m-p/3583839#M862846</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-02T09:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: how to catch write errors</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-catch-write-errors/m-p/3583840#M862847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it is easy task if you are updating std SAP table, because most of the cases lock will already exist. &lt;/P&gt;&lt;P&gt;So you can &lt;/P&gt;&lt;P&gt;call function enqueu_xxxx&lt;/P&gt;&lt;P&gt;then insert xxx&lt;/P&gt;&lt;P&gt;dequeue_all&lt;/P&gt;&lt;P&gt;**if lock does not exist, then you need to create in Se11.&lt;/P&gt;&lt;P&gt;e.g. for MARA table update/insert you can use existing function module &lt;/P&gt;&lt;P&gt; ENQUEUE_E_PDTC_MARA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2008 12:59:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-catch-write-errors/m-p/3583840#M862847</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-02T12:59:28Z</dc:date>
    </item>
  </channel>
</rss>

