<?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: Query about SAP locks /enqueue objects in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-about-sap-locks-enqueue-objects/m-p/1318036#M164389</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This does not really help though if I set a lock on the entries viewd by that user as the function module 'ENQUEUE_*' will produce a foreign lock.  I have used Vicky's idea of adding a value by adding NULL where space which should hopefully do the trick.&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;Larissa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 31 May 2006 13:57:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-05-31T13:57:54Z</dc:date>
    <item>
      <title>Query about SAP locks /enqueue objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-about-sap-locks-enqueue-objects/m-p/1318031#M164384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have created an lock object for a bespoke table which has 5 key fields.  For arguments sake let's call them&lt;/P&gt;&lt;P&gt;WERKS QMGRP QMCOD OTGRP OTEIL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem I have is the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;User 1 has a house profile that can access the following data:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;WERKS QMGRP QMCOD OTGRP OTEIL
9026  HOUSE CUST &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;User 2  has a functional profile which gives them access to the following:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;WERKS QMGRP QMCOD OTGRP OTEIL
9026  HOUSE CUST  
9026  HOUSE CUST   CS    C001
9026  HOUSE CUST   CS    C002&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I am building a front-end to the table to enable the users to change data associated with these keys.  My problem is the following.  If User 2 locks the entries,(s)he has access to first, the user 1 entry will be locked to changes,  which is correct.  If, however, user 1 locks its entry first, &amp;lt;b&amp;gt;all&amp;lt;/b&amp;gt; of user 2's entries are locked even though only the first entry is allowed to be accessed by both.  I think this is happening because the SAP lock object does not recognise '   ' '    ' as a separate value to 'CS' 'C001'.  It thinks because 9026 HOUSE CUST '   ' '    ' is locked, then the other entries should be locked because they share 9026 HOUSE CUST from the key, even though there are other values in the key following 9026 HOUSE CUST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want is if user 1 locks its entry first, then only the entry that matches the key  totally for user 2 is locked, leaving the other 2 entries to which user 2 has access free to be edited.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way I can get the SAP lock object to recognise this eitehr by changing the enqueue function module or by the way I cal the enqueue object or not?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this makes sense&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Larissa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 May 2006 12:29:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-about-sap-locks-enqueue-objects/m-p/1318031#M164384</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-31T12:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: Query about SAP locks /enqueue objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-about-sap-locks-enqueue-objects/m-p/1318032#M164385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Larissa,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go through the link below. It may help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapsuperusers.com/forums/showthread.php?t=4896" target="test_blank"&gt;http://www.sapsuperusers.com/forums/showthread.php?t=4896&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward points if it helps.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit Mishra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 May 2006 12:39:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-about-sap-locks-enqueue-objects/m-p/1318032#M164385</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-31T12:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: Query about SAP locks /enqueue objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-about-sap-locks-enqueue-objects/m-p/1318033#M164386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Amit but that is not what I am really looking for.  I know how to create a lock object as I have already created one.  What I am after is determing a space as a value for the key instead of the SAP locks locking any entry after that where the partial key matches.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Larissa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 May 2006 13:20:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-about-sap-locks-enqueue-objects/m-p/1318033#M164386</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-31T13:20:10Z</dc:date>
    </item>
    <item>
      <title>Re: Query about SAP locks /enqueue objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-about-sap-locks-enqueue-objects/m-p/1318034#M164387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Larissa,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as I know, You cannot change generated enqueue function module. The other way as i think might work would be to create a new FM and do manipulation (for space to be changed as some other value) before calling this generated Enqueue FM. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vicky&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: Award points if helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 May 2006 13:34:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-about-sap-locks-enqueue-objects/m-p/1318034#M164387</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-31T13:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: Query about SAP locks /enqueue objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-about-sap-locks-enqueue-objects/m-p/1318035#M164388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You might use FM ENQUEUE_READ to check what is locked and build your logic based on the entries locked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 May 2006 13:49:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-about-sap-locks-enqueue-objects/m-p/1318035#M164388</guid>
      <dc:creator>Peter_Inotai</dc:creator>
      <dc:date>2006-05-31T13:49:24Z</dc:date>
    </item>
    <item>
      <title>Re: Query about SAP locks /enqueue objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-about-sap-locks-enqueue-objects/m-p/1318036#M164389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This does not really help though if I set a lock on the entries viewd by that user as the function module 'ENQUEUE_*' will produce a foreign lock.  I have used Vicky's idea of adding a value by adding NULL where space which should hopefully do the trick.&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;Larissa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 May 2006 13:57:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-about-sap-locks-enqueue-objects/m-p/1318036#M164389</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-31T13:57:54Z</dc:date>
    </item>
  </channel>
</rss>

