<?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: Output Determination and Commit Work in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/output-determination-and-commit-work/m-p/10695732#M1870447</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think what I'm going to do is to just have the output transmitted at 1&amp;nbsp; send periodically with scheduled job and just schedule a job to do what I need. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kartik - I liked the RFC call but it didn't work for some reason and it seems to be too much effort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Noel - The reason why I'm not using a user exit is because it's for the purpose of an output condition.&amp;nbsp; The scenario is that when a delivery get's PGI'd I have an output that gets created.&amp;nbsp; Based on certain criteria at the same time I'm creating a new output type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using the function modules RV_MESSAGES_INSERT and RV_MESSAGES_UPDATE but it will only work if a commit work is put after the update.&amp;nbsp; Therefore I cannot do it in the immediate dispatch time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks everyone for all their input I greatly appreciate it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Nov 2014 17:26:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-11-10T17:26:44Z</dc:date>
    <item>
      <title>Output Determination and Commit Work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/output-determination-and-commit-work/m-p/10695726#M1870441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a custom output type in which I've created and put my custom program/form into configuration.&amp;nbsp; Everything works fine except there is some processing in my form that I need to do a COMMIT WORK.&amp;nbsp; When I do this with a dispatch time of 4 - Immediately it short dumps because of the this COMMIT WORK.&amp;nbsp; When I remove it I get no short dump but also my work doesn't actually commit and do what it needs to do.&amp;nbsp; However, if I leave the COMMIT WORK in and just process the output with a dispatch time of 1 - send with periodic job and then process it via transaction VL71 everything works fine and my work does what it's supposed to do.&amp;nbsp; Does anyone know any way to get my work to commit while still using the dispatch time of 4?&amp;nbsp; The two function modules I'm using that require the COMMIT WORK are RV_MESSAGES_INSERT and RV_MESSAGES_UPDATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Tamara&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Nov 2014 17:53:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/output-determination-and-commit-work/m-p/10695726#M1870441</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-11-06T17:53:46Z</dc:date>
    </item>
    <item>
      <title>Re: Output Determination and Commit Work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/output-determination-and-commit-work/m-p/10695727#M1870442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tamara,&lt;/P&gt;&lt;P&gt;What`s error message from 'commit work'?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Archer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Nov 2014 02:38:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/output-determination-and-commit-work/m-p/10695727#M1870442</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-11-07T02:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: Output Determination and Commit Work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/output-determination-and-commit-work/m-p/10695728#M1870443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I get a short dump for COMMIT_IN_POSTING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Tamara&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Nov 2014 05:22:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/output-determination-and-commit-work/m-p/10695728#M1870443</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-11-08T05:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: Output Determination and Commit Work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/output-determination-and-commit-work/m-p/10695729#M1870444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually no commit is required with dispatch time 4, are you calling any bapi or updating tables?&lt;/P&gt;&lt;P&gt;one workaround is to have the code in a RFC FM and call it with 'starting new task' addition asynchronously.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Nov 2014 07:30:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/output-determination-and-commit-work/m-p/10695729#M1870444</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-11-08T07:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: Output Determination and Commit Work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/output-determination-and-commit-work/m-p/10695730#M1870445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tamara,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that the output is usually processed in the update task and you are not permitted to execute a "COMMIT WORK" in the update task (this is documented in the ABAP keyword documentation of "COMMIT"). A Commit triggers the update task, so if you have a commit within the update task, what should it do - trigger the update task again? No, it dumps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works in VL71 because here the output is not being processed in the update task in VL71.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you should probably look at the possibility of employing a user exit to populate whatever data you need to. User exits would be called before the COMMIT. Check include MV50AFZ1 for a suitable exit (I guess this output is a delivery output due to you using VL71).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It might be a possibility to use "INSERT" instead of COMMIT in the output program to get the data into the database, but obviously this requires a lot of testing and some knowledge of what you are trying to do. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Nov 2014 21:56:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/output-determination-and-commit-work/m-p/10695730#M1870445</guid>
      <dc:creator>former_member223981</dc:creator>
      <dc:date>2014-11-09T21:56:05Z</dc:date>
    </item>
    <item>
      <title>Re: Output Determination and Commit Work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/output-determination-and-commit-work/m-p/10695731#M1870446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use this FM to check if the code is being called in update task or not,&lt;/P&gt;&lt;P&gt;&lt;SPAN class="st0"&gt;TH_IN_UPDATE_TASK&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="st0"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="st0"&gt;Then call commit accordingly.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2014 05:39:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/output-determination-and-commit-work/m-p/10695731#M1870446</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-11-10T05:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: Output Determination and Commit Work</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/output-determination-and-commit-work/m-p/10695732#M1870447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think what I'm going to do is to just have the output transmitted at 1&amp;nbsp; send periodically with scheduled job and just schedule a job to do what I need. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kartik - I liked the RFC call but it didn't work for some reason and it seems to be too much effort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Noel - The reason why I'm not using a user exit is because it's for the purpose of an output condition.&amp;nbsp; The scenario is that when a delivery get's PGI'd I have an output that gets created.&amp;nbsp; Based on certain criteria at the same time I'm creating a new output type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using the function modules RV_MESSAGES_INSERT and RV_MESSAGES_UPDATE but it will only work if a commit work is put after the update.&amp;nbsp; Therefore I cannot do it in the immediate dispatch time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks everyone for all their input I greatly appreciate it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2014 17:26:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/output-determination-and-commit-work/m-p/10695732#M1870447</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-11-10T17:26:44Z</dc:date>
    </item>
  </channel>
</rss>

