<?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: Custom Lock objects few question issues in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-lock-objects-few-question-issues/m-p/7959009#M1602599</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to remember that SAP locks are logical locks, not physical. This means that whatever you enqueue is not physically locked from changes. You have to ensure that any program that tries to update your table, first checks these locks and stops the update if it finds that it is already locked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Jun 2011 14:15:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-06-07T14:15:28Z</dc:date>
    <item>
      <title>Custom Lock objects few question issues</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-lock-objects-few-question-issues/m-p/7959008#M1602598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello guys , i create a custom lock object for my z tables ( ZFISGC_MCFG )  which have 3 key field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MANDT&lt;/P&gt;&lt;P&gt;ID_EMPRESA&lt;/P&gt;&lt;P&gt;CL_MVTOSGC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now in my program doing testing i put a break point after the ENQUEUE_ of the lock object &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then when i go to the sm30 and try modif the value of the entry using the same key i pass to the ENQUEUE_ fm i can modif and save the entry now i am now if that is the right workflow in custom object lock or if i am doing something wrong , this is how i can the enqueue FM:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;call function 'ENQUEUE_EZFISGCOBJECT'
 EXPORTING
   MODE_ZFISGC_MCFG       = 'E'
   MANDT                  = SY-MANDT
   ID_EMPRESA             = p_bukrs
*   X_ID_EMPRESA           = ' '
*   _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;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2011 13:48:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-lock-objects-few-question-issues/m-p/7959008#M1602598</guid>
      <dc:creator>edgar_almonte</dc:creator>
      <dc:date>2011-06-07T13:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Lock objects few question issues</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-lock-objects-few-question-issues/m-p/7959009#M1602599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to remember that SAP locks are logical locks, not physical. This means that whatever you enqueue is not physically locked from changes. You have to ensure that any program that tries to update your table, first checks these locks and stops the update if it finds that it is already locked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2011 14:15:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-lock-objects-few-question-issues/m-p/7959009#M1602599</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-07T14:15:28Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Lock objects few question issues</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-lock-objects-few-question-issues/m-p/7959010#M1602600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2011 14:19:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-lock-objects-few-question-issues/m-p/7959010#M1602600</guid>
      <dc:creator>edgar_almonte</dc:creator>
      <dc:date>2011-06-07T14:19:30Z</dc:date>
    </item>
  </channel>
</rss>

