<?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: error After SAVE method, COMMIT WORK or ROLLBACK WORK must be executed in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-after-save-method-commit-work-or-rollback-work-must-be-executed/m-p/9252251#M1720909</link>
    <description>&lt;P&gt;For anyone who is having this problem check if you have 'uncommited' bapi before. In my case I had a bapi which was not commited and after solving it there was no error&lt;/P&gt;</description>
    <pubDate>Fri, 11 Mar 2022 07:46:14 GMT</pubDate>
    <dc:creator>former_member570788</dc:creator>
    <dc:date>2022-03-11T07:46:14Z</dc:date>
    <item>
      <title>error After SAVE method, COMMIT WORK or ROLLBACK WORK must be executed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-after-save-method-commit-work-or-rollback-work-must-be-executed/m-p/9252246#M1720904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am doing the migration program for the service Order Create using the BAPI 'BAPI_ALM_ORDER_MAINTAIN'. After the BAPI i am calling the FM &lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S33"&gt;'ALM_ME_COMMIT_OR_ROLLBACK' it will commit or Rollback bassed on the Return table what i am getting from the BAPI.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S33"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S33"&gt;This was working fine. But when i run it in the Bulk order i mean 700 service order some orders i am getting success message. But few orders like 50 orders i am getting the below error message.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S33"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S33"&gt;"After SAVE method, COMMIT WORK or ROLLBACK WORK must be executed".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S33"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S33"&gt;when i refer the FM &lt;SPAN class="L0S33"&gt;'ALM_ME_COMMIT_OR_ROLLBACK'&lt;/SPAN&gt; they have used bapi_transaction_commit statement and wait also.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S33"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S33"&gt;But i dont know why i am getting the error message. can you please adivce&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S33"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S33"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S33"&gt;Dhina..&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2013 11:17:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-after-save-method-commit-work-or-rollback-work-must-be-executed/m-p/9252246#M1720904</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-01-24T11:17:27Z</dc:date>
    </item>
    <item>
      <title>Re: error After SAVE method, COMMIT WORK or ROLLBACK WORK must be executed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-after-save-method-commit-work-or-rollback-work-must-be-executed/m-p/9252247#M1720905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It lies here &lt;A href="http://www.consolut.com/en/s/sap-ides-access/d/s/doc/YV-IWO_BAPI2128" title="http://www.consolut.com/en/s/sap-ides-access/d/s/doc/YV-IWO_BAPI2128"&gt;consolut - IWO_BAPI2128 - After SAVE method, COMMIT WORK or ROLLBACK WORK must be executed - IWO_...&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2013 11:45:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-after-save-method-commit-work-or-rollback-work-must-be-executed/m-p/9252247#M1720905</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2013-01-24T11:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: error After SAVE method, COMMIT WORK or ROLLBACK WORK must be executed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-after-save-method-commit-work-or-rollback-work-must-be-executed/m-p/9252248#M1720906</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;You are saying Your Function module is using commit and wait means when you are running bulk upation it will wait for all the records has to process first at the last it will do commit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;better you can use COMMIT WORK and ROLLBACK With out WAIT after your BAPI function call.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Mani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2013 12:06:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-after-save-method-commit-work-or-rollback-work-must-be-executed/m-p/9252248#M1720906</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-01-24T12:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: error After SAVE method, COMMIT WORK or ROLLBACK WORK must be executed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-after-save-method-commit-work-or-rollback-work-must-be-executed/m-p/9252249#M1720907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kesavadas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yeah i refered the link. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Function module BAPI_ALM_ORDER_MAINTAIN was called with the SAVE method. Then the function module was called again without triggering update first. &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you want me to put wait statement after the FM 'ALM_ME_COMMIT_OR_ROLLBACK' ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Dhina..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2013 12:09:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-after-save-method-commit-work-or-rollback-work-must-be-executed/m-p/9252249#M1720907</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-01-24T12:09:55Z</dc:date>
    </item>
    <item>
      <title>Re: error After SAVE method, COMMIT WORK or ROLLBACK WORK must be executed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-after-save-method-commit-work-or-rollback-work-must-be-executed/m-p/9252250#M1720908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;"After the call of BAPI_ALM_ORDER_MAINTAIN with the SAVE method, the update must be triggered or cancelled. A new call is not possible beforehand."&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It says&amp;nbsp; a commit work or rollback work has to triggered after each entry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"If you want to update several calls of BAPI_ALM_ORDER_MAINTAIN together, you can only use the SAVE method for the last call of BAPI_ALM_ORDER_MAINTAIN. All other calls must use the DIALOG method."&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your case, we have to use the DIALOG method( for example change ) for the entries starting from one and use SAVE method in the last entry while passing to parameter IT_METHODS like for example: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; ls_method-refnumber = 1.&lt;/P&gt;&lt;P&gt;&amp;nbsp; ls_method-objecttype = 'OPERATION'.&lt;/P&gt;&lt;P&gt;&amp;nbsp; ls_method-method = 'CHANGE'.&lt;/P&gt;&lt;P&gt;&amp;nbsp; ls_method-objectkey = '12345'.&lt;/P&gt;&lt;P&gt;&amp;nbsp; append ls_method to lt_methods.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; clear ls_method.&lt;/P&gt;&lt;P&gt;&amp;nbsp; ls_method-refnumber = 1.&lt;/P&gt;&lt;P&gt;&amp;nbsp; ls_method-method = 'SAVE'.&lt;/P&gt;&lt;P&gt;&amp;nbsp; ls_method-objectkey = '12345'.&lt;/P&gt;&lt;P&gt;&amp;nbsp; append ls_method to lt_methods.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2013 12:33:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-after-save-method-commit-work-or-rollback-work-must-be-executed/m-p/9252250#M1720908</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2013-01-24T12:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: error After SAVE method, COMMIT WORK or ROLLBACK WORK must be executed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-after-save-method-commit-work-or-rollback-work-must-be-executed/m-p/9252251#M1720909</link>
      <description>&lt;P&gt;For anyone who is having this problem check if you have 'uncommited' bapi before. In my case I had a bapi which was not commited and after solving it there was no error&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 07:46:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-after-save-method-commit-work-or-rollback-work-must-be-executed/m-p/9252251#M1720909</guid>
      <dc:creator>former_member570788</dc:creator>
      <dc:date>2022-03-11T07:46:14Z</dc:date>
    </item>
  </channel>
</rss>

