<?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: Lock in parameter/select-options field in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-in-parameter-select-options-field/m-p/1108101#M105368</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;thanks alots for the given solution. I use lock object and can work perfectly. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;again, huge thanks&lt;/P&gt;&lt;P&gt;Alia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Nov 2005 06:59:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-11-07T06:59:37Z</dc:date>
    <item>
      <title>Lock in parameter/select-options field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-in-parameter-select-options-field/m-p/1108098#M105365</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;How can we block another user from executing report with the same value of parameter/select-option field entered on screen by user?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example:&lt;/P&gt;&lt;P&gt;Report ZZZ, parameter field sales org = A, run by user 1.&lt;/P&gt;&lt;P&gt;Another user, say B, attempts to run the report by entering the same sales org = A. In these second execution of the report, I need to display error message saying that user A is running the report then report cant be run by user B. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do i need to put lock object for these? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks alots&lt;/P&gt;&lt;P&gt;Alia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2005 06:31:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-in-parameter-select-options-field/m-p/1108098#M105365</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-07T06:31:17Z</dc:date>
    </item>
    <item>
      <title>Re: Lock in parameter/select-options field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-in-parameter-select-options-field/m-p/1108099#M105366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, there is no mechanism to restrict in that way.&lt;/P&gt;&lt;P&gt;  but you can create a Z-table with one column (vkorg)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now make a little change in the report..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.check if any entry of vkorg is there in that z-table.&lt;/P&gt;&lt;P&gt;if not proceed, else error msg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.craete an entry of that vkog in that z-table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.Normal processing of this report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4.at end delete that entry of vkorg from z-table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thus you can achieve mutual exclusion.&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;&lt;/P&gt;&lt;P&gt;Message was edited by: Anid&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2005 06:36:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-in-parameter-select-options-field/m-p/1108099#M105366</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-07T06:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: Lock in parameter/select-options field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-in-parameter-select-options-field/m-p/1108100#M105367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try creating a lock object with the parameters you want to check. This can be from different database tables. Then in the start of selection call the lock object with the parameters given. If another user run the program with the same parameters, the locking will fail and you can give an error message and exit from the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Vinod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2005 06:38:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-in-parameter-select-options-field/m-p/1108100#M105367</guid>
      <dc:creator>Vinod_Chandran</dc:creator>
      <dc:date>2005-11-07T06:38:16Z</dc:date>
    </item>
    <item>
      <title>Re: Lock in parameter/select-options field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-in-parameter-select-options-field/m-p/1108101#M105368</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;thanks alots for the given solution. I use lock object and can work perfectly. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;again, huge thanks&lt;/P&gt;&lt;P&gt;Alia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2005 06:59:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-in-parameter-select-options-field/m-p/1108101#M105368</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-07T06:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: Lock in parameter/select-options field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-in-parameter-select-options-field/m-p/1108102#M105369</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;otr try that (without lock object):&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  sptab-TABNAME = 'TVKO'.
  concatenate sy-mandt 'A' into sptab-VARKEY .

  CALL FUNCTION 'ENQUEUE_E_TABLE'
       EXPORTING
            TABNAME        = sptab-TABNAME
            VARKEY         = sptab-VARKEY
       EXCEPTIONS
            FOREIGN_LOCK   = 1
            SYSTEM_FAILURE = 2
            OTHERS         = 3.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andreas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2005 07:07:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-in-parameter-select-options-field/m-p/1108102#M105369</guid>
      <dc:creator>andreas_mann3</dc:creator>
      <dc:date>2005-11-07T07:07:37Z</dc:date>
    </item>
    <item>
      <title>Re: Lock in parameter/select-options field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-in-parameter-select-options-field/m-p/1108103#M105370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andreas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks alots. I have tried your solution, can work. I no need to create own lock object. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!!&lt;/P&gt;&lt;P&gt;Alia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2005 08:11:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-in-parameter-select-options-field/m-p/1108103#M105370</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-07T08:11:50Z</dc:date>
    </item>
  </channel>
</rss>

