<?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: Restricting users using the same transaction at the same time to display in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-users-using-the-same-transaction-at-the-same-time-to-display/m-p/8069083#M1613402</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;Create a structure and put a lock on it. &lt;/P&gt;&lt;P&gt;Se lock object &lt;STRONG&gt;E_BGRFC_I_SERV_R&lt;/STRONG&gt; for example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Aug 2011 16:00:00 GMT</pubDate>
    <dc:creator>StMou</dc:creator>
    <dc:date>2011-08-08T16:00:00Z</dc:date>
    <item>
      <title>Restricting users using the same transaction at the same time to display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-users-using-the-same-transaction-at-the-same-time-to-display/m-p/8069077#M1613396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is user will put a value in one field on selection screen. In case the current user is running the report, the same time any other user should not be able to display the report for the same value entered in the field on the selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How it could be done? I could not use table lock because the field is not a key in the table.&lt;/P&gt;&lt;P&gt;Whether the authority check could be used in this case? If yes,how.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2011 20:35:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-users-using-the-same-transaction-at-the-same-time-to-display/m-p/8069077#M1613396</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-05T20:35:04Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting users using the same transaction at the same time to display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-users-using-the-same-transaction-at-the-same-time-to-display/m-p/8069078#M1613397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rahul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can set just any lock on the program name. There is one generic lock object which is used for customizing tables: Edit anything in customizing, check lock object in SM12 lock overview. Use this l,ock object with parameter table pass your program name. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If lock fails because of foreign lock (someone else uses report), finish with E message.&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>Fri, 05 Aug 2011 22:38:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-users-using-the-same-transaction-at-the-same-time-to-display/m-p/8069078#M1613397</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2011-08-05T22:38:47Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting users using the same transaction at the same time to display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-users-using-the-same-transaction-at-the-same-time-to-display/m-p/8069079#M1613398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Clemens,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply. But i do not want to set the lock on the program based on the program name only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is to check if the entry in selection screen entered by two users are same. &lt;/P&gt;&lt;P&gt;If yes, only the first user should be able to display the report while for the other it should through the error messeage.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest a way in which i could check for the field values in the selection screen and restrict the access based on the same.&lt;/P&gt;&lt;P&gt;That means parameters in which i could pass the field name and field values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Aug 2011 01:17:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-users-using-the-same-transaction-at-the-same-time-to-display/m-p/8069079#M1613398</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-06T01:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting users using the same transaction at the same time to display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-users-using-the-same-transaction-at-the-same-time-to-display/m-p/8069080#M1613399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;you can use order save badi where u can use enque concept to prevent 2 user using at the same time &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;sarveshvaran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Aug 2011 05:36:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-users-using-the-same-transaction-at-the-same-time-to-display/m-p/8069080#M1613399</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-06T05:36:10Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting users using the same transaction at the same time to display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-users-using-the-same-transaction-at-the-same-time-to-display/m-p/8069081#M1613400</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;do one this : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. After enter value in selection screen , you should the save the values in global field for each field, if any another person try to enter the same values before u can check the global values and display error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or u should lock the report by using the following function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'THUSRINFO'&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    usr_tabl       = itab.&lt;/P&gt;&lt;P&gt;&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;moon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Aug 2011 10:19:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-users-using-the-same-transaction-at-the-same-time-to-display/m-p/8069081#M1613400</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-06T10:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting users using the same transaction at the same time to display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-users-using-the-same-transaction-at-the-same-time-to-display/m-p/8069082#M1613401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rahul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope I get your request right:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You do not want more than one user to have exactly the same values in selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you aware that a selection screen may have rather complex values in extended selections? That means even if the selection screen is filled in a different way, the same data may be selected. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: You have 4 document types in system, A, B, C, D. One users excludes A B C and the other one selects only D. Result is same. And what abaout one users wants A and B, the other one B and C. Allowed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is only required that the selection screen content is different, I'd know a solution but do not see any comprehensible business reason.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; If you want to restrict the results, it will be far more complex, then you have still the question of allowed Disjoint or Intersection union of results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And here I do not see any possible reason not allowing two users to see the same data. What if one is lokking over the other's shoulder???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The best thing will be, you give one or two simple examples of what is allowed and what is not and why - best is using specific tangible things.&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>Sat, 06 Aug 2011 13:08:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-users-using-the-same-transaction-at-the-same-time-to-display/m-p/8069082#M1613401</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2011-08-06T13:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting users using the same transaction at the same time to display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-users-using-the-same-transaction-at-the-same-time-to-display/m-p/8069083#M1613402</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;Create a structure and put a lock on it. &lt;/P&gt;&lt;P&gt;Se lock object &lt;STRONG&gt;E_BGRFC_I_SERV_R&lt;/STRONG&gt; for example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Aug 2011 16:00:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-users-using-the-same-transaction-at-the-same-time-to-display/m-p/8069083#M1613402</guid>
      <dc:creator>StMou</dc:creator>
      <dc:date>2011-08-08T16:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting users using the same transaction at the same time to display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-users-using-the-same-transaction-at-the-same-time-to-display/m-p/8069084#M1613403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rahul ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; You can do  what you required  but for that  you have to take little more effort  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;step to follow  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Create one table  ZPROGRAM_LOCK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MANDT	MANDT	CLNT	3	0	Client&lt;/P&gt;&lt;P&gt;PROGRAM_NAME	PRGNAME	CHAR	40	0	Program Name&lt;/P&gt;&lt;P&gt;VARIANT_NAME	VARNA	CHAR	14	0	ABAP variant name&lt;/P&gt;&lt;P&gt;IS_RUNNING		CHAR	1	0	Running or not&lt;/P&gt;&lt;P&gt;USNAM	USNAM	CHAR	12	0	User Name&lt;/P&gt;&lt;P&gt;CPUDT	CPUDT	DATS	8	0	Day On Which Accounting Document Was Entered&lt;/P&gt;&lt;P&gt;ACTUSER	N2_UTERM	CHAR	20	0	Terminal Identification&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)   IN your report  Write logic  to check entry in table   whether the program is running  or not  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  select single actuser&lt;/P&gt;&lt;P&gt;   into p_terminal&lt;/P&gt;&lt;P&gt;   from zprogram_lock&lt;/P&gt;&lt;P&gt;  where program_name in ('ZPR133_A2_OUTPUT_BOOKING','ZPR133_F3_OUTPUT_BOOKING','ZPR133_IQ_OUTPUT_BOOKING').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if not p_terminal is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    concatenate 'Program already running on termial-' p_terminal '. Please try after some time.!!!' into p_run .&lt;/P&gt;&lt;P&gt;    message p_run type 'I'.&lt;/P&gt;&lt;P&gt;    is_ok = 'N'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    wa_itab-mandt = sy-mandt.&lt;/P&gt;&lt;P&gt;    wa_itab-program_name = sy-repid.&lt;/P&gt;&lt;P&gt;    wa_itab-variant_name = ''.&lt;/P&gt;&lt;P&gt;    wa_itab-is_running   = 'Y'.&lt;/P&gt;&lt;P&gt;    wa_itab-usnam        = sy-uname.&lt;/P&gt;&lt;P&gt;    wa_itab-cpudt        = sy-datum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    call function 'ISH_N2_GET_TERMINAL_ID'&lt;/P&gt;&lt;P&gt;      importing&lt;/P&gt;&lt;P&gt;        ss_terminal = wa_itab-actuser.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    insert into zprogram_lock values wa_itab.&lt;/P&gt;&lt;P&gt;    commit work.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3)  Then you can pass  program name and varient  to another function module to get tdetails   of parameter  so that you can check with your program  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;YOu can use function module RS_COVERPAGE_SELECTIONS or  RS_REFRESH_FROM_SELECTOPTIONS .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i hope this will help .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Deepak.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2011 05:41:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/restricting-users-using-the-same-transaction-at-the-same-time-to-display/m-p/8069084#M1613403</guid>
      <dc:creator>deepak_dhamat</dc:creator>
      <dc:date>2011-08-09T05:41:41Z</dc:date>
    </item>
  </channel>
</rss>

