<?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: Issue with bapi commit in method in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-bapi-commit-in-method/m-p/2667530#M615691</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;most BAPI's do a test for a flag and if it is set they will perform a commit. This allows you to use the debugger to set this flag on so that the BAPI will perform the commit. This then means you can check to see if the BAPI is actually doing what you wanted it to.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps the BAPI is getting an error of some kind which would explain why the db changes are not saved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Graham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Aug 2007 23:49:56 GMT</pubDate>
    <dc:creator>GrahamRobbo</dc:creator>
    <dc:date>2007-08-16T23:49:56Z</dc:date>
    <item>
      <title>Issue with bapi commit in method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-bapi-commit-in-method/m-p/2667525#M615686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everyone&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Iam using a BAPI to create a data in CRM inside a method. And i get an error when i use the BAPI_COMMIT inside the method. Its give me an error even if u use just COMMIT WORK. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any solutions pls?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Suri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Aug 2007 21:28:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-bapi-commit-in-method/m-p/2667525#M615686</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-15T21:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with bapi commit in method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-bapi-commit-in-method/m-p/2667526#M615687</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;Could you post the message error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What happens if you DONT use commit?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bye&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gabriel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Aug 2007 21:31:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-bapi-commit-in-method/m-p/2667526#M615687</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-15T21:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with bapi commit in method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-bapi-commit-in-method/m-p/2667527#M615688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you give the Class &amp;amp; BAPI name?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Aug 2007 21:38:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-bapi-commit-in-method/m-p/2667527#M615688</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-15T21:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with bapi commit in method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-bapi-commit-in-method/m-p/2667528#M615689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let me describe in detail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My friend is facing this issue exactly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;He is using a BAPI to create Businee Partner, actually the commit works. When we use the COMMIT after the BAPI it creates the Businees Partner and updates the BUT000 table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the BUT000 has two custom fields called ZFEIN and ZSSN. After the commit of the BAPI we capture the Business partner and update the BUT000 table with new ZFEIN and ZSSN value. And this does not work i.e it does not update the custom fields of the BUT000 table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for posting the query wrong previously.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THanks,&lt;/P&gt;&lt;P&gt;Suri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Aug 2007 22:21:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-bapi-commit-in-method/m-p/2667528#M615689</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-15T22:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with bapi commit in method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-bapi-commit-in-method/m-p/2667529#M615690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make sure that the create process is completed before you do an update. Put a break point at your update statement and check if an entry exists for the newly created business partner in the table BUT000. If it exists then, maybe you have to do an conversion exit (alpha) on the business partner number before the update process.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2007 14:26:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-bapi-commit-in-method/m-p/2667529#M615690</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-16T14:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with bapi commit in method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-bapi-commit-in-method/m-p/2667530#M615691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;most BAPI's do a test for a flag and if it is set they will perform a commit. This allows you to use the debugger to set this flag on so that the BAPI will perform the commit. This then means you can check to see if the BAPI is actually doing what you wanted it to.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps the BAPI is getting an error of some kind which would explain why the db changes are not saved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Graham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2007 23:49:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-bapi-commit-in-method/m-p/2667530#M615691</guid>
      <dc:creator>GrahamRobbo</dc:creator>
      <dc:date>2007-08-16T23:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with bapi commit in method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-bapi-commit-in-method/m-p/2667531#M615692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the update to BUT000 is after the commit to the BAPI, you may have to do a separate commit for that later update unless an action or event occurs that causes an implicit database commit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may need to execute &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COMMIT WORK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or call function module DB_COMMIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Keep in mind that a database commit closes all open database cursors, which would affect an open select loops or OPEN CURSOR statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2007 19:00:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-bapi-commit-in-method/m-p/2667531#M615692</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-17T19:00:40Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with bapi commit in method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-bapi-commit-in-method/m-p/2667532#M615693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Brian ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i use either of the below commit statements inside the BADI implementation method IF_EX_EXEC_METHODCALL_PPF~EXECUTE , &lt;/P&gt;&lt;P&gt;COMMIT WORK &lt;/P&gt;&lt;P&gt;BAPI_TRANSACTION_COMMIT&lt;/P&gt;&lt;P&gt;DB_COMMIT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get an pop-up error message reading "Adminstration Header For (GUID) not found".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We need a COMMIT WORK statement inside the implementation to update the Custom Fields of BUT000 table after the creation of the Business Partner using the standard BAPI "BAPI_BUPA_CREATE_FROM_DATA"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest if there is any work around to update the custom fields in BUT000 table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Suri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2007 20:55:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-bapi-commit-in-method/m-p/2667532#M615693</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-20T20:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with bapi commit in method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-bapi-commit-in-method/m-p/2667533#M615694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check out the following thread, where some similar problems have come up:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="3628187"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This may give a more comprehensive solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2007 21:40:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-bapi-commit-in-method/m-p/2667533#M615694</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-20T21:40:55Z</dc:date>
    </item>
  </channel>
</rss>

