<?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: ENQUEUE multiple records at the same time? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/enqueue-multiple-records-at-the-same-time/m-p/5378379#M1237049</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andrew,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How about you create a Z wrapper FM, which accepts a table of confirmation and counter and then within this FM you loop and lock the combinations in recieved table.&lt;/P&gt;&lt;P&gt;Then in your main program, you just call the Z wrapper once.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another option is to lock the whole table ENQUEUE_E_TABLE in your application which will basically prevent any updates on the table on any record ! Risky, but probably can be considered based on requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Apr 2009 14:12:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-04-08T14:12:58Z</dc:date>
    <item>
      <title>ENQUEUE multiple records at the same time?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enqueue-multiple-records-at-the-same-time/m-p/5378378#M1237048</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 need to update a text field in multiple records of AFRU at the same time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP provides an enqueue function for AFRU which will work, however I need to lock more than one record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to lock more than one record with an enqueue function or do I need to lock each entry and update through a loop?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx.&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2009 13:52:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enqueue-multiple-records-at-the-same-time/m-p/5378378#M1237048</guid>
      <dc:creator>andrew_jacobs2</dc:creator>
      <dc:date>2009-04-08T13:52:41Z</dc:date>
    </item>
    <item>
      <title>Re: ENQUEUE multiple records at the same time?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enqueue-multiple-records-at-the-same-time/m-p/5378379#M1237049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andrew,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How about you create a Z wrapper FM, which accepts a table of confirmation and counter and then within this FM you loop and lock the combinations in recieved table.&lt;/P&gt;&lt;P&gt;Then in your main program, you just call the Z wrapper once.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another option is to lock the whole table ENQUEUE_E_TABLE in your application which will basically prevent any updates on the table on any record ! Risky, but probably can be considered based on requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2009 14:12:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enqueue-multiple-records-at-the-same-time/m-p/5378379#M1237049</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-08T14:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: ENQUEUE multiple records at the same time?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enqueue-multiple-records-at-the-same-time/m-p/5378380#M1237050</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;In Enqueue FM if u give only table name then it will local total table&lt;/P&gt;&lt;P&gt;and if u provide any key, then it will lock the records which matches with that key&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex: &lt;/P&gt;&lt;P&gt;KUNNR BUKRS NAME1 NAME2&lt;/P&gt;&lt;P&gt;1000     0100      HHh    JJJJ&lt;/P&gt;&lt;P&gt;1000     0200      JJJJ    JJJJ&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case if u give Key as 1000 then it will lock 2 records&lt;/P&gt;&lt;P&gt;If u give 1000 0100 then it will lock first record&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2009 14:30:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enqueue-multiple-records-at-the-same-time/m-p/5378380#M1237050</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-08T14:30:54Z</dc:date>
    </item>
  </channel>
</rss>

