<?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: BAPI_TRANSACTION_COMMIT doesn't commit! in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-doesn-t-commit/m-p/1847167#M359239</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the commit may never be called because of:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
if(returns.length == 1)
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The RETURNS table is generally not empty after the initail BAPI call if it was successful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 04 Feb 2007 20:58:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-04T20:58:26Z</dc:date>
    <item>
      <title>BAPI_TRANSACTION_COMMIT doesn't commit!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-doesn-t-commit/m-p/1847163#M359235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using BAPI_TRANSACTION_COMMIT to commit an invoice (BAPI_INCOMINGINVOICE_CREATE) out of a Java Programm. I'm using the SAP Enterprise Connector to create Proxy-Classes for Java. Problem: ret.getMessage() is always empty and nothing is commited. Some ideas? That's my Code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;jcoclient.connect();
Connector_PortType myproxy = new Connector_PortType();
Commit_PortType commitProxy = new Commit_PortType();
myproxy.messageSpecifier.setJcoClient(jcoclient);
commitProxy.messageSpecifier.setJcoClient(jcoclient);
String returnString = "Error during transmitting the data! Check required fields!";
try {
	// BAPI Invoice call
	Bapi_Incominginvoice_Create_Output output = myproxy.bapi_Incominginvoice_Create(input);
	Bapiret2Type[] returns = output.getReturn();
	if(returns.length == 1) {
		returnString = "Invoice transmitted successfully!"; //Thats OK
		// Commit call
		Bapi_Transaction_Commit_Input transInput = new Bapi_Transaction_Commit_Input();	
		transInput.setWait("X");
		Bapi_Transaction_Commit_Output transOutput = commitProxy.bapi_Transaction_Commit(transInput);
		commit.Bapiret2Type ret = transOutput.getReturn();
		returnString = returnString + " - "+ret.getMessage(); // ret.getMessage is always empty
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Feb 2007 10:21:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-doesn-t-commit/m-p/1847163#M359235</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-03T10:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_TRANSACTION_COMMIT doesn't commit!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-doesn-t-commit/m-p/1847164#M359236</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 don't get your problem. Do you mean, the BAPI is not saving the data in this case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once your Invoice gets succesfully created, Why you expect a message after using BAPI_TRANSACATION_COMMIT. Is there any specific requirement, where you want to display the message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think you should be using return tables in BAPI_TRANSACTION_COMMIT, here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls check again, without specifying return tables in BAPI_TRANSACTION_COMMIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls reward suitable points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;- Atul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Feb 2007 19:09:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-doesn-t-commit/m-p/1847164#M359236</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-03T19:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_TRANSACTION_COMMIT doesn't commit!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-doesn-t-commit/m-p/1847165#M359237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go through this link&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.topxml.com/biztalkutilities/walkthroughs/BizTalk%20Utilities%20Adapter%20for%20SAP%20Samples.pdf" target="test_blank"&gt;http://www.topxml.com/biztalkutilities/walkthroughs/BizTalk%20Utilities%20Adapter%20for%20SAP%20Samples.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Feb 2007 19:26:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-doesn-t-commit/m-p/1847165#M359237</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-03T19:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_TRANSACTION_COMMIT doesn't commit!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-doesn-t-commit/m-p/1847166#M359238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;it is difficult to understand your coding, since you obviously have your own wrapper classes for the JCO classes. But one possible reason could be:&lt;/P&gt;&lt;P&gt;You do a connect for the bapi call and a separate connect for the transaction commit. If the second one is a new connect to the R/3 system, you are in a different LUW and the commit has no impact on the update tasks of the first bapi call. &lt;/P&gt;&lt;P&gt;One solution could be: Build your own ABAP wrapper for the BAPI, which does already a commit, and call this wrapper by JCO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Feb 2007 20:22:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-doesn-t-commit/m-p/1847166#M359238</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-03T20:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_TRANSACTION_COMMIT doesn't commit!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-doesn-t-commit/m-p/1847167#M359239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the commit may never be called because of:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
if(returns.length == 1)
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The RETURNS table is generally not empty after the initail BAPI call if it was successful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Feb 2007 20:58:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-doesn-t-commit/m-p/1847167#M359239</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-04T20:58:26Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_TRANSACTION_COMMIT doesn't commit!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-doesn-t-commit/m-p/1847168#M359240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no problem calling BAPI_COMMIT even if the invoice create had errors.  The only reason to not commit is if you are calling a series of BAPIs and want to only commit if all the BAPI calls are successful.&lt;/P&gt;&lt;P&gt;So to bring together some of the earlier comments, you could put the BAPI_COMMIT in the wrapper for the BAPI_INCOMINGINVOICE_CREATE and call it regardless of the result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Feb 2007 02:48:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-doesn-t-commit/m-p/1847168#M359240</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-05T02:48:26Z</dc:date>
    </item>
  </channel>
</rss>

