<?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: Runtime Error MESSAGE_TYPE_X during COMMIT on Background Job in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-message-type-x-during-commit-on-background-job/m-p/6906112#M1482142</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem could only be fixed by splitting the process in 2 different Programs, called with statement Submit [PROGRAM], where the COMMIT command was placed in the second Program. By doing so, the first Program got isolate of the Commit statement, which has stopped the error to occur.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Jul 2010 07:07:22 GMT</pubDate>
    <dc:creator>fabio_bellocchio</dc:creator>
    <dc:date>2010-07-02T07:07:22Z</dc:date>
    <item>
      <title>Runtime Error MESSAGE_TYPE_X during COMMIT on Background Job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-message-type-x-during-commit-on-background-job/m-p/6906106#M1482136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi SDN,&lt;/P&gt;&lt;P&gt;I am running a program, in a background Job, which writes a couple of Z tables, and calls some Function Modules.&lt;/P&gt;&lt;P&gt;But wherever there is a "COMMIT WORK" command within the process, the job crashes, with a short dump "MESSAGE_TYPE_X".&lt;/P&gt;&lt;P&gt;The Short text of error message is:&lt;/P&gt;&lt;P&gt;COMMIT WORK during ON COMMIT or ON ROLLBACK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried replacing all these statements by "COMMIT WORK AND WAIT", but this also doesn't work (same error).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please, does anyone know what is the problem here?&lt;/P&gt;&lt;P&gt;Do I have to remove all "COMMIT WORK" commands, including those from called Function Modules (which I haven't created) ??&lt;/P&gt;&lt;P&gt;What is the impact in the process if I do so ? Will the tables get updated as expected ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 00:51:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-message-type-x-during-commit-on-background-job/m-p/6906106#M1482136</guid>
      <dc:creator>fabio_bellocchio</dc:creator>
      <dc:date>2010-05-05T00:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime Error MESSAGE_TYPE_X during COMMIT on Background Job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-message-type-x-during-commit-on-background-job/m-p/6906107#M1482137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the interface. The dump tells that there is something wrong with the COMMIT handling.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seems it is not allowed to do any COMMITs or ROLLBACKs in the FM. &lt;/P&gt;&lt;P&gt;You should be able to find the cause during debugging the coding during the processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 01:20:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-message-type-x-during-commit-on-background-job/m-p/6906107#M1482137</guid>
      <dc:creator>DavidLY</dc:creator>
      <dc:date>2010-05-05T01:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime Error MESSAGE_TYPE_X during COMMIT on Background Job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-message-type-x-during-commit-on-background-job/m-p/6906108#M1482138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;thank you.&lt;/P&gt;&lt;P&gt;I cannot debug because this error only comes up when running in background mode.&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 03:53:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-message-type-x-during-commit-on-background-job/m-p/6906108#M1482138</guid>
      <dc:creator>fabio_bellocchio</dc:creator>
      <dc:date>2010-05-05T03:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime Error MESSAGE_TYPE_X during COMMIT on Background Job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-message-type-x-during-commit-on-background-job/m-p/6906109#M1482139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like you are using COMMIT WORK inside some Update FMs or PERFORM ... ON COMMIT subroutines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@David: &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;Seems it is not allowed to do any COMMITs or ROLLBACKs in the FM. &lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; You can in normal FMs, but not in Update FMs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read this: [http://help.sap.com/abapdocu_70/en/ABAPCOMMIT.htm]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 03:57:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-message-type-x-during-commit-on-background-job/m-p/6906109#M1482139</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-05-05T03:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime Error MESSAGE_TYPE_X during COMMIT on Background Job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-message-type-x-during-commit-on-background-job/m-p/6906110#M1482140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suhas,&lt;/P&gt;&lt;P&gt;actualy, I have the error even using COMMIT WORK in the program, which is a simple Report.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Fabio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 04:08:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-message-type-x-during-commit-on-background-job/m-p/6906110#M1482140</guid>
      <dc:creator>fabio_bellocchio</dc:creator>
      <dc:date>2010-05-05T04:08:01Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime Error MESSAGE_TYPE_X during COMMIT on Background Job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-message-type-x-during-commit-on-background-job/m-p/6906111#M1482141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Fabio,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;would you please first check in ST22 where exactly this exception is raised? In your report or in the update function module?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is clearly that it is caused by misuse statement listed below in the COMMIT WORK. You can first check if these statement is used somewhere in your program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Within an update function module started using COMMIT WORK, the execution of statements that lead to a database commit is not permitted. In particular, the following are forbidden: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COMMIT WORK &lt;/P&gt;&lt;P&gt;ROLLBACK WORK &lt;/P&gt;&lt;P&gt;SUBMIT &lt;/P&gt;&lt;P&gt;CALL TRANSACTION &lt;/P&gt;&lt;P&gt;LEAVE TO TRANSACTION &lt;/P&gt;&lt;P&gt;CALL DIALOG &lt;/P&gt;&lt;P&gt;CALL SCREEN &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Jerry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 May 2010 05:10:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-message-type-x-during-commit-on-background-job/m-p/6906111#M1482141</guid>
      <dc:creator>JerryWang</dc:creator>
      <dc:date>2010-05-19T05:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime Error MESSAGE_TYPE_X during COMMIT on Background Job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-message-type-x-during-commit-on-background-job/m-p/6906112#M1482142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem could only be fixed by splitting the process in 2 different Programs, called with statement Submit [PROGRAM], where the COMMIT command was placed in the second Program. By doing so, the first Program got isolate of the Commit statement, which has stopped the error to occur.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jul 2010 07:07:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-message-type-x-during-commit-on-background-job/m-p/6906112#M1482142</guid>
      <dc:creator>fabio_bellocchio</dc:creator>
      <dc:date>2010-07-02T07:07:22Z</dc:date>
    </item>
  </channel>
</rss>

