<?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: Batch-Input before COMMIT? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-input-before-commit/m-p/3309062#M792576</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jen, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the problem is that I want to use a transaction that needs data (TO number) that I created already but I don't called a COMMIT, see following structure (simplified):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

* Creating TO
PERFORM create_new_transport_order CHANGING lv_generated_to_num.

CALL TRANSACTION LT31 WITH lv_generated_to_num.

&amp;lt;....&amp;gt;

COMMIT WORK.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to call a transaction with data that is not really in the database yet? That's my question/problem. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Feb 2008 11:06:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-05T11:06:27Z</dc:date>
    <item>
      <title>Batch-Input before COMMIT?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-input-before-commit/m-p/3309060#M792574</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;I have a question corresponding to an IDOC-interface to an external system in the module WM. I use the WMTOCO-IDOC and its two User-Exits to handle special operations that have to be done before and after the confirmation (which is made by SAP) of a transport order (TO). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now my problem is: in this User-Exit I have to create a new TO and if all operations (also by SAP) are successfull, I should also print this new generated TO. To print a TO I want to read the customizing-settings via a function module and after that I plan to use Batch-Input (Direct Input in a CALL TRANSACTION) for LT31.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I should print it only if there were no errors before occured, I plan to start this CALL TRANSACTION-call in the user-exit that is used for error-handling. But the final COMMIT WORK is done by the SAP after the second user exit. So the new generated TO doesn't really exist in this moment on the database, isn't it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I handle this situation so that I can print the new transport order via transaction-call. Do you have any hints or tips?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you much &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greets&lt;/P&gt;&lt;P&gt;JetGum&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2008 07:48:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-input-before-commit/m-p/3309060#M792574</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-05T07:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: Batch-Input before COMMIT?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-input-before-commit/m-p/3309061#M792575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't know if this is your problem, but are you calling CALL TRANSACTION with OPTIONS and then put the field RACOMMIT = 'X' (then the batch input won't terminate after the commit work)? &lt;/P&gt;&lt;P&gt;Maybe you should try this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2008 10:55:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-input-before-commit/m-p/3309061#M792575</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-05T10:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: Batch-Input before COMMIT?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-input-before-commit/m-p/3309062#M792576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jen, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the problem is that I want to use a transaction that needs data (TO number) that I created already but I don't called a COMMIT, see following structure (simplified):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

* Creating TO
PERFORM create_new_transport_order CHANGING lv_generated_to_num.

CALL TRANSACTION LT31 WITH lv_generated_to_num.

&amp;lt;....&amp;gt;

COMMIT WORK.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to call a transaction with data that is not really in the database yet? That's my question/problem. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2008 11:06:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-input-before-commit/m-p/3309062#M792576</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-05T11:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: Batch-Input before COMMIT?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-input-before-commit/m-p/3309063#M792577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you should create the TO in database and after call the transaction, because if not, the order won't exist in the tables.. &lt;/P&gt;&lt;P&gt;how do you create the TO? maybe you can create the TO and after you can do the commit work and then call the transaction (and the second commit work).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2008 11:43:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-input-before-commit/m-p/3309063#M792577</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-05T11:43:48Z</dc:date>
    </item>
  </channel>
</rss>

