<?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 Report in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-a-report/m-p/959099#M66969</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanx rich&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;abhishek suppal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Aug 2005 05:39:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-08-02T05:39:17Z</dc:date>
    <item>
      <title>Locking a Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-a-report/m-p/959094#M66964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hey can any one tell me how can i lock the Z Report, means i have mad report on MSEG and MKPF table, i want that if one user is processing that report at the same time other user shud not be able to process the same report, i hope i have cleared my query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;abhishek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Aug 2005 14:40:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/locking-a-report/m-p/959094#M66964</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-01T14:40:50Z</dc:date>
    </item>
    <item>
      <title>Re: Locking a Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-a-report/m-p/959095#M66965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here some code that works for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

* Make sure that no one else is running this program
* This is the locking mechanism for this program.
  PROGRAM = SY-REPID.
  CALL FUNCTION 'ENQUEUE_ESINDX'
       EXPORTING
            SRTFD          = PROGRAM_NAME
            SRTF2          = 0
            _WAIT          = 2
       EXCEPTIONS
            FOREIGN_LOCK   = 1
            SYSTEM_FAILURE = 2.
  IF SY-SUBRC &amp;lt;&amp;gt; 0.
* Give message that someone is running the program
  ENDIF.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Aug 2005 14:58:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/locking-a-report/m-p/959095#M66965</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-08-01T14:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: Locking a Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-a-report/m-p/959096#M66966</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;Just use the standard Lock object : &lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/cf/21eea5446011d189700000e8322d00/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/cf/21eea5446011d189700000e8322d00/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(see also  The SAP Lock Concept (BC-CST-EQ) )&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;Frédéric&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Aug 2005 15:00:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/locking-a-report/m-p/959096#M66966</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2005-08-01T15:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: Locking a Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-a-report/m-p/959097#M66967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this link&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/41/7af4c8a79e11d1950f0000e82de14a/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/41/7af4c8a79e11d1950f0000e82de14a/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.geocities.com/SiliconValley/Grid/4858/sap/ABAPCode/LockUsers.htm" target="test_blank"&gt;http://www.geocities.com/SiliconValley/Grid/4858/sap/ABAPCode/LockUsers.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Judith Jessie Selvi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2005 03:42:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/locking-a-report/m-p/959097#M66967</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-02T03:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: Locking a Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-a-report/m-p/959098#M66968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Judith,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please do spend some time reading and understanding the question. Editor Lock has got a different functionality. It allows only the creator of the program to modify it. Which is certainly not what is being asked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And further it is not a good idea to mainuplate the TADIR/TRDIR and other such tables directly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once again, I must tell you to make sure that your response is relevant. Irrelevant and misleading answers may be subject to censoring. And I don't generally want to do that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anand Mandalika.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2005 03:56:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/locking-a-report/m-p/959098#M66968</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-02T03:56:58Z</dc:date>
    </item>
    <item>
      <title>Re: Locking a Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-a-report/m-p/959099#M66969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanx rich&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;abhishek suppal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2005 05:39:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/locking-a-report/m-p/959099#M66969</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-02T05:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: Locking a Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-a-report/m-p/959100#M66970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;dear rich&lt;/P&gt;&lt;P&gt;this function i working fine where name of programe is less than 22 chars but gives dump when it crosses 22 chars.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;abhishek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2005 06:03:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/locking-a-report/m-p/959100#M66970</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-02T06:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: Locking a Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-a-report/m-p/959101#M66971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi abhishek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import-parameter SRTFD of fm is defined &lt;/P&gt;&lt;P&gt;as INDX-SRTFD (= char 22)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i don't know if it's useful to  copy and modify fm (?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can't you rename your program ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards Andreas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2005 06:23:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/locking-a-report/m-p/959101#M66971</guid>
      <dc:creator>andreas_mann3</dc:creator>
      <dc:date>2005-08-02T06:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: Locking a Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-a-report/m-p/959102#M66972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ya i can do that renaming programe name but i have to again assign to the same t-code renaming the programe option is there but can't we do it for more than 22 chars.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;abhishek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2005 06:28:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/locking-a-report/m-p/959102#M66972</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-02T06:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: Locking a Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-a-report/m-p/959103#M66973</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;Don't copy the function module! It's a generated lock object one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The technique being used here is to re-use a lock object that relates to a generic system table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As SAP locking is logical, not physical, it doesn't really matter that a generic system table is used here,&lt;/P&gt;&lt;P&gt; as there is very low likelihood of people conflicting with the lock argument.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, the INDX table has only a 22 character key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why don't you create your own 'Z' lock object. Do a where-used list on view TRDIR for other &lt;/P&gt;&lt;P&gt;lock objects using it. Use one of them as a template. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It'll take you 15 minutes and you'll learn all about locking.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then just call your new generated lock function module as above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dom&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reference:&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/a2/3547360f2ea61fe10000009b38f839/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/a2/3547360f2ea61fe10000009b38f839/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2005 08:35:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/locking-a-report/m-p/959103#M66973</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-02T08:35:22Z</dc:date>
    </item>
  </channel>
</rss>

