<?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 BAPI TRANSACION COMMIT in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transacion-commit/m-p/3472125#M834620</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I came across a peculiar problem.Actually I wrote a program to create Business Partners in CRM.I was looping through internal table and was using a BAPI to create BP.After BAPI  call I used bapi_transaction_commit and then endloop.But the performance was very poor.So i tried following &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) I tried using BAPI_TRANSACTION_COMMIT immediately after endloop.But only the last record was uploaded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)And then i used &lt;/P&gt;&lt;P&gt;ATLAST&lt;/P&gt;&lt;P&gt;BAPI_TRANSACTION_COMMIT .&lt;/P&gt;&lt;P&gt;ENDAT.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using this way records were getting uploaded perfectly.But why did the first approach failed.As far as I know AT last occurs for the last record.So theoritically transaction commit should be getting executed after last record in the above 2 methods..But why the difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raghu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Feb 26, 2008 10:22 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Feb 2008 15:09:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-26T15:09:26Z</dc:date>
    <item>
      <title>BAPI TRANSACION COMMIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transacion-commit/m-p/3472125#M834620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I came across a peculiar problem.Actually I wrote a program to create Business Partners in CRM.I was looping through internal table and was using a BAPI to create BP.After BAPI  call I used bapi_transaction_commit and then endloop.But the performance was very poor.So i tried following &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) I tried using BAPI_TRANSACTION_COMMIT immediately after endloop.But only the last record was uploaded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)And then i used &lt;/P&gt;&lt;P&gt;ATLAST&lt;/P&gt;&lt;P&gt;BAPI_TRANSACTION_COMMIT .&lt;/P&gt;&lt;P&gt;ENDAT.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using this way records were getting uploaded perfectly.But why did the first approach failed.As far as I know AT last occurs for the last record.So theoritically transaction commit should be getting executed after last record in the above 2 methods..But why the difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raghu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Feb 26, 2008 10:22 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2008 15:09:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transacion-commit/m-p/3472125#M834620</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-26T15:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI TRANSACION COMMIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transacion-commit/m-p/3472126#M834621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raghu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't have access to a CRM system right now but I think that the problem you have is that you need to call another BAPI. That BAPI is about saving the BP you have just created.&lt;/P&gt;&lt;P&gt;AFTER you have created the BP and executed the ?_SAVE BAPI you have to call the BAPI_TRANSACTION_COMMIT. Then the BP will be created, up to that point even if you have used the ?_SAVE BAPI the BP is only in memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can not remenber the name of the BAPI but I think it is very easy to find, look in the same function group of the BAPI you are using to create the BP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Vicente.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2008 15:21:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transacion-commit/m-p/3472126#M834621</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-26T15:21:30Z</dc:date>
    </item>
  </channel>
</rss>

