<?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: RFC seems to make implicit commit ?! in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-seems-to-make-implicit-commit/m-p/1112790#M106594</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What RFC is it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Jan 2006 18:02:02 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2006-01-11T18:02:02Z</dc:date>
    <item>
      <title>RFC seems to make implicit commit ?!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-seems-to-make-implicit-commit/m-p/1112789#M106593</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;when I call an RFC I see that after the call to the RFC returns everything has been committed to the database. This is not the desired behavior. I want to call several RFCs in a row and then send BAPI_TRANSACTION_COMMIT or BAPI_TRANSACTION_ROLLBACK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anybody know whether this can be done at all and if so how?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Oliver Plohmann&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2006 18:01:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-seems-to-make-implicit-commit/m-p/1112789#M106593</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-11T18:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: RFC seems to make implicit commit ?!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-seems-to-make-implicit-commit/m-p/1112790#M106594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What RFC is it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2006 18:02:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-seems-to-make-implicit-commit/m-p/1112790#M106594</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-01-11T18:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: RFC seems to make implicit commit ?!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-seems-to-make-implicit-commit/m-p/1112791#M106595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is the RFC, read the RFC documentation, you can see &lt;/P&gt;&lt;P&gt;whether you need to use bapi_transaction_commit explicitly or not , read the documentation of the RFC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2006 18:09:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-seems-to-make-implicit-commit/m-p/1112791#M106595</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-11T18:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: RFC seems to make implicit commit ?!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-seems-to-make-implicit-commit/m-p/1112792#M106596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;An RFC call is nothing but a login&lt;DEL&gt;process&lt;/DEL&gt;logout similar to an online user. Similar to when an online user logs out, a commit is performed, even that is true with RFC. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to group all the different BAPIs that you want to call into one RFC call and that way they will commit or rollback as a group. You cannot go back and forth making multiple RFC calls, one for each BAPI that you use without commit happening after each call.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is how your calls should be modelled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Log on

       (Source code)

   Call BAPI

(Source code)

   Call BAPI

       (Source code)

Call BAPI BapiService.TransactionCommit()

       (Source code)

   Call BAPI

       (Source code)

   Call BAPI

       (Source code)

Call BAPI BapiService.TransactionCommit()

       (Source code)

Log off
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2006 19:14:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-seems-to-make-implicit-commit/m-p/1112792#M106596</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-11T19:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: RFC seems to make implicit commit ?!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-seems-to-make-implicit-commit/m-p/1112793#M106597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi oliver,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. As recommended,&lt;/P&gt;&lt;P&gt;   u will have to BUNCH everything&lt;/P&gt;&lt;P&gt;   in one FM (RFC Enabled)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. If u see the documentation F1 on Call FUNCTION syntax,&lt;/P&gt;&lt;P&gt;   ITS CLEARLY MENTIONED THAT :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;Note that a database commit occurs at each Remote Function Call (RFC). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Hence, irrespective of which ever BAPI / FM(rfc)&lt;/P&gt;&lt;P&gt;   u call, it will&lt;/P&gt;&lt;P&gt;  do DATABASE COMMIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SAP has already clearly mentioned it&lt;/P&gt;&lt;P&gt;  in their F1 documenation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2006 04:55:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-seems-to-make-implicit-commit/m-p/1112793#M106597</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-12T04:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: RFC seems to make implicit commit ?!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-seems-to-make-implicit-commit/m-p/1112794#M106598</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;thanks for all the answers. The RFC is a plain remote enabled function module I wrote of my own. The RFC is called from outside SAP from Java using JCo. I guess it is clear now that I can forget about what I was dreaming of being able to do. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This means I have to send tons of data all in once with one RFC to SAP. This is not very nice, especially because I can't make updates/inserts/deletes at runtime in an arbitrary order. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can see two ways to address this issue:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Call one RFC for every update/insert/delete. Each RFC stores the import parameters in a separate database table and exits without doing anything else. At the end, call a custom RFC that retrieves the import parameters from the parameter tables, call the RFCs again in the right order and do a commit work then.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Send a stream of data from Java that is interpreted by a single RFC which makes the appropriate updates/inserts/deletes and then commits.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The latter approach seems more elegant, but more difficult to implement. What would you guys recommend? The whole thing is a little effortful, but would be a cool thing to implement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Oliver Plohmann&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2006 08:32:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-seems-to-make-implicit-commit/m-p/1112794#M106598</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-12T08:32:33Z</dc:date>
    </item>
  </channel>
</rss>

