<?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: Locking issue with RH_INSERT_INFTY in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-issue-with-rh-insert-infty/m-p/3963566#M946794</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i was able to overcome the locking issue by passing all records for one position in an internal table, instead of looping through table and calling RH_INSERT_INFTY each time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Jun 2008 16:40:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-17T16:40:57Z</dc:date>
    <item>
      <title>Locking issue with RH_INSERT_INFTY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-issue-with-rh-insert-infty/m-p/3963564#M946792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am updating HRP1001 table for cost center change and Org Unit change for a position in a BACKGROUND process (by RFC)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am doing this by looping through an itab of 1001 type and calling RH_INSERT_INFTY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, this is failing becoz, I am getting a lock error after updating Org unit. If I change the order of the itab 1001, the cost center will get updated but org unit fails due to a lock error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is troubling me alot.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone please suggest some solution for this? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this is not problem with function module, becoz in other scenario, I am using the same function and is working OK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jun 2008 06:17:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/locking-issue-with-rh-insert-infty/m-p/3963564#M946792</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-17T06:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: Locking issue with RH_INSERT_INFTY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-issue-with-rh-insert-infty/m-p/3963565#M946793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check whether the table is locked, using &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'ENQUEUE_READ'&lt;/P&gt;&lt;P&gt;         exporting&lt;/P&gt;&lt;P&gt;              gclient = gclient         -&amp;gt; pass Client &lt;/P&gt;&lt;P&gt;              guname  = guname    -&amp;gt; pass User Name&lt;/P&gt;&lt;P&gt;              gname   = gname       -&amp;gt; Pass Table name&lt;/P&gt;&lt;P&gt;              garg    = garg                          &lt;/P&gt;&lt;P&gt;         importing&lt;/P&gt;&lt;P&gt;              subrc   = subrc&lt;/P&gt;&lt;P&gt;         tables&lt;/P&gt;&lt;P&gt;              enq     = enq              -&amp;gt; this table will be filled if the HRP1001 table is locked&lt;/P&gt;&lt;P&gt;         exceptions&lt;/P&gt;&lt;P&gt;              others  = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at enq.&lt;/P&gt;&lt;P&gt;  if enq-gname eq 'HRP1001'.&lt;/P&gt;&lt;P&gt;*sleep for 10 sec&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'ENQUE_SLEEP'&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;          SECONDS        = 10&lt;/P&gt;&lt;P&gt;     EXCEPTIONS&lt;/P&gt;&lt;P&gt;          SYSTEM_FAILURE = 1&lt;/P&gt;&lt;P&gt;          OTHERS         = 2.&lt;/P&gt;&lt;P&gt; endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dhana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jun 2008 06:52:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/locking-issue-with-rh-insert-infty/m-p/3963565#M946793</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-17T06:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: Locking issue with RH_INSERT_INFTY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-issue-with-rh-insert-infty/m-p/3963566#M946794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i was able to overcome the locking issue by passing all records for one position in an internal table, instead of looping through table and calling RH_INSERT_INFTY each time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jun 2008 16:40:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/locking-issue-with-rh-insert-infty/m-p/3963566#M946794</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-17T16:40:57Z</dc:date>
    </item>
  </channel>
</rss>

