<?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 the program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-the-program/m-p/1502998#M232676</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;I want the program not to be executed by others when some body else is already running or using the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried doing all the solutions.. given by you all... but its not working for me.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am working in 4.0 B version of SAP..FYI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you,&lt;/P&gt;&lt;P&gt;Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Jul 2006 22:13:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-07-26T22:13:07Z</dc:date>
    <item>
      <title>Locking the program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-the-program/m-p/1502990#M232668</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;Is there any way that i can make the program run at a time only once, so that if one instance of it is running it should give a message to others saying program is already running.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know is there any other way of doing it..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You,&lt;/P&gt;&lt;P&gt;Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jul 2006 19:02:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/locking-the-program/m-p/1502990#M232668</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-26T19:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: Locking the program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-the-program/m-p/1502991#M232669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can import a variable intially and if it is set to X, do NOT execute the program and exit. Export a different value at the end of the program to that variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jul 2006 19:06:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/locking-the-program/m-p/1502991#M232669</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-26T19:06:29Z</dc:date>
    </item>
    <item>
      <title>Re: Locking the program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-the-program/m-p/1502992#M232670</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;Please check this sample code from other thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Make sure that no one else is running this program&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;This is the locking mechanism for this program.  &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PROGRAM_NAME = 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;Hope this will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jul 2006 19:09:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/locking-the-program/m-p/1502992#M232670</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2006-07-26T19:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: Locking the program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-the-program/m-p/1502993#M232671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ravi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your solution seems to be quite interesting, can you please explain it more clearly ? Please attach the piece of code if available .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Varun .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jul 2006 19:10:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/locking-the-program/m-p/1502993#M232671</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-26T19:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: Locking the program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-the-program/m-p/1502994#M232672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Depends on whether it should be a userspecific or across the system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If across the system then you need to flag in Z table at initial event start-of-selection and clear the flag at end of the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If with in the user's sessions use SET Parameter option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regds&lt;/P&gt;&lt;P&gt;Manohar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jul 2006 19:10:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/locking-the-program/m-p/1502994#M232672</guid>
      <dc:creator>Manohar2u</dc:creator>
      <dc:date>2006-07-26T19:10:20Z</dc:date>
    </item>
    <item>
      <title>Re: Locking the program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-the-program/m-p/1502995#M232673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi suresh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this thread..&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="575576"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps,&lt;/P&gt;&lt;P&gt;do reward if it helps,&lt;/P&gt;&lt;P&gt;priya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jul 2006 19:11:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/locking-the-program/m-p/1502995#M232673</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-26T19:11:22Z</dc:date>
    </item>
    <item>
      <title>Re: Locking the program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-the-program/m-p/1502996#M232674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use a lock object for the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0001.


parameters: p_check.

at selection-screen output.

data: program type sy-repid.

program = sy-repid.
call function 'ENQUEUE_EPROG'
  exporting
   mode_trdir           = 'E'
   programm             = program
*   X_PROGRAMM           = ' '
*   _SCOPE               = '2'
*   _WAIT                = ' '
*   _COLLECT             = ' '
 exceptions
   foreign_lock         = 1
   system_failure       = 2
   others               = 3
          .
if sy-subrc &amp;lt;&amp;gt; 0.
  message id sy-msgid type sy-msgty number sy-msgno
          with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&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>Wed, 26 Jul 2006 19:11:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/locking-the-program/m-p/1502996#M232674</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-07-26T19:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: Locking the program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-the-program/m-p/1502997#M232675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi babu,&lt;/P&gt;&lt;P&gt;create a z table (for eg,zvalidate) with a field (for eg,flag)of length 1 and type char.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the program you can check&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single * from zvalidate into wa where flag = space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc ne 0 .&lt;/P&gt;&lt;P&gt;&amp;lt;throw error message?&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;&amp;lt;your report's executable statements&amp;gt;&lt;/P&gt;&lt;P&gt;UPDATE zvalidate set flag = 'X'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Abdul Hakim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jul 2006 19:11:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/locking-the-program/m-p/1502997#M232675</guid>
      <dc:creator>abdul_hakim</dc:creator>
      <dc:date>2006-07-26T19:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: Locking the program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-the-program/m-p/1502998#M232676</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;I want the program not to be executed by others when some body else is already running or using the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried doing all the solutions.. given by you all... but its not working for me.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am working in 4.0 B version of SAP..FYI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you,&lt;/P&gt;&lt;P&gt;Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jul 2006 22:13:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/locking-the-program/m-p/1502998#M232676</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-26T22:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: Locking the program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-the-program/m-p/1502999#M232677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you implement my sample program above, it is not working?  Run it and allow to sit on the selection screen,  now run it in another session, do you not get an error message saying that the program is already in use?&lt;/P&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>Wed, 26 Jul 2006 22:57:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/locking-the-program/m-p/1502999#M232677</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-07-26T22:57:15Z</dc:date>
    </item>
    <item>
      <title>Re: Locking the program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-the-program/m-p/1503000#M232678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when i write the code its stopping the control from not editing the program.. but not executing the program..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jul 2006 23:48:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/locking-the-program/m-p/1503000#M232678</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-26T23:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: Locking the program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-the-program/m-p/1503001#M232679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Copy and paste the program code that I've provided, activate the program, now back out of the editor and run it directly from the first screen of SE38.  Leave it on the selection screen.  Open another session and run the program again.  Since the other session is currently running the program,  you should get a message right away when running the program in the other session.  Is this not happening?&lt;/P&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>Wed, 26 Jul 2006 23:51:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/locking-the-program/m-p/1503001#M232679</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-07-26T23:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: Locking the program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-the-program/m-p/1503002#M232680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;NO it is not working&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jul 2006 00:02:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/locking-the-program/m-p/1503002#M232680</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-27T00:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: Locking the program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-the-program/m-p/1503003#M232681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want no body else to run the program when.. for eg: i am running it..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jul 2006 00:03:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/locking-the-program/m-p/1503003#M232681</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-27T00:03:10Z</dc:date>
    </item>
    <item>
      <title>Re: Locking the program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-the-program/m-p/1503004#M232682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Suresh, this is exactly how my example program works in my r/3 system.  It will not allow me to run it while its being ran in another session.  Not sure why its not working for you.  Are you sure that the lock is being applied.  Run the program and let it sit on the selecition screen, now go to another session and go to SM12.  Check to see if a lock exists.&lt;/P&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>Thu, 27 Jul 2006 00:05:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/locking-the-program/m-p/1503004#M232682</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-07-27T00:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: Locking the program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-the-program/m-p/1503005#M232683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry.. i didnt tell u this before.. &lt;/P&gt;&lt;P&gt;There is no function module ENQUEUE_EPROG in 4.0 B, i am using ENQUEUE_ES_PROG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jul 2006 00:11:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/locking-the-program/m-p/1503005#M232683</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-27T00:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: Locking the program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-the-program/m-p/1503006#M232684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ahhh......&lt;/P&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>Thu, 27 Jul 2006 00:23:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/locking-the-program/m-p/1503006#M232684</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-07-27T00:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: Locking the program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-the-program/m-p/1503007#M232685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please try this example.  This works good in my system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0001.

data: program type sy-repid.

parameters: p_check.

load-of-program.

  program = sy-repid.

  call function 'ENQUEUE_ES_PROG'
   exporting
*    MODE_TRDIR           = 'E'
     name                 = program
*    X_NAME               = ' '
*    _SCOPE               = '2'
*    _WAIT                = ' '
*    _COLLECT             = ' '
   exceptions
     foreign_lock         = 1
     system_failure       = 2
     others               = 3
            .

  if sy-subrc &amp;lt;&amp;gt; 0.
    message e001(00) with 'Program currently in use'.
  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>Thu, 27 Jul 2006 00:28:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/locking-the-program/m-p/1503007#M232685</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-07-27T00:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: Locking the program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-the-program/m-p/1503008#M232686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is working now.. but when the message is displayed i dont see the selection screen contents.. on the screen..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;   set cursor field 'P_FL_UNX'.&lt;/P&gt;&lt;P&gt;   set screen 0.&lt;/P&gt;&lt;P&gt;   message e009(zmd) with 'Program is in use by other user'.&lt;/P&gt;&lt;P&gt;   leave to list-processing.&lt;/P&gt;&lt;P&gt; endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;though i used the above code it still not showing up the values..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any help on this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jul 2006 00:36:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/locking-the-program/m-p/1503008#M232686</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-27T00:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: Locking the program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-the-program/m-p/1503009#M232687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You still want to show the selection screen if the program is being run by another user?&lt;/P&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>Thu, 27 Jul 2006 00:39:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/locking-the-program/m-p/1503009#M232687</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-07-27T00:39:02Z</dc:date>
    </item>
  </channel>
</rss>

