<?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 in Inbound FM in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-in-inbound-fm/m-p/8947605#M1693771</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the requirement is that whenever a stock movement&amp;nbsp; idoc is triggered, I need to do a check and possibly change the PO depending on the condition. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would seem it is really not allowed, but how do you deal with situation like this? If you need to call a bapi within the inbound function module? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Aug 2012 07:33:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-08-23T07:33:27Z</dc:date>
    <item>
      <title>Commit in Inbound FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-in-inbound-fm/m-p/8947601#M1693767</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;Is it allowed to have a commit work or FM call bapi_transaction_commit within an inbound function module? Would we get a negative effect? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2012 07:05:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-in-inbound-fm/m-p/8947601#M1693767</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-08-23T07:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: Commit in Inbound FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-in-inbound-fm/m-p/8947602#M1693768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The reason not to include it is that a COMMIT WORK marks the end of an LUW which might well consist of more than one BAPI call. So always let the outside caller decide whether the transaction can be closed or not, e.g. based on return messages or if there are more steps involved that still need to be started.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2012 07:20:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-in-inbound-fm/m-p/8947602#M1693768</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2012-08-23T07:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: Commit in Inbound FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-in-inbound-fm/m-p/8947603#M1693769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let us know your requirement please.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2012 07:22:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-in-inbound-fm/m-p/8947603#M1693769</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2012-08-23T07:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: Commit in Inbound FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-in-inbound-fm/m-p/8947604#M1693770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Read some documentation like &lt;A class="active_link" href="http://help.sap.com/saphelp_erp2004/helpdata/en/52/16ae16543311d1891c0000e8322f96/content.htm"&gt;Modification Concepts: IDoc Inbound Processing&lt;/A&gt; or &lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/6f/1cde0e7a4b11d396b20004ac96334b/content.htm"&gt;Processing BAPIs&lt;/A&gt; in &lt;A&gt;ALE Inbound Processing&lt;/A&gt;, those documentations prohibit use of COMMIT-WORK.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;If you create a function module or use customer exits, note that no COMMIT WORK command is set, as this can lead to errors in IDoc processing and to inconsistencies in error processing. The system returns to the ALE layer following processing, where the system updates any application errors that have occured, sets the IDoc status, and may even execute database rollbacks.&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2012 07:25:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-in-inbound-fm/m-p/8947604#M1693770</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2012-08-23T07:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: Commit in Inbound FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-in-inbound-fm/m-p/8947605#M1693771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the requirement is that whenever a stock movement&amp;nbsp; idoc is triggered, I need to do a check and possibly change the PO depending on the condition. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would seem it is really not allowed, but how do you deal with situation like this? If you need to call a bapi within the inbound function module? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2012 07:33:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-in-inbound-fm/m-p/8947605#M1693771</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-08-23T07:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: Commit in Inbound FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-in-inbound-fm/m-p/8947606#M1693772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the documentation of call function in background task/separate unit or a wrapper function with starting new task. It might help.&lt;/P&gt;&lt;P&gt;As suggested do not use a commit during a flow as it executes the previously registered update functions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also go for a custom periodic background job which uses the IDOC data from the respective tables and posts it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2012 08:35:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-in-inbound-fm/m-p/8947606#M1693772</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2012-08-23T08:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: Commit in Inbound FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-in-inbound-fm/m-p/8947607#M1693773</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 have used BAPI_TRANSACTION_COMMIT (after calling BAPI,similar to ur requirement) in inbound function module and acheived desired results..but note that I have called BAPI (and BAPI COMMIT) in an exit that is triggered after standard SAP COMMIT statement is executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check if it is the case with you.. let the standard inbound FM perform its own action and commit and check for exits after that(ex: check IDOC_INPUT_ORDERS for Inbound Sales Order creation in which exits are available after Commit).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SG.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2012 07:33:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-in-inbound-fm/m-p/8947607#M1693773</guid>
      <dc:creator>former_member215575</dc:creator>
      <dc:date>2012-09-11T07:33:30Z</dc:date>
    </item>
  </channel>
</rss>

