<?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: Locking a Program for only 1 user in edit mode in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-a-program-for-only-1-user-in-edit-mode/m-p/9489832#M1745971</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can this be done by value?&amp;nbsp; For example, when a user is changing a material in MM02, MARA is locked, only that Material Number is locked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Jayden&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Jun 2013 14:17:48 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2013-06-25T14:17:48Z</dc:date>
    <item>
      <title>Locking a Program for only 1 user in edit mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-a-program-for-only-1-user-in-edit-mode/m-p/9489823#M1745962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts, I need to be able to lock a program based on a paramter on the selection screen so that only one user can edit at a time.&amp;nbsp; Just like MM02, COr2, and XD02 have the ability to restrict one user to change the material number, process order and customer numbers.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will be different than just chcking for a lock table.&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;Thanks&lt;/P&gt;&lt;P&gt;Jayden&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jun 2013 18:36:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/locking-a-program-for-only-1-user-in-edit-mode/m-p/9489823#M1745962</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-06-24T18:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: Locking a Program for only 1 user in edit mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-a-program-for-only-1-user-in-edit-mode/m-p/9489824#M1745963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jayden,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I doubt i understand your question.&lt;/P&gt;&lt;P&gt;A program can only be edited by a single user at a time and that is standard behavior.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Having said that, if you want a single user to run any program at a&amp;nbsp; time, then you can refer the code here - &lt;A _jive_internal="true" href="https://answers.sap.com/thread/1838118"&gt;http://scn.sap.com/thread/1838118&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jun 2013 03:23:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/locking-a-program-for-only-1-user-in-edit-mode/m-p/9489824#M1745963</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-06-25T03:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: Locking a Program for only 1 user in edit mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-a-program-for-only-1-user-in-edit-mode/m-p/9489825#M1745964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jayden,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can achieve by using LOCK OBJECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jun 2013 03:46:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/locking-a-program-for-only-1-user-in-edit-mode/m-p/9489825#M1745964</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-06-25T03:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: Locking a Program for only 1 user in edit mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-a-program-for-only-1-user-in-edit-mode/m-p/9489826#M1745965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your Lock Object should have the values which you wanted lock from other users.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As In MM02 selection-screen, locking parameter is client+material number.&lt;/P&gt;&lt;P&gt;Same way you should have your required fields in your locking parameter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jun 2013 04:23:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/locking-a-program-for-only-1-user-in-edit-mode/m-p/9489826#M1745965</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-06-25T04:23:20Z</dc:date>
    </item>
    <item>
      <title>Re: Locking a Program for only 1 user in edit mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-a-program-for-only-1-user-in-edit-mode/m-p/9489827#M1745966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This won't be any different from checking a lock table. In fact, that &lt;STRONG&gt;is&lt;/STRONG&gt; your solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jun 2013 04:30:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/locking-a-program-for-only-1-user-in-edit-mode/m-p/9489827#M1745966</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2013-06-25T04:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: Locking a Program for only 1 user in edit mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-a-program-for-only-1-user-in-edit-mode/m-p/9489828#M1745967</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;The program can be edited ( as in change code ) only by single user at a time. But if you meant that only one user can execute the program at any given time you can achieve the same by setting parameters say like a flag field in Ztable is set via the selection screen checkbox to state that the program is being used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code should clear it at the end of program. Then you can always have a list to refer to via any program that you want checked before execution&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Arindam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jun 2013 04:47:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/locking-a-program-for-only-1-user-in-edit-mode/m-p/9489828#M1745967</guid>
      <dc:creator>arindam_m</dc:creator>
      <dc:date>2013-06-25T04:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: Locking a Program for only 1 user in edit mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-a-program-for-only-1-user-in-edit-mode/m-p/9489829#M1745968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I was referring to the execution of the program, not the editing of the program in se38 or se80.&lt;/P&gt;&lt;P&gt;In using a LOCK OBJECT what happens if the connection to SAP is lost or the program never finishes?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My worries is with a hung session.&amp;nbsp; Would assigning a value to a memory ID work?&amp;nbsp; Then FREE this value once the program is finished?&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Arindam, this is the reason that I don't want to create a value and put in a ztable.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jun 2013 12:59:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/locking-a-program-for-only-1-user-in-edit-mode/m-p/9489829#M1745968</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-06-25T12:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: Locking a Program for only 1 user in edit mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-a-program-for-only-1-user-in-edit-mode/m-p/9489830#M1745969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I almost forgot.&amp;nbsp; THanks for ALL of the replys&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jun 2013 13:00:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/locking-a-program-for-only-1-user-in-edit-mode/m-p/9489830#M1745969</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-06-25T13:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: Locking a Program for only 1 user in edit mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-a-program-for-only-1-user-in-edit-mode/m-p/9489831#M1745970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jayden,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As Pavan and others said just create a lock object in SE11 specifying the table name that needs to edited by one user and then call the function module "ENQUEUE_yourlockobject" in program and at the end dequeue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srikanth.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jun 2013 13:11:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/locking-a-program-for-only-1-user-in-edit-mode/m-p/9489831#M1745970</guid>
      <dc:creator>former_member213275</dc:creator>
      <dc:date>2013-06-25T13:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: Locking a Program for only 1 user in edit mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-a-program-for-only-1-user-in-edit-mode/m-p/9489832#M1745971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can this be done by value?&amp;nbsp; For example, when a user is changing a material in MM02, MARA is locked, only that Material Number is locked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Jayden&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jun 2013 14:17:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/locking-a-program-for-only-1-user-in-edit-mode/m-p/9489832#M1745971</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-06-25T14:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: Locking a Program for only 1 user in edit mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-a-program-for-only-1-user-in-edit-mode/m-p/9489833#M1745972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jayden,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are on the right track, and you've been given good advice so far.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example if you search the lock objects available in SE11 for "MARA" in the description, you may find lock object EMMARAE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That has lock parameters of MANDT and MATNR, so you can limit to a single material.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can lock more than 1 table with a lock object if that is your requirement and the right foreign keys are avialable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are worried about old locks causing problems, just check out transaction SM12. In fact, why not write a little prototype and check out SM12 while running your code through the debugger.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps, and watch out for deadly embraces &lt;SPAN __jive_emoticon_name="wink" __jive_macro_name="emoticon" class="jive_macro jive_macro_emoticon jive_emote" src="https://community.sap.com/1581/images/emoticons/wink.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stuart.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jun 2013 16:36:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/locking-a-program-for-only-1-user-in-edit-mode/m-p/9489833#M1745972</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-06-25T16:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: Locking a Program for only 1 user in edit mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-a-program-for-only-1-user-in-edit-mode/m-p/9489834#M1745973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jayden,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see the sample code at &lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://answers.sap.com/thread/1838118" style="font-size: 12px; background-color: #ffffff; color: #3778c7; text-decoration: underline !important;"&gt;http://scn.sap.com/thread/1838118&lt;/A&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;BR.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jun 2013 06:36:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/locking-a-program-for-only-1-user-in-edit-mode/m-p/9489834#M1745973</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-06-26T06:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: Locking a Program for only 1 user in edit mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-a-program-for-only-1-user-in-edit-mode/m-p/9489835#M1745974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could&amp;nbsp; read some documentation like &lt;A class="active_link" href="https://help.sap.com/saphelp_crm700_ehp02/helpdata/en/41/7af4c5a79e11d1950f0000e82de14a/frameset.htm"&gt;The SAP Lock Concept&lt;/A&gt;, and its &lt;A href="https://help.sap.com/saphelp_crm700_ehp02/helpdata/en/41/7af4c8a79e11d1950f0000e82de14a/content.htm?frameset=/en/41/7af4c5a79e11d1950f0000e82de14a/frameset.htm"&gt;&lt;SPAN lang="DE"&gt;Example Program: SAP Locking&lt;/SPAN&gt;&lt;/A&gt;. (after a brief&amp;nbsp; search on google with option site:help.sap.com)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jun 2013 07:09:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/locking-a-program-for-only-1-user-in-edit-mode/m-p/9489835#M1745974</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2013-06-26T07:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: Locking a Program for only 1 user in edit mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-a-program-for-only-1-user-in-edit-mode/m-p/9489836#M1745975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Jaydan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can create Lock object using T-code SE11 , Naming convention start with 'E' e.g. Exxx (where xxx is a table name), then say create. Then 'table tab' please select correct locking mode that is either 'Read' or 'Write' and under 'lock parameter tab' you select which column are required to be lock.&lt;/P&gt;&lt;P&gt;Once you create and activate automatically two functions modules are getting created like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENQUEUE_Exxx ( To lock)&lt;/P&gt;&lt;P&gt;DEQUEUE_Exxx ( To unlock)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and use above function modules for locking the tables. Also you can use secondary tables for locking purpose.&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;Vaman Kamat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jun 2013 07:30:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/locking-a-program-for-only-1-user-in-edit-mode/m-p/9489836#M1745975</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-06-26T07:30:21Z</dc:date>
    </item>
  </channel>
</rss>

