<?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 Object Doubt in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object-doubt/m-p/6522775#M1425409</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In a single lock object you can include the primary and secondary tables.&lt;/P&gt;&lt;P&gt;read the section &lt;STRONG&gt;secondary tables&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;link:[http://www.sapfans.com/forums/viewtopic.php?f=31&amp;amp;t=326603]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Keshav.T on Jan 15, 2010 4:14 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Jan 2010 10:26:42 GMT</pubDate>
    <dc:creator>kesavadas_thekkillath</dc:creator>
    <dc:date>2010-01-15T10:26:42Z</dc:date>
    <item>
      <title>Lock Object Doubt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object-doubt/m-p/6522774#M1425408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I have created 10 Shadow tables and will run the job which updates the data to main data base tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So i am creating Lock Objctects for the tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Out of 10 tables 8 tables have common key which Business Partner (Primary Key). DO i need to create separate lock object for each of these 8 tables or one lock object is enough.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jan 2010 10:19:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object-doubt/m-p/6522774#M1425408</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-15T10:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: Lock Object Doubt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object-doubt/m-p/6522775#M1425409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In a single lock object you can include the primary and secondary tables.&lt;/P&gt;&lt;P&gt;read the section &lt;STRONG&gt;secondary tables&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;link:[http://www.sapfans.com/forums/viewtopic.php?f=31&amp;amp;t=326603]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Keshav.T on Jan 15, 2010 4:14 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jan 2010 10:26:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object-doubt/m-p/6522775#M1425409</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-01-15T10:26:42Z</dc:date>
    </item>
    <item>
      <title>Re: Lock Object Doubt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object-doubt/m-p/6522776#M1425410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Chaitanya &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find the below code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add the following code in-order to create the table lock. This function module must be called before any&lt;/P&gt;&lt;P&gt;update takes place. If a lock has already been taken out it will display the appropriate message. &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'ENQUEUE_EZ_ZTABLENAME'
      EXPORTING
           mode_ZTABLENAME = 'E'
           mandt              = sy-mandt
           KEYFIELD1           = "Value
           KEYFIELD2           = "Value
           KEYFIELD3           = "Value
                   ...
*         X_KEYFIELD1            = ' '
*         X_KEYFIELD2            = ' '
*         X_KEYFIELD3            = ' '
                   ...
*         _SCOPE             = '2'
*         _WAIT              = ' '
*         _COLLECT           = ' '
*   If exceptions are not used, message is displayed within FM
    EXCEPTIONS
         FOREIGN_LOCK       = 1
         SYSTEM_FAILURE     = 2
         OTHERS             = 3.

  IF sy-subrc &amp;lt;&amp;gt; 0.
*   Retrieve message displayed within Function Module
    message id     sy-msgid
              type   'I'
              number sy-msgno
              with   sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    EXIT.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following code will remove the lock for the specific table entries.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'DEQUEUE_EZ_ZTABLENAME'
    EXPORTING
         MODE_ZTABLENAME = 'E'
         MANDT              = SY-MANDT
           mandt              = sy-mandt
           KEYFIELD1           = "Value
           KEYFIELD2           = "Value
           KEYFIELD3           = "Value
                   ...
*         X_KEYFIELD1            = ' '
*         X_KEYFIELD2            = ' '
*         X_KEYFIELD3            = ' '
                   ...
*         _SCOPE             = '3'
*         _SYNCHRON          = ' '
*         _COLLECT           = ' '
          .&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;Thanks&lt;/P&gt;&lt;P&gt;Surendra P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jan 2010 12:55:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object-doubt/m-p/6522776#M1425410</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-15T12:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: Lock Object Doubt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object-doubt/m-p/6522777#M1425411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;answered&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2010 12:19:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lock-object-doubt/m-p/6522777#M1425411</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-27T12:19:50Z</dc:date>
    </item>
  </channel>
</rss>

