<?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: Commit work in RFC BAPI in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-in-rfc-bapi/m-p/10284909#M1832320</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;that looks correct I suppose you get back successful message. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;did you check the rfc connection setting (SM59) - especially user authorization and login client, aren't you deleting in another client then you expect? to be sure where you are deleting you could append sy-mandt to the return message temporaily. is it trusted connection or with filled client/username/passwd?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Apr 2014 07:36:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-04-11T07:36:27Z</dc:date>
    <item>
      <title>Commit work in RFC BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-in-rfc-bapi/m-p/10284902#M1832313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a RFC BAPI to delete an entry from Z table. Whenever I run the BAPI from any workstation (PC), BAPI is executes correctly and an entry is deleted from the database table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But whenever call the bapi from a remote system, say mobile, then delete query is executed successfully (sy-subrc = 0 ) but same is not reflected in the database table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For a workaround,&lt;/P&gt;&lt;P&gt;I tried explicit commit using &lt;STRONG&gt;COMMIT WORK &lt;/STRONG&gt;immediately after delete query in the BAPI itself and &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I also tried calling bapi using&lt;/SPAN&gt;&lt;STRONG style="font-size: 10pt;"&gt; "BAPI_TRANSACTION_COMMIT" &lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;from the remote device for explicit commit&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Either way delete query was not reflected in the database. &lt;SPAN style="font-size: 12px; background-color: #fffff0; color: #333333;"&gt;Please give some suggestion as I am not able to figure out the reason for this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; background-color: #fffff0; color: #333333;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; background-color: #fffff0; color: #333333;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; background-color: #fffff0; color: #333333;"&gt;Saurabh&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Apr 2014 04:40:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-in-rfc-bapi/m-p/10284902#M1832313</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-04-11T04:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: Commit work in RFC BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-in-rfc-bapi/m-p/10284903#M1832314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Saurabh ,&lt;/P&gt;&lt;P&gt;Normally commit or BAPI_TRANSACTION_COMMIT works fine in RFC call .Try giving the statement SET UPDATE TASK LOCAL after the commit .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards ,&lt;/P&gt;&lt;P&gt;Juneed Manha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Apr 2014 05:10:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-in-rfc-bapi/m-p/10284903#M1832314</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-04-11T05:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: Commit work in RFC BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-in-rfc-bapi/m-p/10284904#M1832315</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;please try to call&amp;nbsp; BAPI_TRANSACTION_COMMIT in your BAPI (not as an own call from other system).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Klaus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Apr 2014 05:17:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-in-rfc-bapi/m-p/10284904#M1832315</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-04-11T05:17:58Z</dc:date>
    </item>
    <item>
      <title>Re: Commit work in RFC BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-in-rfc-bapi/m-p/10284905#M1832316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Put some WAIT time ( 3 sec....) in BAPI_TRANSACTION_COMMIT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Apr 2014 06:05:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-in-rfc-bapi/m-p/10284905#M1832316</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-04-11T06:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: Commit work in RFC BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-in-rfc-bapi/m-p/10284906#M1832317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;before return from the rfc call system performs implicit commit work in the destination system so the explicit commit should really not help. I suppose you did not do any rollback in your bapi... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you share related pieces of your code? calling rfc and deleting db lines&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Br&lt;/P&gt;&lt;P&gt;Bohuslav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Apr 2014 06:27:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-in-rfc-bapi/m-p/10284906#M1832317</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-04-11T06:27:24Z</dc:date>
    </item>
    <item>
      <title>Re: Commit work in RFC BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-in-rfc-bapi/m-p/10284907#M1832318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Write the code below &lt;SPAN style="color: #333333; font-size: 11.818181991577148px;"&gt;BAPI_TRANSACTION_COMMIT&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S52"&gt;WAIT&lt;/SPAN&gt; &lt;SPAN class="L1S52"&gt;UP&lt;/SPAN&gt; &lt;SPAN class="L1S52"&gt;TO&lt;/SPAN&gt; &lt;SPAN class="L1S32"&gt;3&lt;/SPAN&gt; SECONDS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Apr 2014 06:45:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-in-rfc-bapi/m-p/10284907#M1832318</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-04-11T06:45:15Z</dc:date>
    </item>
    <item>
      <title>Re: Commit work in RFC BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-in-rfc-bapi/m-p/10284908#M1832319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;Bohuslav,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;please find the code below:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;STRONG&gt;FUNCTION &lt;/STRONG&gt;&lt;/SPAN&gt;ZEPAY_APP_DELETE_SESSION.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S31"&gt;*"----------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S31"&gt;*"*"Local Interface:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S31"&gt;*"&amp;nbsp; IMPORTING&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S31"&gt;*"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VALUE(MY_USER) TYPE&amp;nbsp; UNAME&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S31"&gt;*"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VALUE(MY_GRP) TYPE&amp;nbsp; ZAPGP&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S31"&gt;*"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VALUE(I_BANK) TYPE&amp;nbsp; HBKID&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S31"&gt;*"&amp;nbsp; TABLES&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S31"&gt;*"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RETMSG STRUCTURE&amp;nbsp; BAPI_MATRETURN2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S31"&gt;*"----------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;&lt;STRONG&gt;DATA : &lt;/STRONG&gt;&lt;/SPAN&gt;wa_retmsg &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;BAPI_MATRETURN2.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S31"&gt;*"----------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;DELETE &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN class="L0S52"&gt;&lt;STRONG&gt;FROM &lt;/STRONG&gt;&lt;/SPAN&gt;zepay_session&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52" style="font-size: 10pt;"&gt;&lt;STRONG&gt;WHERE &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;sname&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-size: 10pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;my_user&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;&lt;STRONG&gt;AND&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/SPAN&gt;app_grp &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;my_grp&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;&lt;STRONG&gt;AND&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/SPAN&gt;hbkid&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;i_bank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S31"&gt;*"----------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;&lt;STRONG&gt;IF &lt;/STRONG&gt;&lt;/SPAN&gt;SY&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;SUBRC &lt;SPAN class="L0S52"&gt;&lt;STRONG&gt;EQ &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;0.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wa_retmsg&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;type &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'S'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wa_retmsg&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;MESSAGE &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'Session is successfully logged off' .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-size: 10pt;"&gt;&lt;STRONG&gt;ELSEIF &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;my_grp &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-size: 10pt;"&gt;&lt;STRONG&gt;eq&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;SPAN class="L0S33" style="font-size: 10pt;"&gt;' '.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wa_retmsg&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;type &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'E'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wa_retmsg&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;MESSAGE &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'User Group not found. Please verify the Session log' .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-size: 10pt;"&gt;&lt;STRONG&gt;ELSEIF &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;my_user &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-size: 10pt;"&gt;&lt;STRONG&gt;eq&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;SPAN class="L0S33" style="font-size: 10pt;"&gt;' '.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wa_retmsg&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;type &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'E'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wa_retmsg&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;MESSAGE &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'User not found. Please verify the Session log' .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-size: 10pt;"&gt;&lt;STRONG&gt;ENDIF.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;&lt;STRONG&gt;APPEND &lt;/STRONG&gt;&lt;/SPAN&gt;wa_retmsg &lt;SPAN class="L0S52"&gt;&lt;STRONG&gt;to &lt;/STRONG&gt;&lt;/SPAN&gt;retmsg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S31"&gt;*"----------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;CLEAR : &lt;/SPAN&gt;i_bank,my_user,my_grp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;STRONG&gt;ENDFUNCTION.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Apr 2014 07:27:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-in-rfc-bapi/m-p/10284908#M1832319</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-04-11T07:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: Commit work in RFC BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-in-rfc-bapi/m-p/10284909#M1832320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;that looks correct I suppose you get back successful message. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;did you check the rfc connection setting (SM59) - especially user authorization and login client, aren't you deleting in another client then you expect? to be sure where you are deleting you could append sy-mandt to the return message temporaily. is it trusted connection or with filled client/username/passwd?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Apr 2014 07:36:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-in-rfc-bapi/m-p/10284909#M1832320</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-04-11T07:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: Commit work in RFC BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-in-rfc-bapi/m-p/10284910#M1832321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why don't you check for empty fields BEFORE you execute your delete statement ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For me that would make more sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In general when you do database updates you would have to do checks on fields before you do the actual update.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe it has to do with how the data is coming in (e,g, leading zeroes or not).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can add some logging to your code and write the fields that are coming in to the log, so you know if there is something incorrect with the data coming into the Bapi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can imagine that because of that no entry is found in the table and therefore your delete will not happen. You are also not checking sy-subrc = 4. This would be the case if no entry can be found with that key to delete.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also do not see a commit or rollback in your code. You need to commit the delete transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also return/use sy-dbcnt to see how many rows (if any) have been deleted.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Apr 2014 08:32:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-in-rfc-bapi/m-p/10284910#M1832321</guid>
      <dc:creator>PeterJonker</dc:creator>
      <dc:date>2014-04-11T08:32:12Z</dc:date>
    </item>
    <item>
      <title>Re: Commit work in RFC BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-in-rfc-bapi/m-p/10284911#M1832322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Juneed, Klaus and RSK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for quick response.&lt;/P&gt;&lt;P&gt;I will try &lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;STRONG&gt;BAPI_TRANSACTION_COMMIT &lt;/STRONG&gt;&lt;/SPAN&gt;in the BAPI and will revert back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro_emoticon jive_macro jive_emote" src="https://community.sap.com/718/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Apr 2014 09:15:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-in-rfc-bapi/m-p/10284911#M1832322</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-04-11T09:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: Commit work in RFC BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-in-rfc-bapi/m-p/10284912#M1832323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Call the following FM in sequence-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i) CALL FUNCTION 'ZEPAY_APP_DELETE_SESSION' DESTINATION 'XYZ'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ii)&amp;nbsp; If successful-&amp;gt; CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DESTINATION = 'XYZ'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or put the 'BAPI_TRANSACTION_COMMIT' inside the RFC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ideally, as Bohuslav suggested synchronous RFC should do implicit commit for every call.&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/eb/2ffba609ad1d479fbba21944a041fa/content.htm" title="http://help.sap.com/saphelp_nw04/helpdata/en/eb/2ffba609ad1d479fbba21944a041fa/content.htm"&gt;RFC Restrictions (SAP Library - Components of SAP Communication Technology)&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Apr 2014 18:26:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-work-in-rfc-bapi/m-p/10284912#M1832323</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-04-11T18:26:52Z</dc:date>
    </item>
  </channel>
</rss>

