<?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: Trying to read locks using function: ENQUEUE_READ not returning results. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/trying-to-read-locks-using-function-enqueue-read-not-returning-results/m-p/3689895#M888511</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I ran the function without the table name and l_num was populated! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It makes sense that the table would only be populated with a lock if entries were being edited.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help guys!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~ Lisa Gravito&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Apr 2008 20:09:52 GMT</pubDate>
    <dc:creator>lisa_gravito</dc:creator>
    <dc:date>2008-04-09T20:09:52Z</dc:date>
    <item>
      <title>Trying to read locks using function: ENQUEUE_READ not returning results.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trying-to-read-locks-using-function-enqueue-read-not-returning-results/m-p/3689889#M888505</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;I am attempting to read user locks programmatically by calling the function: ENQUEUE_READ. This however is not working. Has anyone successful read locks using this FM?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Piece from my function module&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;checking to see if user has a BPS BSP layout lock&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION 'ENQUEUE_READ'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      gclient = sy-mandt&lt;/P&gt;&lt;P&gt;      gname   = 'UPC_YS_LOCK'&lt;/P&gt;&lt;P&gt;      guname  = sy-uname&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      number  = l_num&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      enq     = l_enq.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~ Lisa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 18:48:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trying-to-read-locks-using-function-enqueue-read-not-returning-results/m-p/3689889#M888505</guid>
      <dc:creator>lisa_gravito</dc:creator>
      <dc:date>2008-04-09T18:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to read locks using function: ENQUEUE_READ not returning results.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trying-to-read-locks-using-function-enqueue-read-not-returning-results/m-p/3689890#M888506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How did you know it's not working?? Is it giving any exception..check sy-subrc value and post back!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 19:41:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trying-to-read-locks-using-function-enqueue-read-not-returning-results/m-p/3689890#M888506</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-09T19:41:26Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to read locks using function: ENQUEUE_READ not returning results.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trying-to-read-locks-using-function-enqueue-read-not-returning-results/m-p/3689891#M888507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I checked SM12 to ensure I had locks, called ENQUEUE_READ and parameter: l_num returned 0. (I had 2 locks)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After I check the locks, I need to be able to log those user out if they in fact have locks...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;log user off if lock exists&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  IF l_num &amp;gt; 0.&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'TH_DELETE_USER'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        user   = sy-uname&lt;/P&gt;&lt;P&gt;        client = sy-mandt.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps I'm using the wrong elementary ock (UPC_YS_LOCK)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 19:49:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trying-to-read-locks-using-function-enqueue-read-not-returning-results/m-p/3689891#M888507</guid>
      <dc:creator>lisa_gravito</dc:creator>
      <dc:date>2008-04-09T19:49:43Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to read locks using function: ENQUEUE_READ not returning results.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trying-to-read-locks-using-function-enqueue-read-not-returning-results/m-p/3689892#M888508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lisa,&lt;/P&gt;&lt;P&gt;           Your code looks perfect. I think it is an authorization issue.  Check you have proper authorization to execute that Function Module as this is related to Security.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Greetson&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 19:51:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trying-to-read-locks-using-function-enqueue-read-not-returning-results/m-p/3689892#M888508</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-09T19:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to read locks using function: ENQUEUE_READ not returning results.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trying-to-read-locks-using-function-enqueue-read-not-returning-results/m-p/3689893#M888509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Will do!  I'll let you know whether I don't have the proper authorizations or not...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~ Lisa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 19:54:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trying-to-read-locks-using-function-enqueue-read-not-returning-results/m-p/3689893#M888509</guid>
      <dc:creator>lisa_gravito</dc:creator>
      <dc:date>2008-04-09T19:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to read locks using function: ENQUEUE_READ not returning results.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trying-to-read-locks-using-function-enqueue-read-not-returning-results/m-p/3689894#M888510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SImply pass client and that's it ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'UPC_YS_LOCK' is table name on which locks exist..if any entry of this table is not being edited currently..then it will not return anything...&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 = leave blank if you want locks across the system&lt;/P&gt;&lt;P&gt;gname = table name which is locked/leave blank&lt;/P&gt;&lt;P&gt;guname = leaveblank&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;number = l_num&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;enq = l_enq.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to see it work then simply pass the table name you see in sm12..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 20:01:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trying-to-read-locks-using-function-enqueue-read-not-returning-results/m-p/3689894#M888510</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-09T20:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to read locks using function: ENQUEUE_READ not returning results.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trying-to-read-locks-using-function-enqueue-read-not-returning-results/m-p/3689895#M888511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I ran the function without the table name and l_num was populated! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It makes sense that the table would only be populated with a lock if entries were being edited.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help guys!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~ Lisa Gravito&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 20:09:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trying-to-read-locks-using-function-enqueue-read-not-returning-results/m-p/3689895#M888511</guid>
      <dc:creator>lisa_gravito</dc:creator>
      <dc:date>2008-04-09T20:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to read locks using function: ENQUEUE_READ not returning results.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trying-to-read-locks-using-function-enqueue-read-not-returning-results/m-p/3689896#M888512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You forgot about our incentives?? OUR POINTS??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 20:12:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trying-to-read-locks-using-function-enqueue-read-not-returning-results/m-p/3689896#M888512</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-09T20:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to read locks using function: ENQUEUE_READ not returning results.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trying-to-read-locks-using-function-enqueue-read-not-returning-results/m-p/3689897#M888513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry! 1st time posting. Please let me know if I've now rewarded the points correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Lisa Gravito on Apr 9, 2008 3:18 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 20:17:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trying-to-read-locks-using-function-enqueue-read-not-returning-results/m-p/3689897#M888513</guid>
      <dc:creator>lisa_gravito</dc:creator>
      <dc:date>2008-04-09T20:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to read locks using function: ENQUEUE_READ not returning results.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trying-to-read-locks-using-function-enqueue-read-not-returning-results/m-p/3689898#M888514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 20:20:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trying-to-read-locks-using-function-enqueue-read-not-returning-results/m-p/3689898#M888514</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-09T20:20:26Z</dc:date>
    </item>
  </channel>
</rss>

