<?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 lock table exclusive ? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-table-exclusive/m-p/7900010#M1596668</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;is it possible to 'lock' an table for a specific time ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have a Z-table where rows are inserted all the day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3 times a day i have to read the table and send data to another system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is it possible to 'lock' a table , so that only this program can exclusivly use it ? so that &lt;/P&gt;&lt;P&gt;the other places where there is a insert into table have to wait until table is unlocked again ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i don't want to be rows inserted during the programm runs 3 times a day. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reg, Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 May 2011 11:32:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-05-19T11:32:44Z</dc:date>
    <item>
      <title>lock table exclusive ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-table-exclusive/m-p/7900010#M1596668</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;is it possible to 'lock' an table for a specific time ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have a Z-table where rows are inserted all the day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3 times a day i have to read the table and send data to another system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is it possible to 'lock' a table , so that only this program can exclusivly use it ? so that &lt;/P&gt;&lt;P&gt;the other places where there is a insert into table have to wait until table is unlocked again ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i don't want to be rows inserted during the programm runs 3 times a day. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reg, Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2011 11:32:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-table-exclusive/m-p/7900010#M1596668</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-19T11:32:44Z</dc:date>
    </item>
    <item>
      <title>Re: lock table exclusive ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-table-exclusive/m-p/7900011#M1596669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No problem, if the "other places" are properly setting locks while updating the table. Then your sender program can try to set the lock, if successful then process the data, if not successful wait until the lock has been released (the "other places" should use a similar logic).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read further about SAP lock concept.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2011 11:40:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-table-exclusive/m-p/7900011#M1596669</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2011-05-19T11:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: lock table exclusive ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-table-exclusive/m-p/7900012#M1596670</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; You can do it. The Lock Objects are created in SE11 with naming standard EZ.&lt;/P&gt;&lt;P&gt;whenever you create a Lock Object a FM is generated.&lt;/P&gt;&lt;P&gt;Now call the ENQUEUE by passing the paramerter as required and then Dequeue it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example: My Ztable is ZARS_TRHDR_T'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'DEQUEUE_EZARS_TRHDR_T'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      iface   = pv_iface&lt;/P&gt;&lt;P&gt;      idate   = pv_idate&lt;/P&gt;&lt;P&gt;      itime   = pv_itime.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Similarly for ENQUEUE. Hope This Helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Bhargav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2011 11:49:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-table-exclusive/m-p/7900012#M1596670</guid>
      <dc:creator>Venkat_Sesha</dc:creator>
      <dc:date>2011-05-19T11:49:45Z</dc:date>
    </item>
    <item>
      <title>Re: lock table exclusive ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-table-exclusive/m-p/7900013#M1596671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi v s,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when calling the 2 FM, is there anything i should do with the parameters iface, idate  and itime, which&lt;/P&gt;&lt;P&gt;are export parameters ? how to fill it ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can i be sure that other programs 'wait' until the table is unlocked again ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;b. reg, Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2011 11:54:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-table-exclusive/m-p/7900013#M1596671</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-19T11:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: lock table exclusive ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-table-exclusive/m-p/7900014#M1596672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when calling the 2 FM, is there anything i should do with the parameters iface, idate and itime, which&lt;/P&gt;&lt;P&gt;are export parameters ? how to fill it ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can i be sure that other programs 'wait' until the table is unlocked again ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Those are key fields specific to the table in the example.  If you want the programs to 'wait', you have to use the built-in function parameter or program the wait in a loop yourself.  Check the help files on ENQUEUE as Thomas has already suggested.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2011 13:40:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-table-exclusive/m-p/7900014#M1596672</guid>
      <dc:creator>brad_bohn</dc:creator>
      <dc:date>2011-05-19T13:40:21Z</dc:date>
    </item>
  </channel>
</rss>

