<?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 ENQUEUE_ESINDX--lock a report in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/enqueue-esindx-lock-a-report/m-p/3139594#M746094</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;When i use this FM to run my report by frontend , then i can relize this requirement that prevent two users run this report at the same time&lt;/P&gt;&lt;P&gt;But when i run it in background, then i don't work, also can make two users run this report at the same time ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can do it ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Dec 2007 06:25:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-24T06:25:04Z</dc:date>
    <item>
      <title>ENQUEUE_ESINDX--lock a report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enqueue-esindx-lock-a-report/m-p/3139594#M746094</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;When i use this FM to run my report by frontend , then i can relize this requirement that prevent two users run this report at the same time&lt;/P&gt;&lt;P&gt;But when i run it in background, then i don't work, also can make two users run this report at the same time ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can do it ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Dec 2007 06:25:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enqueue-esindx-lock-a-report/m-p/3139594#M746094</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-24T06:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: ENQUEUE_ESINDX--lock a report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enqueue-esindx-lock-a-report/m-p/3139595#M746095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I created a lock object (se11) called EZABAP to solve this problem.&lt;/P&gt;&lt;P&gt;Sample FM call below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'ENQUEUE_EZABAP'&lt;/P&gt;&lt;P&gt;  exporting&lt;/P&gt;&lt;P&gt;    name                 = sy-repid&lt;/P&gt;&lt;P&gt;  exceptions&lt;/P&gt;&lt;P&gt;    foreign_lock         = 1&lt;/P&gt;&lt;P&gt;    system_failure       = 2&lt;/P&gt;&lt;P&gt;    others               = 3.&lt;/P&gt;&lt;P&gt;if  sy-subrc            &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;                           message e003 with sy-msgv1 sy-repid.&lt;/P&gt;&lt;P&gt;                           stop.&lt;/P&gt;&lt;P&gt;endif."subrc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The message states who is running the program and tells user to try later.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best!&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Dec 2007 18:25:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enqueue-esindx-lock-a-report/m-p/3139595#M746095</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-26T18:25:59Z</dc:date>
    </item>
  </channel>
</rss>

