<?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: How to create the LOCK OBJECT in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-the-lock-object/m-p/2672063#M616998</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;For creating lock objects&lt;/P&gt;&lt;P&gt;Go to SE11 and create the lock object starting with E and give that table name.&lt;/P&gt;&lt;P&gt;In the program call the FM &lt;/P&gt;&lt;P&gt;as below.&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'ENQUEUE_EZ_ZFA_HEADER' ( EZ_ZFA_HEADER' lock obje)&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;       mode_/gmc/zfa_header       = 'E'&lt;/P&gt;&lt;P&gt;       mandt                      = sy-mandt&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      FATYPE                     =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      FANUM                      =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      X_FATYPE                   = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      X_FANUM                    = ' '&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;     EXCEPTIONS&lt;/P&gt;&lt;P&gt;       foreign_lock               = 1&lt;/P&gt;&lt;P&gt;       system_failure             = 2&lt;/P&gt;&lt;P&gt;       OTHERS                     = 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add  the code for modify the database tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'DEQUEUE_EZ_ZFA_HEADER'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;         mode_/gmc/zfa_header       = 'E'&lt;/P&gt;&lt;P&gt;         mandt                      = sy-mandt&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      FATYPE                     =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      FANUM                      =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      X_FATYPE                   = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      X_FANUM                    = ' '&lt;/P&gt;&lt;/LI&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;P&gt;&lt;/P&gt;&lt;P&gt;At here  EZ_ZFA_HEADER is the lockobject.&lt;/P&gt;&lt;P&gt;Lock objects are multi usable.&lt;/P&gt;&lt;P&gt;if already exist with that table name we can use that also no need to create new one.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Aug 2007 11:52:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-23T11:52:37Z</dc:date>
    <item>
      <title>How to create the LOCK OBJECT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-the-lock-object/m-p/2672058#M616993</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;please explain me how to create the Lock object for one table and how to call that function modules in program,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Hari.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2007 10:56:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-the-lock-object/m-p/2672058#M616993</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-23T10:56:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to create the LOCK OBJECT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-the-lock-object/m-p/2672059#M616994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hari,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lock Objects should start with EZ.&lt;/P&gt;&lt;P&gt;Eg : EZTEST&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;click create button and give the primary table name and give the lock mode and if needed give the secondary table names.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Awars points if this is helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi G&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2007 11:00:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-the-lock-object/m-p/2672059#M616994</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-23T11:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to create the LOCK OBJECT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-the-lock-object/m-p/2672060#M616995</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;Goto SE11&lt;/P&gt;&lt;P&gt;Entern Lock Object Name : EZTAB1. (Should start with EZ or EY).&lt;/P&gt;&lt;P&gt;Select Create Button..&lt;/P&gt;&lt;P&gt;Enter the Primary Table (your ztable).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Save and Activate .&lt;/P&gt;&lt;P&gt;It will generate two FMs &lt;/P&gt;&lt;P&gt;1. ENQUEUE_EZTAB1 (To lock the record)&lt;/P&gt;&lt;P&gt;2. DEQUEUE_EZTAB1. (To release the Lock)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using Pattern call these FMs in your program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward if Helpful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2007 11:00:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-the-lock-object/m-p/2672060#M616995</guid>
      <dc:creator>varma_narayana</dc:creator>
      <dc:date>2007-08-23T11:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to create the LOCK OBJECT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-the-lock-object/m-p/2672061#M616996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peeleti,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to Tcode SE11 select the Lock object button and enter the lock object name...&lt;/P&gt;&lt;P&gt;e.i ey... followed by table name.  and press on the create button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Later specify the table name and other properties to complete the creatation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then we can use the FM Enqueue_lock object and Dequeue_lock object in the program to lock the particular table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Satya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2007 11:02:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-the-lock-object/m-p/2672061#M616996</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-23T11:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to create the LOCK OBJECT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-the-lock-object/m-p/2672062#M616997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Goto SE11 --&amp;gt;select lock object --&amp;gt; specify any name starting with E and specify the tables and fields  which you want to lock and also lock  mode.&lt;/P&gt;&lt;P&gt;It will create TWO FM ; one for enque and other to remove the lock : deque.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call FM : ENQUEUE&lt;STRONG&gt;name&lt;/STRONG&gt; and write the logic and once done call FM : DEQUEUE&lt;STRONG&gt;name&lt;/STRONG&gt;&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>Thu, 23 Aug 2007 11:02:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-the-lock-object/m-p/2672062#M616997</guid>
      <dc:creator>Sandeep_Panghal</dc:creator>
      <dc:date>2007-08-23T11:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to create the LOCK OBJECT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-the-lock-object/m-p/2672063#M616998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;For creating lock objects&lt;/P&gt;&lt;P&gt;Go to SE11 and create the lock object starting with E and give that table name.&lt;/P&gt;&lt;P&gt;In the program call the FM &lt;/P&gt;&lt;P&gt;as below.&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'ENQUEUE_EZ_ZFA_HEADER' ( EZ_ZFA_HEADER' lock obje)&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;       mode_/gmc/zfa_header       = 'E'&lt;/P&gt;&lt;P&gt;       mandt                      = sy-mandt&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      FATYPE                     =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      FANUM                      =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      X_FATYPE                   = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      X_FANUM                    = ' '&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;     EXCEPTIONS&lt;/P&gt;&lt;P&gt;       foreign_lock               = 1&lt;/P&gt;&lt;P&gt;       system_failure             = 2&lt;/P&gt;&lt;P&gt;       OTHERS                     = 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add  the code for modify the database tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'DEQUEUE_EZ_ZFA_HEADER'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;         mode_/gmc/zfa_header       = 'E'&lt;/P&gt;&lt;P&gt;         mandt                      = sy-mandt&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      FATYPE                     =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      FANUM                      =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      X_FATYPE                   = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      X_FANUM                    = ' '&lt;/P&gt;&lt;/LI&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;P&gt;&lt;/P&gt;&lt;P&gt;At here  EZ_ZFA_HEADER is the lockobject.&lt;/P&gt;&lt;P&gt;Lock objects are multi usable.&lt;/P&gt;&lt;P&gt;if already exist with that table name we can use that also no need to create new one.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2007 11:52:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-the-lock-object/m-p/2672063#M616998</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-23T11:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to create the LOCK OBJECT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-the-lock-object/m-p/2672064#M616999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Verma,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  thanks for the useful information.  i am able to create lock onject for my table.&lt;/P&gt;&lt;P&gt;one thing i want to know is: can you briefly share the details about lock modes. &lt;/P&gt;&lt;P&gt;and when to use it...&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt; regards,&lt;/P&gt;&lt;P&gt;Praveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2007 06:40:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-the-lock-object/m-p/2672064#M616999</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-11T06:40:14Z</dc:date>
    </item>
  </channel>
</rss>

