<?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 objects in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects/m-p/3616221#M871153</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Call FM CJDW_ENQUEUE to check if the project is locked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Values to be passed:&lt;/P&gt;&lt;P&gt;OBJECT_ID = PROJ-PSPID&lt;/P&gt;&lt;P&gt;OTYPE = H&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this FM returns sy-subrc = 1 then the project is locked in some other session&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Apr 2008 11:04:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-01T11:04:20Z</dc:date>
    <item>
      <title>Lock objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects/m-p/3616219#M871151</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;  I have a requirement where I have to give message in the program that if the project number(PROJ-PSPID) entered on the selection screen is opened by another user in CJ02(Change project ) the i should give message 'Project 'X' is blocked by the user'. How to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Apr 2008 10:42:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects/m-p/3616219#M871151</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-01T10:42:37Z</dc:date>
    </item>
    <item>
      <title>Re: Lock objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects/m-p/3616220#M871152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  Approach USER EXIT for this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Apr 2008 10:50:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects/m-p/3616220#M871152</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-01T10:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: Lock objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects/m-p/3616221#M871153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Call FM CJDW_ENQUEUE to check if the project is locked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Values to be passed:&lt;/P&gt;&lt;P&gt;OBJECT_ID = PROJ-PSPID&lt;/P&gt;&lt;P&gt;OTYPE = H&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this FM returns sy-subrc = 1 then the project is locked in some other session&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Apr 2008 11:04:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects/m-p/3616221#M871153</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-01T11:04:20Z</dc:date>
    </item>
    <item>
      <title>Re: Lock objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects/m-p/3616222#M871154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a lock object in se11.&lt;/P&gt;&lt;P&gt;eg: E_LockObj.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call function Enqueue_E_LockObj.&lt;/P&gt;&lt;P&gt;pass ur Field value which has to be locked here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call Funcition Dequeue_E_LockObj.&lt;/P&gt;&lt;P&gt;Unlock the field value here(ie when ever u press exit/back button this FM can be called).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Apr 2008 11:28:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects/m-p/3616222#M871154</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-01T11:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: Lock objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects/m-p/3616223#M871155</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;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;GO TO SE11

SELECT LOCK OBJECT NAME IT AS

'EZXXXXXXXX' - FIRST LETTER SHOULD BE 'E' AND SECOND MUST BE 'Z' OR 'Y' 

REST IS AS U FEEL.

GIVE TABLE NAME U WANT 2 LOCK AND SELECT : EXCLUSIVE,CUMULATIVE AND ACTIVATE


FUNCTION MODULE WILL BE GENERATED WITH NAME

*ENQUEUE_EZXXXXXXX*

*DEQUEUE_EZXXXXXXX*

USE THE BELOW CODE IN UR PROGRAM

call function 'ENQUEUE_EZMIGO_LOCK'
   exporting
*   MODE_ZG1_MKPF        = 'E'
     mandt                = sy-mandt
     g1sno                = pg1sno
*   X_G1SNO              = ' '
*   _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;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;V.Balaji&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if Usefull...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Apr 2008 11:28:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-objects/m-p/3616223#M871155</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-01T11:28:16Z</dc:date>
    </item>
  </channel>
</rss>

