<?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: Blocking a report from execution in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/blocking-a-report-from-execution/m-p/6444669#M1412821</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;As volker has mentioned, this is the best technique according to my opinion. This is the technique that standard SAP uses.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Create using SE11 and new Z lock object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. In the first 3 programs, using the FM generated by the above Z lock object, do locking.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. In the fourth program, again use the FM for locking. If it gives error based upon sy-subrc / return value, then it means&lt;/P&gt;&lt;P&gt;    somebody is arleady using the above 3 programs / any of the 3 programs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. This lock object concept will not require to take care of any global id / memory id / or storing any value anywhere.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. Also no need to unlock (DEQUE) the lock object. when the user comes out of the program it will automatically get unlocked.&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;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Dec 2009 06:49:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-12-17T06:49:45Z</dc:date>
    <item>
      <title>Blocking a report from execution</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/blocking-a-report-from-execution/m-p/6444665#M1412817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created  4 reports.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. In that 2 reports are having an editable ALV where the user inputs some values in the ALV and on pressing a calculate button(created using the menu painter) calculations are being done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. 1 more report is just an alv grid display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. the other one is just a report where due to some conditions it updates a table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now my requirement is that when i am using any of the first three reports (by any no of users) i should not be allowed to execute the 4th report.&lt;/P&gt;&lt;P&gt;The  table which gets updated in the fourth report  affects the editable fields in the first 2 reports and the values in the 3rd report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: seenukesavaraju on Dec 16, 2009 5:30 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2009 16:30:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/blocking-a-report-from-execution/m-p/6444665#M1412817</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-16T16:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: Blocking a report from execution</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/blocking-a-report-from-execution/m-p/6444666#M1412818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;enqueue your table at the beginning of your first 3 reports and dequeue it at the end.&lt;/P&gt;&lt;P&gt;In your 4. report ask if table is enqueued. if yes stop program.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2009 16:59:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/blocking-a-report-from-execution/m-p/6444666#M1412818</guid>
      <dc:creator>former_member226519</dc:creator>
      <dc:date>2009-12-16T16:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: Blocking a report from execution</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/blocking-a-report-from-execution/m-p/6444667#M1412819</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;If you want to spread this check accross several different users (who will work in separate users sessions), you need some global flag which could indicate whether any complete runs of reports 1,2,3 were executed (by any user). &lt;/P&gt;&lt;P&gt;This can be achieved by:&lt;/P&gt;&lt;P&gt;1) creating some transparent table which would have one field and there you store your flag (in one row) each time you run reports 1,2,3. Then during execution of 4th one you simpy check if that field is set or not&lt;/P&gt;&lt;P&gt;2) using &lt;STRONG&gt;Shared Memory&lt;/STRONG&gt; which is a special buffer on Application Server (not DB) where you can store data and exchange accross different user sessions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first seems quite simple (especially in handling) whereas the latter solution is more complicated and error prone. But both can provide you desired result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note!&lt;/P&gt;&lt;P&gt;If you want to do all the check accross one user session (so checking if only one user has run the reports in one user session) you can use &lt;STRONG&gt;SAP memory&lt;/STRONG&gt; to exchanged that &lt;EM&gt;flag&lt;/EM&gt; b/w programs and then run/stop the execution of 4th one accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2009 17:55:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/blocking-a-report-from-execution/m-p/6444667#M1412819</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2009-12-16T17:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: Blocking a report from execution</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/blocking-a-report-from-execution/m-p/6444668#M1412820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will face a problem in implementing the solution using the transparent table. When a user is executing the report i can set the flag and update the table indicating the execution of the  1st 3 reports. The problem will arise desetting the flag.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg: if there are 3 users if any one of them comes out of that then the flag will be deset, once again it will be a mess as other two are using it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For all the reports i have created the transaction codes.&lt;/P&gt;&lt;P&gt;Instead of using a flag i can use a  counter which will increase with the no of users using the transaction. Even in this i will face the problem for the 3rd report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the 1st 2 reports i can  decrease the counter on some sy-ucomm cases like Back,exit,save (one of these cases are mandatory in getting out of these reports).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As the third report is a normal ALV grid display i dont know at what moment i should decrease the counter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Dec 2009 05:02:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/blocking-a-report-from-execution/m-p/6444668#M1412820</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-17T05:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: Blocking a report from execution</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/blocking-a-report-from-execution/m-p/6444669#M1412821</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;As volker has mentioned, this is the best technique according to my opinion. This is the technique that standard SAP uses.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Create using SE11 and new Z lock object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. In the first 3 programs, using the FM generated by the above Z lock object, do locking.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. In the fourth program, again use the FM for locking. If it gives error based upon sy-subrc / return value, then it means&lt;/P&gt;&lt;P&gt;    somebody is arleady using the above 3 programs / any of the 3 programs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. This lock object concept will not require to take care of any global id / memory id / or storing any value anywhere.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. Also no need to unlock (DEQUE) the lock object. when the user comes out of the program it will automatically get unlocked.&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;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Dec 2009 06:49:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/blocking-a-report-from-execution/m-p/6444669#M1412821</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-17T06:49:45Z</dc:date>
    </item>
    <item>
      <title>Re: Blocking a report from execution</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/blocking-a-report-from-execution/m-p/6444670#M1412822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; In my case there  might be more users for a single report  eg: report 1 can be used by 10  users at a time, same is the case for other 2 reports. i need the restriction for the forth report only.&lt;/P&gt;&lt;P&gt;I think by using the lock object it will not allow more than one user for any of the first three reports.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Dec 2009 07:11:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/blocking-a-report-from-execution/m-p/6444670#M1412822</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-17T07:11:22Z</dc:date>
    </item>
  </channel>
</rss>

