<?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: restrict multiple users from edit the data in custom tcode in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/restrict-multiple-users-from-edit-the-data-in-custom-tcode/m-p/12063777#M1969497</link>
    <description>&lt;P&gt;Generally speaking, to support mass update in background in parallel processes, between the read (1) and the lock (3), it could be locked by another process, so I think it's best to use this logic as rule of thumb:&lt;/P&gt;&lt;OL&gt;
&lt;LI&gt;Try to lock the object (ENQUEUE)&lt;/LI&gt;&lt;LI&gt;If locked, throw error on edit&lt;/LI&gt;&lt;LI&gt;Otherwise proceed with editing.&lt;/LI&gt;&lt;LI&gt;At save, release the lock&lt;/LI&gt;&lt;/OL&gt;</description>
    <pubDate>Thu, 21 Nov 2019 10:44:16 GMT</pubDate>
    <dc:creator>Sandra_Rossi</dc:creator>
    <dc:date>2019-11-21T10:44:16Z</dc:date>
    <item>
      <title>restrict multiple users from edit the data in custom tcode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restrict-multiple-users-from-edit-the-data-in-custom-tcode/m-p/12063767#M1969487</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
  &lt;P&gt;In my module pool, I have two input fields and in application tool bar I have Create, Change and Display icons. For the given inputs user clicks on Create/Change and enter some data in the table controls and save the data into database. If one user is trying to Create/Change the data for the given inupts, other users should not be able to go Create/Change mode. Only Display mode should be allowed. I used the function module 'RSAU_WRITE_SM01_LOG' but still other users are able to go into change mode. How can we restrict this. Please let me know if anyone have done this.&lt;/P&gt;
  &lt;P&gt;Thanks,&lt;/P&gt;
  &lt;P&gt;Haritha&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2019 13:36:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restrict-multiple-users-from-edit-the-data-in-custom-tcode/m-p/12063767#M1969487</guid>
      <dc:creator>Bharath84</dc:creator>
      <dc:date>2019-11-20T13:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: restrict multiple users from edit the data in custom tcode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restrict-multiple-users-from-edit-the-data-in-custom-tcode/m-p/12063768#M1969488</link>
      <description>&lt;P&gt;I think you go completely the wrong way with RSAU_WRITE_SM01_LOG!&lt;/P&gt;&lt;P&gt;What you are looking for is a lock to be set when a user is editing the "object", and any other person trying to edit this same object will be rejected because a lock exists. Please search the forum for "lock object" (enqueue, dequeue, etc.)&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2019 13:42:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restrict-multiple-users-from-edit-the-data-in-custom-tcode/m-p/12063768#M1969488</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2019-11-20T13:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: restrict multiple users from edit the data in custom tcode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restrict-multiple-users-from-edit-the-data-in-custom-tcode/m-p/12063769#M1969489</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;You should look at locking objects concept in SAP. There you can find the way to lock a table and what are the options when doing the locking.&lt;/P&gt;&lt;P&gt;For more information, be free to ask.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Igor&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2019 13:47:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restrict-multiple-users-from-edit-the-data-in-custom-tcode/m-p/12063769#M1969489</guid>
      <dc:creator>IN</dc:creator>
      <dc:date>2019-11-20T13:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: restrict multiple users from edit the data in custom tcode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restrict-multiple-users-from-edit-the-data-in-custom-tcode/m-p/12063770#M1969490</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I do not know which object you are updating but you may use lock objects to restrict access (via enqueue &amp;amp; dequeue).&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2019 13:48:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restrict-multiple-users-from-edit-the-data-in-custom-tcode/m-p/12063770#M1969490</guid>
      <dc:creator>dev_parbutteea</dc:creator>
      <dc:date>2019-11-20T13:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: restrict multiple users from edit the data in custom tcode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restrict-multiple-users-from-edit-the-data-in-custom-tcode/m-p/12063771#M1969491</link>
      <description>&lt;P&gt;You have to use the lock object. You will get enough information in google. So, basically when you create a lock object, 2 function module will be created. Once for en-queue that is to put a lock and another one is de-queue which is to release the lock. Once it's lock, you can see it in SM12.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Gourab &lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2019 19:04:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restrict-multiple-users-from-edit-the-data-in-custom-tcode/m-p/12063771#M1969491</guid>
      <dc:creator>Gourab_Dey</dc:creator>
      <dc:date>2019-11-20T19:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: restrict multiple users from edit the data in custom tcode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restrict-multiple-users-from-edit-the-data-in-custom-tcode/m-p/12063772#M1969492</link>
      <description>&lt;P&gt;Create a custom (Z-) lock object for your T-Code. If a user can enqueue, he/she can edit. If not, he/she should see the data in read only mode.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2019 05:24:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restrict-multiple-users-from-edit-the-data-in-custom-tcode/m-p/12063772#M1969492</guid>
      <dc:creator>keremkoseoglu</dc:creator>
      <dc:date>2019-11-21T05:24:58Z</dc:date>
    </item>
    <item>
      <title>Re: restrict multiple users from edit the data in custom tcode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restrict-multiple-users-from-edit-the-data-in-custom-tcode/m-p/12063773#M1969493</link>
      <description>&lt;P&gt; @&lt;A href="https://answers.sap.com/users/22399/vidyap.html"&gt;Haritha P&lt;/A&gt; It can be achieved by using lock object, create a lock object for the table which you are using in the Table control.&lt;/P&gt;&lt;P&gt;In the beginning of the program call created lock objects ENQUEUE to lock the data and at the end call DEQUEUE to release the lock&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.sap.com/viewer/ec1c9c8191b74de98feb94001a95dd76/7.3.19/en-US/af22ab01dd0b11d1952000a0c929b3c3.html" target="_blank"&gt;SAP Help Lock objects&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.tutorialspoint.com/sap_abap/sap_abap_lock_objects.htm" target="_blank"&gt;Lock Object creation and consumption reference&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2019 05:44:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restrict-multiple-users-from-edit-the-data-in-custom-tcode/m-p/12063773#M1969493</guid>
      <dc:creator>ThangaPrakash</dc:creator>
      <dc:date>2019-11-21T05:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: restrict multiple users from edit the data in custom tcode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restrict-multiple-users-from-edit-the-data-in-custom-tcode/m-p/12063774#M1969494</link>
      <description>&lt;P&gt;Hi Prakash,&lt;/P&gt;&lt;P&gt;I have already used this ENQUE and DEQUE function modules in my module pool program when updating my custom tables. Here what I am trying to do is, if one user click on Change icon in application tool bar, all the tabs are in editable mode. If other users try to click on Change icon, it should throw an error message 'One user already editing the data, only display allowed'.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Haritha&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2019 07:02:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restrict-multiple-users-from-edit-the-data-in-custom-tcode/m-p/12063774#M1969494</guid>
      <dc:creator>Bharath84</dc:creator>
      <dc:date>2019-11-21T07:02:27Z</dc:date>
    </item>
    <item>
      <title>Re: restrict multiple users from edit the data in custom tcode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restrict-multiple-users-from-edit-the-data-in-custom-tcode/m-p/12063775#M1969495</link>
      <description>&lt;P&gt;  &lt;SPAN class="mention-scrubbed"&gt;vidya.p&lt;/SPAN&gt;  If that is the case, under Change Icon user command, check for the lock entries using FM 'ENQUEUE_READ' and if there is lock for your transaction/program/table, then raise a message 'One user already editing the data, only display allowed'.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2019 07:20:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restrict-multiple-users-from-edit-the-data-in-custom-tcode/m-p/12063775#M1969495</guid>
      <dc:creator>ThangaPrakash</dc:creator>
      <dc:date>2019-11-21T07:20:25Z</dc:date>
    </item>
    <item>
      <title>Re: restrict multiple users from edit the data in custom tcode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restrict-multiple-users-from-edit-the-data-in-custom-tcode/m-p/12063776#M1969496</link>
      <description>&lt;P&gt; &lt;SPAN class="mention-scrubbed"&gt;vidya.p&lt;/SPAN&gt; that's the use of Lock objects!&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Read if the object is locked&lt;/LI&gt;&lt;LI&gt;If locked, throw error on edit&lt;/LI&gt;&lt;LI&gt;if not locked, lock it and procede with editing.&lt;/LI&gt;&lt;LI&gt;At save, release the lock&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Thu, 21 Nov 2019 09:16:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restrict-multiple-users-from-edit-the-data-in-custom-tcode/m-p/12063776#M1969496</guid>
      <dc:creator>SimoneMilesi</dc:creator>
      <dc:date>2019-11-21T09:16:57Z</dc:date>
    </item>
    <item>
      <title>Re: restrict multiple users from edit the data in custom tcode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restrict-multiple-users-from-edit-the-data-in-custom-tcode/m-p/12063777#M1969497</link>
      <description>&lt;P&gt;Generally speaking, to support mass update in background in parallel processes, between the read (1) and the lock (3), it could be locked by another process, so I think it's best to use this logic as rule of thumb:&lt;/P&gt;&lt;OL&gt;
&lt;LI&gt;Try to lock the object (ENQUEUE)&lt;/LI&gt;&lt;LI&gt;If locked, throw error on edit&lt;/LI&gt;&lt;LI&gt;Otherwise proceed with editing.&lt;/LI&gt;&lt;LI&gt;At save, release the lock&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Thu, 21 Nov 2019 10:44:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restrict-multiple-users-from-edit-the-data-in-custom-tcode/m-p/12063777#M1969497</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2019-11-21T10:44:16Z</dc:date>
    </item>
  </channel>
</rss>

