<?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: Understanding Lock Objects with Enqueue and Dequeue FMs in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/understanding-lock-objects-with-enqueue-and-dequeue-fms/m-p/6564687#M1431865</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/cf/21eebf446011d189700000e8322d00/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/cf/21eebf446011d189700000e8322d00/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Got the answer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Jan 2010 18:26:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-01-22T18:26:30Z</dc:date>
    <item>
      <title>Understanding Lock Objects with Enqueue and Dequeue FMs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/understanding-lock-objects-with-enqueue-and-dequeue-fms/m-p/6564686#M1431864</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 created lock object for a custom table and I am trying to understand the various options in the Function Modules that get automatically generated, please explain me whether I am using all these options correctly and what is the use of the various options&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'ENQUEUE_EZZZZZZ'
   EXPORTING
     mode_ZZZZZZ          = 'E'
     mandt                = sy-mandt
     field1                = i_ZZZZZZ-field1
     field2              = i_ZZZZZZ-field2
*   X_FIELD1           = ' '
*   X_FIELD2         = ' '
*   _SCOPE               = '2'
     _wait                = 'X'
*   _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.

  MODIFY ZZZZZZ FROM i_ZZZZZZ.

  CALL FUNCTION 'DEQUEUE_EZZZZZZ'
   EXPORTING
     mode_ZZZZZZ          = 'E'
     mandt                = sy-mandt
     field1                = i_ZZZZZZ-field1
     field2              = i_ZZZZZZ-field2
*   X_FIELD1           = ' '
*   X_FIELD2         = ' '
*   _SCOPE            = '3'
*   _SYNCHRON         = ' '
*   _COLLECT          = ' '&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field 1 and Field 2 are the key fields in this table, I would like to know whether I need to pass on these values even when I am inserting a record... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also how I can use these below options in Enqueue FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  X_FIELD1           = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  X_FIELD2         = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  _SCOPE               = '2'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  _WAIT&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; _COLLECT&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the below ones in Dequeue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  _SCOPE            = '3'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  _SYNCHRON         = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  _COLLECT          = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jan 2010 18:02:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/understanding-lock-objects-with-enqueue-and-dequeue-fms/m-p/6564686#M1431864</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-22T18:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: Understanding Lock Objects with Enqueue and Dequeue FMs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/understanding-lock-objects-with-enqueue-and-dequeue-fms/m-p/6564687#M1431865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/cf/21eebf446011d189700000e8322d00/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/cf/21eebf446011d189700000e8322d00/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Got the answer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jan 2010 18:26:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/understanding-lock-objects-with-enqueue-and-dequeue-fms/m-p/6564687#M1431865</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-22T18:26:30Z</dc:date>
    </item>
  </channel>
</rss>

