<?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: FM 'VIEW_ENQUEUE' in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-view-enqueue/m-p/847820#M45624</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, the reason for not using a lock object for the ztable is that i´ve developed a report that via FM 'VIEW_MAINTENANCE _CALL' allows the user to insert or update the table in question and thus it must be in the view that the lock must be set.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 May 2005 16:01:12 GMT</pubDate>
    <dc:creator>former_member182371</dc:creator>
    <dc:date>2005-05-04T16:01:12Z</dc:date>
    <item>
      <title>FM 'VIEW_ENQUEUE'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-view-enqueue/m-p/847811#M45615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i´m using FM &lt;B&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;'VIEW_ENQUEUE'&lt;/P&gt; and i need to &lt;U&gt;lock only certain entries&lt;/U&gt; in the view and &lt;U&gt;not the whole table&lt;/U&gt;.&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i do it?.&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 May 2005 11:42:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-view-enqueue/m-p/847811#M45615</guid>
      <dc:creator>former_member182371</dc:creator>
      <dc:date>2005-05-04T11:42:16Z</dc:date>
    </item>
    <item>
      <title>Re: FM 'VIEW_ENQUEUE'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-view-enqueue/m-p/847812#M45616</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;Check this if it suits ur requirement,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/dictionary/lock_enqueue.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/dictionary/lock_enqueue.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Judith.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 May 2005 11:47:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-view-enqueue/m-p/847812#M45616</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-04T11:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: FM 'VIEW_ENQUEUE'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-view-enqueue/m-p/847813#M45617</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;import parameter ENQUEUE_RANGE has to be set to 'X' and with table parameter SELLIST you can define selection criteria for your partial lock. I hope short text of field definition of structure VIMSELLIST will give you a hint of correct filling.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 May 2005 11:47:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-view-enqueue/m-p/847813#M45617</guid>
      <dc:creator>christian_wohlfahrt</dc:creator>
      <dc:date>2005-05-04T11:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: FM 'VIEW_ENQUEUE'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-view-enqueue/m-p/847814#M45618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i´ve been trying with the following code:&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;first key field&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;i_sel-operator = 'EQ'.&lt;/P&gt;&lt;P&gt;i_sel-value = pnumde.&lt;/P&gt;&lt;P&gt;i_sel-viewfield = 'NUMDE'.&lt;/P&gt;&lt;P&gt;i_sel-and_or = 'AND'.&lt;/P&gt;&lt;P&gt;APPEND i_sel.&lt;/P&gt;&lt;P&gt;CLEAR i_sel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;second key field&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;i_sel-operator = 'EQ'.&lt;/P&gt;&lt;P&gt;i_sel-value = pkunnr.&lt;/P&gt;&lt;P&gt;i_sel-viewfield = 'KUNNR'.&lt;/P&gt;&lt;P&gt;APPEND i_sel.&lt;/P&gt;&lt;P&gt;CLEAR i_sel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'VIEW_ENQUEUE'&lt;/P&gt;&lt;P&gt;  exporting&lt;/P&gt;&lt;P&gt;    ACTION                     = 'E'&lt;/P&gt;&lt;P&gt;    ENQUEUE_MODE               = 'E'&lt;/P&gt;&lt;P&gt;    view_name                  = 'Z_V_DEVOLUCION'&lt;/P&gt;&lt;P&gt;    ENQUEUE_RANGE              = 'X'&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    SELLIST                    = i_sel&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   CLIENT_REFERENCE           = 1&lt;/P&gt;&lt;P&gt;   FOREIGN_LOCK               = 2&lt;/P&gt;&lt;P&gt;   INVALID_ACTION             = 3&lt;/P&gt;&lt;P&gt;   INVALID_ENQUEUE_MODE       = 4&lt;/P&gt;&lt;P&gt;   SYSTEM_FAILURE             = 5&lt;/P&gt;&lt;P&gt;   TABLE_NOT_FOUND            = 6&lt;/P&gt;&lt;P&gt;   OTHERS                     = 7.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt; MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but unfortunately the lock affects the whole table.&lt;/P&gt;&lt;P&gt;Any suggestion?.&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 May 2005 14:29:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-view-enqueue/m-p/847814#M45618</guid>
      <dc:creator>former_member182371</dc:creator>
      <dc:date>2005-05-04T14:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: FM 'VIEW_ENQUEUE'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-view-enqueue/m-p/847815#M45619</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;yes, you can debug FORM fill_d0100_field_tab.&lt;/P&gt;&lt;P&gt;It's probably the fastest way to figure out what's happening.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 May 2005 14:49:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-view-enqueue/m-p/847815#M45619</guid>
      <dc:creator>christian_wohlfahrt</dc:creator>
      <dc:date>2005-05-04T14:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: FM 'VIEW_ENQUEUE'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-view-enqueue/m-p/847816#M45620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;i´ve checked it out and the flow of the program doesn´t pass through FORM fill_d0100_field_tab.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 May 2005 15:08:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-view-enqueue/m-p/847816#M45620</guid>
      <dc:creator>former_member182371</dc:creator>
      <dc:date>2005-05-04T15:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: FM 'VIEW_ENQUEUE'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-view-enqueue/m-p/847817#M45621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, next try.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In view_enqueue, about line 118 is a statement:&lt;/P&gt;&lt;P&gt;  ELSE.                           "view&lt;/P&gt;&lt;P&gt;here your version should go.&lt;/P&gt;&lt;P&gt;Immediately inside the loop routine:&lt;/P&gt;&lt;P&gt;fill_tabkey&lt;/P&gt;&lt;P&gt;is called. Inside client field handling is programmed -&amp;gt; maybe that's the point: implicit client is always selected first - if you don't specify the client, you don't have the key fields 'from the left' (similiar to the table range scan questions in selections: you have to define all key fields from the beginning, otherwise ranges of valid keys will be used).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then &lt;/P&gt;&lt;P&gt;CHECK enqueue_range NE space.&lt;/P&gt;&lt;P&gt;can be found. Afterwards preparation of select statement is done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But currently I bet on client, try this out - otherwise have a look at 'LOOP AT sellist' in form 'fill_tabkey'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 May 2005 15:23:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-view-enqueue/m-p/847817#M45621</guid>
      <dc:creator>christian_wohlfahrt</dc:creator>
      <dc:date>2005-05-04T15:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: FM 'VIEW_ENQUEUE'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-view-enqueue/m-p/847818#M45622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just a thought, why don't you create your own enque object for the Z table and use that instead of the generic one?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 May 2005 15:43:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-view-enqueue/m-p/847818#M45622</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-04T15:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: FM 'VIEW_ENQUEUE'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-view-enqueue/m-p/847819#M45623</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;unfortunately we don't have remote debugging, otherwise I would have seen the difference:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do we talk about a table Z_V_... or a view?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In last version I asumed view - and then Z-enqueue object is out of scope.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 May 2005 15:50:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-view-enqueue/m-p/847819#M45623</guid>
      <dc:creator>christian_wohlfahrt</dc:creator>
      <dc:date>2005-05-04T15:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: FM 'VIEW_ENQUEUE'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-view-enqueue/m-p/847820#M45624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, the reason for not using a lock object for the ztable is that i´ve developed a report that via FM 'VIEW_MAINTENANCE _CALL' allows the user to insert or update the table in question and thus it must be in the view that the lock must be set.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 May 2005 16:01:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-view-enqueue/m-p/847820#M45624</guid>
      <dc:creator>former_member182371</dc:creator>
      <dc:date>2005-05-04T16:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: FM 'VIEW_ENQUEUE'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-view-enqueue/m-p/847821#M45625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Christian, &lt;/P&gt;&lt;P&gt;we´re talkung about a view.&lt;/P&gt;&lt;P&gt;Z_V_DEVOLUCION is a maintenance view that contains table ZDEVOLUCION.&lt;/P&gt;&lt;P&gt;regards-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 May 2005 16:03:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-view-enqueue/m-p/847821#M45625</guid>
      <dc:creator>former_member182371</dc:creator>
      <dc:date>2005-05-04T16:03:01Z</dc:date>
    </item>
    <item>
      <title>Re: FM 'VIEW_ENQUEUE'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-view-enqueue/m-p/847822#M45626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Calsadillo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just FYI, it doesn't matter whether you lock the table or the view, as long as the locking strategy you use is &amp;lt;b&amp;gt;CONSISTENT&amp;lt;/b&amp;gt;.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you do a lock, it doesn't actually lock the object (from the database point of view) it just sets an entry in a table that says: Table X, Key Y is locked.  Then if another program tries to lock the object then it checks the table, if the entry is found then you can't lock it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thus in your situation if you have another program which updates the Z table directly and not via the view (and locks the table), and the first program locks the view, both will be able to update the data at the same time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore, for simplicity's sake (and given that the view locking process is causing you grief) I would just lock the table.  It makes more logical sense anyway.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 May 2005 16:14:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-view-enqueue/m-p/847822#M45626</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-04T16:14:49Z</dc:date>
    </item>
    <item>
      <title>Re: FM 'VIEW_ENQUEUE'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-view-enqueue/m-p/847823#M45627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I apologize for not paying attention to the details. Thanks for the clarification. I will check if and how record level locking is possible.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 May 2005 16:38:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-view-enqueue/m-p/847823#M45627</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-04T16:38:47Z</dc:date>
    </item>
  </channel>
</rss>

