<?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: Using COMMIT WORK with CALL TRANSACTION in a batch input. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-commit-work-with-call-transaction-in-a-batch-input/m-p/2011667#M410639</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Orlando&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer to the ABAP documentation for "CALL TRANSACTION":&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL TRANSACTION 'ME21'  USING BDCTAB
                    MODE   'N'
                    UPDATE 'A'  " asynchronous !!!
                    MESSAGES INTO MESSTAB.

CALL TRANSACTION 'ME21'  USING BDCTAB
                    MODE   'N'
                    UPDATE 'S'  " synchronous -&amp;gt; like COMMIT WORK AND WAIT
                    MESSAGES INTO MESSTAB.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Mar 2007 20:37:00 GMT</pubDate>
    <dc:creator>uwe_schieferstein</dc:creator>
    <dc:date>2007-03-21T20:37:00Z</dc:date>
    <item>
      <title>Using COMMIT WORK with CALL TRANSACTION in a batch input.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-commit-work-with-call-transaction-in-a-batch-input/m-p/2011664#M410636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everybody&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm doing a Batch Input of transaction ME21 to upload purchasing orders from a legacy system. I'm using the CALL TRANSACTION variant with MODE 'P' to avoid create a batch input session.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Batch Input works fine and all the records are created. The problem is that I execute some code after the Batch Input processing to update some of the PO items that transaction ME21 leaves incomplete. If I execute the program in debugging mode the PO are created properly and the code I execute later update all the records correctly. But if I execute the program without the debugging, the code after the batch input does NOT update the PO records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I added the COMMIT WORK AND WAIT after every modify command of the code but still nothing. I really don't have any idea why is this happening.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me with this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Orlando&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2007 19:46:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-commit-work-with-call-transaction-in-a-batch-input/m-p/2011664#M410636</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-21T19:46:26Z</dc:date>
    </item>
    <item>
      <title>Re: Using COMMIT WORK with CALL TRANSACTION in a batch input.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-commit-work-with-call-transaction-in-a-batch-input/m-p/2011665#M410637</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;Instead of mode P use mode N and use UPDATE A.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call Transaction 'ME21' mode 'n' update 'a'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2007 20:16:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-commit-work-with-call-transaction-in-a-batch-input/m-p/2011665#M410637</guid>
      <dc:creator>amit_khare</dc:creator>
      <dc:date>2007-03-21T20:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: Using COMMIT WORK with CALL TRANSACTION in a batch input.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-commit-work-with-call-transaction-in-a-batch-input/m-p/2011666#M410638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Amit I changed the code as you told me to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;      CALL TRANSACTION 'ME21'  USING BDCTAB
                    MODE   'N'
                    UPDATE 'A'
                    MESSAGES INTO MESSTAB.
 &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;but still does not update the records after the batch input.&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;Orlando&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2007 20:27:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-commit-work-with-call-transaction-in-a-batch-input/m-p/2011666#M410638</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-21T20:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: Using COMMIT WORK with CALL TRANSACTION in a batch input.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-commit-work-with-call-transaction-in-a-batch-input/m-p/2011667#M410639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Orlando&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer to the ABAP documentation for "CALL TRANSACTION":&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL TRANSACTION 'ME21'  USING BDCTAB
                    MODE   'N'
                    UPDATE 'A'  " asynchronous !!!
                    MESSAGES INTO MESSTAB.

CALL TRANSACTION 'ME21'  USING BDCTAB
                    MODE   'N'
                    UPDATE 'S'  " synchronous -&amp;gt; like COMMIT WORK AND WAIT
                    MESSAGES INTO MESSTAB.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2007 20:37:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-commit-work-with-call-transaction-in-a-batch-input/m-p/2011667#M410639</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2007-03-21T20:37:00Z</dc:date>
    </item>
  </channel>
</rss>

