<?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: Using lock object in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-lock-object/m-p/6217160#M1378486</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; the use case is that i have option to delete bulk of users i,e, delete from table Z....  ?&lt;/P&gt;&lt;P&gt;An after-thought --&amp;gt; obviously there is some program using this table as well...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why don't you change the program to check an authorization object and then control the "entries" via the assignment of a role which includes with object with appropriate authorization fields?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This way you can re-use the same object with different field values, and use your FM in a modularized way - instead if using this lock workaround to treat a symptom of the design problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Julius&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 18 Oct 2009 21:13:48 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-10-18T21:13:48Z</dc:date>
    <item>
      <title>Using lock object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-lock-object/m-p/6217143#M1378469</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 have tables which are updated from FM .&lt;/P&gt;&lt;P&gt;the table have user context .&lt;/P&gt;&lt;P&gt;my question is if i need to use lock object if i dont create maintenance view for the tables ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or in other words when to use it and when not ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;JOy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Joy Stpr on Oct 18, 2009 8:29 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Oct 2009 20:30:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-lock-object/m-p/6217143#M1378469</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-17T20:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: Using lock object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-lock-object/m-p/6217144#M1378470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If there's any possibility of two users trying to update the same record at the same time, then you need to use locking.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Oct 2009 12:21:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-lock-object/m-p/6217144#M1378470</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2009-10-18T12:21:00Z</dc:date>
    </item>
    <item>
      <title>Re: Using lock object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-lock-object/m-p/6217145#M1378471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When your tables ared used in a user context you should use proper locking.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you say that the tables are updated via function modules check the function group of these function modules.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Most probably the function group will contain function modules to logically lock the table via enqueues functions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can build in these enqueue functions in your program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Oct 2009 14:00:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-lock-object/m-p/6217145#M1378471</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-18T14:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: Using lock object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-lock-object/m-p/6217146#M1378472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my 2 cents added: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The standard maintenance view uses a generic lock object locking the whole table - as long as a user edits the table using the maintenance view, no other user can change the table using this maintenance view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you create a table-specific lock object, you can specify a key for locking so that speific records are not changed at the same time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is ample documentation on lock objects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Oct 2009 14:32:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-lock-object/m-p/6217146#M1378472</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2009-10-18T14:32:36Z</dc:date>
    </item>
    <item>
      <title>Re: Using lock object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-lock-object/m-p/6217147#M1378473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well to be specific I had used Locking the object in HR module, so i would like to explain based on that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HR modules have many views in a transaction...and they display data from tables.&lt;/P&gt;&lt;P&gt;now when we change data...at times it is necessary that the data must not be changed at all.&lt;/P&gt;&lt;P&gt;in such scenarios, we lock the object, means no changes can be done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as 1 friend has rightly mentioned abt enqueue function.&lt;/P&gt;&lt;P&gt;actually theres a function module for enqueue...when u need to make any changes to the data...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u shud 1st enqueue that particular record, so that no one else can edit it, or work on it....after making necessary changes, u then dequeue it...so that it becomes accessible for editing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so, basically locks, as name suggest can be used to prevent editing.&lt;/P&gt;&lt;P&gt;either temporarily till u r making changes to it....or for a long time...&lt;/P&gt;&lt;P&gt;but the locks can also be removed by coding...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this information helps u &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Radhika&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Oct 2009 17:05:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-lock-object/m-p/6217147#M1378473</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-18T17:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: Using lock object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-lock-object/m-p/6217148#M1378474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message&lt;/SPAN&gt;&lt;/STRONG&gt; The use of abbreviations like "abt" instead of "about" is suitable when you send a text message, or when you use IM.  It is not suitable for a professional forum.  &lt;STRONG&gt;Please&lt;/STRONG&gt; spell words out in &lt;STRONG&gt;full&lt;/STRONG&gt;.  Not everyone on these forums is a fluent English speaker and the use of abbreviations doesn't help - and it is lazy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Oct 2009 18:07:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-lock-object/m-p/6217148#M1378474</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2009-10-18T18:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: Using lock object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-lock-object/m-p/6217149#M1378475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry &lt;STRONG&gt;about&lt;/STRONG&gt; it moderator...would take care next time...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Oct 2009 18:13:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-lock-object/m-p/6217149#M1378475</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-18T18:13:45Z</dc:date>
    </item>
    <item>
      <title>Re: Using lock object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-lock-object/m-p/6217150#M1378476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;good. &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Oct 2009 18:15:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-lock-object/m-p/6217150#M1378476</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2009-10-18T18:15:05Z</dc:date>
    </item>
    <item>
      <title>Re: Using lock object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-lock-object/m-p/6217151#M1378477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please do me another favour as well in telling &lt;SPAN __jive_macro_name="user" id="3979301"&gt;&lt;/SPAN&gt; to also not use the same type of sms txt spk in the same places and in the same threads as your same answers...?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Oct 2009 18:25:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-lock-object/m-p/6217151#M1378477</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-18T18:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: Using lock object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-lock-object/m-p/6217152#M1378478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Matt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what should i do in bulk delete of users ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the use case is that i have option to delete bulk of users i,e, delete from table Z....  ?&lt;/P&gt;&lt;P&gt;one option is to do loop but it's not good from performance aspects so what u suggest ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards Joy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Oct 2009 18:44:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-lock-object/m-p/6217152#M1378478</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-18T18:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: Using lock object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-lock-object/m-p/6217153#M1378479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sir,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I tell someone to stop using sms type text...I was told by moderator, I corrected myself.&lt;/P&gt;&lt;P&gt;It would be good if moderator tells that person directly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Oct 2009 18:54:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-lock-object/m-p/6217153#M1378479</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-18T18:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: Using lock object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-lock-object/m-p/6217154#M1378480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; It would be good if moderator tells that person directly.&lt;/P&gt;&lt;P&gt;That person told us that they know you, quite well...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Oct 2009 19:44:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-lock-object/m-p/6217154#M1378480</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-18T19:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: Using lock object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-lock-object/m-p/6217155#M1378481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As this is a z-table updated from a z-FM, why don't you try locking the use of the FM (or transaction to call it) while it is being called by another user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are some SAP standard transactions which work in this way. Take a look at STRUST for an example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you choose a transaction code option and it is a report type transaction, then remember to call FM AUTHORITY_CHECK_TCODE in the report as well...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps if you give clearer information upfront when asking the question, then it will save folks a lot of guess work, if they read the question clearly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Julius&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Oct 2009 19:59:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-lock-object/m-p/6217155#M1378481</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-18T19:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: Using lock object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-lock-object/m-p/6217156#M1378482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;oh that is strange and weird.....&lt;/P&gt;&lt;P&gt;but i can say for sure i dont know that person...100% sure.....&lt;/P&gt;&lt;P&gt;basically i dont know anyone from sdn forum, i just come here to give answers and to find out answers to my questions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I feel this discussion is going away from the actual topic. Sir, you can warn that person, since you have the authority. I dont know that person. I cant tell &amp;amp; I wont tell. Sorry.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Oct 2009 20:08:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-lock-object/m-p/6217156#M1378482</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-18T20:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: Using lock object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-lock-object/m-p/6217157#M1378483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; I feel this discussion is going away from the actual topic.&lt;/P&gt;&lt;P&gt;True. I will hand it over to SAP to investigate that user further.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Oct 2009 20:19:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-lock-object/m-p/6217157#M1378483</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-18T20:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: Using lock object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-lock-object/m-p/6217158#M1378484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fine. Thank you very much sir.&lt;/P&gt;&lt;P&gt;I wonder how can someone just say that they know me quite well, whereas i dont know that person at all.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Oct 2009 20:29:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-lock-object/m-p/6217158#M1378484</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-18T20:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: Using lock object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-lock-object/m-p/6217159#M1378485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, even I am finding it strange that the person is sending me mails then.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please change your password to be safe.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Julius&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Oct 2009 20:38:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-lock-object/m-p/6217159#M1378485</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-18T20:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: Using lock object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-lock-object/m-p/6217160#M1378486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; the use case is that i have option to delete bulk of users i,e, delete from table Z....  ?&lt;/P&gt;&lt;P&gt;An after-thought --&amp;gt; obviously there is some program using this table as well...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why don't you change the program to check an authorization object and then control the "entries" via the assignment of a role which includes with object with appropriate authorization fields?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This way you can re-use the same object with different field values, and use your FM in a modularized way - instead if using this lock workaround to treat a symptom of the design problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Julius&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Oct 2009 21:13:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-lock-object/m-p/6217160#M1378486</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-18T21:13:48Z</dc:date>
    </item>
  </channel>
</rss>

