<?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: RV_INVOICE_CREATE in update task in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/rv-invoice-create-in-update-task/m-p/6104531#M1361019</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm agree with you that there is no need to make another thread. But could you please clarify what do you mean under "run the output asynchronously with RSNAST00"? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Sep 2009 13:47:29 GMT</pubDate>
    <dc:creator>former_member204338</dc:creator>
    <dc:date>2009-09-14T13:47:29Z</dc:date>
    <item>
      <title>RV_INVOICE_CREATE in update task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rv-invoice-create-in-update-task/m-p/6104522#M1361010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i'm using output message for oubound delivery to create automatically invoice.&lt;/P&gt;&lt;P&gt;Dispatch method of message is immediate so printing program is called in update task mode.&lt;/P&gt;&lt;P&gt;Printing program creates invoice by function &lt;EM&gt;RV_INVOICE_CREATE&lt;/EM&gt; with WITH_POSTING = 'F'.&lt;/P&gt;&lt;P&gt;Now there is a problem that sometimes there is a dump 'POSTING_ILLEGAL_STATEMENT' appears&lt;/P&gt;&lt;P&gt;"Statement "COMMIT" is not allowed in this form.".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Callstack:&lt;/P&gt;&lt;P&gt;FUNCTION     SAPLSYDB                            LSYDBU27&lt;/P&gt;&lt;P&gt;DB_COMMIT&lt;/P&gt;&lt;P&gt;FORM         SAPLKEFT                            LKEFTF02&lt;/P&gt;&lt;P&gt;EXPORT_TO_INDX&lt;/P&gt;&lt;P&gt;FUNCTION     SAPLKEFT                            LKEFTU02&lt;/P&gt;&lt;P&gt;RKE_FILL_FIELD_TABLE&lt;/P&gt;&lt;P&gt;FORM         SAPLKEAK                            LKEAKF05&lt;/P&gt;&lt;P&gt;FILL_FIELD_TABLE&lt;/P&gt;&lt;P&gt;FORM         SAPLKEAK                            LKEAKF05&lt;/P&gt;&lt;P&gt;DETERMINE_OPERATING_CONCERN&lt;/P&gt;&lt;P&gt;FUNCTION     SAPLKEAK                            LKEAKU07&lt;/P&gt;&lt;P&gt;COPA_PROFITABILITY_SEGMENT&lt;/P&gt;&lt;P&gt;FUNCTION     SAPLKEAK                            LKEAKU02&lt;/P&gt;&lt;P&gt;COPA_GET_PAOBJNR&lt;/P&gt;&lt;P&gt;FORM         SAPLV60A                            LV60AA16&lt;/P&gt;&lt;P&gt;ERGEBNISOBJEKT_ERMITTELN&lt;/P&gt;&lt;P&gt;FORM         SAPLV60A                            LV60AA59&lt;/P&gt;&lt;P&gt;PREISFINDUNG_GESAMT&lt;/P&gt;&lt;P&gt;FORM         SAPLV60A                            LV60AA27&lt;/P&gt;&lt;P&gt;FAKTURA_BEARBEITEN_ENDE&lt;/P&gt;&lt;P&gt;FUNCTION     SAPLV60A                            LV60AU02&lt;/P&gt;&lt;P&gt;RV_INVOICE_DOCUMENT_ADD&lt;/P&gt;&lt;P&gt;FUNCTION     SAPLV60A                            LV60AU01&lt;/P&gt;&lt;P&gt;RV_INVOICE_CREATE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looks like problem while creating Profitability Segment in controlling. But why there is a commit work?&lt;/P&gt;&lt;P&gt;ERP2005, ehp4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2009 12:42:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rv-invoice-create-in-update-task/m-p/6104522#M1361010</guid>
      <dc:creator>former_member204338</dc:creator>
      <dc:date>2009-09-11T12:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: RV_INVOICE_CREATE in update task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rv-invoice-create-in-update-task/m-p/6104523#M1361011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Obviously, there can't be one - if this results from standard config and code as it appears, then you should search OSS and raise a message if you don't find a solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2009 13:21:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rv-invoice-create-in-update-task/m-p/6104523#M1361011</guid>
      <dc:creator>brad_bohn</dc:creator>
      <dc:date>2009-09-11T13:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: RV_INVOICE_CREATE in update task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rv-invoice-create-in-update-task/m-p/6104524#M1361012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Denis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check all programs involved - including print program and forms. I'd bet that somewhere you will find some piece of code added to the system with a COMMIT WORK. Too many users and developers just refuse to admit that a COMMIT WORK issued in a called routine (not from the original caller) can never be correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Sep 2009 00:08:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rv-invoice-create-in-update-task/m-p/6104524#M1361012</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2009-09-12T00:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: RV_INVOICE_CREATE in update task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rv-invoice-create-in-update-task/m-p/6104525#M1361013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Clemens,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem in standard. But SAP refused to do anything because it's Z-form calls RV_INVOICE_CREATE in update task. The answer was "do not do so". &lt;/P&gt;&lt;P&gt;So now the question is how to investigate the situation properly? call function in separate task? or?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;  Denis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Sep 2009 03:57:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rv-invoice-create-in-update-task/m-p/6104525#M1361013</guid>
      <dc:creator>former_member204338</dc:creator>
      <dc:date>2009-09-12T03:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: RV_INVOICE_CREATE in update task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rv-invoice-create-in-update-task/m-p/6104526#M1361014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;"in separate task"? You mean in background task as separate unit (tRFC, use SM58 to monitor failures). That should work. Or simpler, create a batch which creates invoices at regular intervals.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Sep 2009 20:37:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rv-invoice-create-in-update-task/m-p/6104526#M1361014</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2009-09-13T20:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: RV_INVOICE_CREATE in update task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rv-invoice-create-in-update-task/m-p/6104527#M1361015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just call the function with the addition  DESTINATION 'NONE'. This initiates an RFC call to the own system starting a separate task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2009 08:16:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rv-invoice-create-in-update-task/m-p/6104527#M1361015</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2009-09-14T08:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: RV_INVOICE_CREATE in update task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rv-invoice-create-in-update-task/m-p/6104528#M1361016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Clemens, you're right.&lt;/P&gt;&lt;P&gt;There is an interesting difference between the 2 solutions: tRFC (the one I proposed) proposes recovery (SM58) while aRFC (technology behind destination 'NONE') does not, so if you don't have a manual recovery possible (like running again the dialog transaction), you must code it by yourself.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2009 09:06:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rv-invoice-create-in-update-task/m-p/6104528#M1361016</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2009-09-14T09:06:29Z</dc:date>
    </item>
    <item>
      <title>Re: RV_INVOICE_CREATE in update task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rv-invoice-create-in-update-task/m-p/6104529#M1361017</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 may try creating one more FM and call Invoice create in it with COMMIT WORK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just for the FM call use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ZABC' starting new task abcd&lt;/P&gt;&lt;P&gt;IMPORT&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----------" /&gt;&lt;P&gt;EXPORT&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----------" /&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------" /&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where abcd has to be of type C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(As In Update task database commit is not allowed this will help our commit work to happen out of update task)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Preyansh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2009 10:26:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rv-invoice-create-in-update-task/m-p/6104529#M1361017</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-14T10:26:10Z</dc:date>
    </item>
    <item>
      <title>Re: RV_INVOICE_CREATE in update task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rv-invoice-create-in-update-task/m-p/6104530#M1361018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should run the output asynchronously with RSNAST00 - there's no reason to try to spin off the function call to another thread and I seem to remember that the approach does not work from the update task anyway.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2009 13:05:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rv-invoice-create-in-update-task/m-p/6104530#M1361018</guid>
      <dc:creator>brad_bohn</dc:creator>
      <dc:date>2009-09-14T13:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: RV_INVOICE_CREATE in update task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rv-invoice-create-in-update-task/m-p/6104531#M1361019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm agree with you that there is no need to make another thread. But could you please clarify what do you mean under "run the output asynchronously with RSNAST00"? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2009 13:47:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rv-invoice-create-in-update-task/m-p/6104531#M1361019</guid>
      <dc:creator>former_member204338</dc:creator>
      <dc:date>2009-09-14T13:47:29Z</dc:date>
    </item>
    <item>
      <title>Re: RV_INVOICE_CREATE in update task</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rv-invoice-create-in-update-task/m-p/6104532#M1361020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I understand you correctly, you have a custom delivery output type which is configured to run in 'immediate' mode during the delivery create process and your output program issues a commit work in the update task processing, via the called standard function?  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since you can't control the commit by detecting the presence of the update task processing due to the standard code being used (this would have been my first suggestion), I would schedule the output type for background processing, then run RSNAST00 at some interval via a background job for your output type.  This means that your output program processing is de-coupled from the delivery create process and thus the update task processing is avoided.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2009 22:31:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rv-invoice-create-in-update-task/m-p/6104532#M1361020</guid>
      <dc:creator>brad_bohn</dc:creator>
      <dc:date>2009-09-14T22:31:36Z</dc:date>
    </item>
  </channel>
</rss>

