<?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_REQUISITION_RELEASE commit and rollback in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-requisition-release-commit-and-rollback/m-p/1717091#M313416</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello !&lt;/P&gt;&lt;P&gt;    I´m using &lt;B&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;MF BAPI_REQUISITION_RELEASE&lt;/P&gt;. my question is: it is necessary to execute &lt;B&gt;&lt;P&gt;BAPI_TRANSACTION_COMMIT&lt;/P&gt;&lt;/B&gt; if the execution was ok, or execute &lt;B&gt;&lt;P&gt;BAPI_TRANSACTION_ROLLBACK&lt;/P&gt;&lt;/B&gt; if the execution wasn´t ok? &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;B&gt;&lt;P&gt;in synthesis, this good to do this?&lt;/P&gt;&lt;/B&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_REQUISITION_RELEASE'  + Parameters.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'  + Parameters. &lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'  + Parameters.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Nov 2006 13:02:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-02T13:02:36Z</dc:date>
    <item>
      <title>BAPI_REQUISITION_RELEASE commit and rollback</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-requisition-release-commit-and-rollback/m-p/1717091#M313416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello !&lt;/P&gt;&lt;P&gt;    I´m using &lt;B&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;MF BAPI_REQUISITION_RELEASE&lt;/P&gt;. my question is: it is necessary to execute &lt;B&gt;&lt;P&gt;BAPI_TRANSACTION_COMMIT&lt;/P&gt;&lt;/B&gt; if the execution was ok, or execute &lt;B&gt;&lt;P&gt;BAPI_TRANSACTION_ROLLBACK&lt;/P&gt;&lt;/B&gt; if the execution wasn´t ok? &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;B&gt;&lt;P&gt;in synthesis, this good to do this?&lt;/P&gt;&lt;/B&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_REQUISITION_RELEASE'  + Parameters.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'  + Parameters. &lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'  + Parameters.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2006 13:02:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-requisition-release-commit-and-rollback/m-p/1717091#M313416</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-02T13:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_REQUISITION_RELEASE commit and rollback</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-requisition-release-commit-and-rollback/m-p/1717092#M313417</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;&lt;/P&gt;&lt;P&gt;With BAPI_TRANSACTION_COMMIT ..the external systems have a way of deciding on whether to &lt;/P&gt;&lt;P&gt;Commit or to Roll back Changes. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But with Commit Work u have to code it inside ure BAPI and the outside systems then have no chance or have &lt;/P&gt;&lt;P&gt;any hold over the commit... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so i guess the diff lies more in the way how u want to call commit ,either from outside or from within ure BAPI. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u can use both... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP though recommends using BAPI_Transaction_Commit and not using Commit_work in the BAPI... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but its upto u and ure middleware guy to decide how u want to do it..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ys u r dong correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;anver&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Anversha s&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2006 13:03:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-requisition-release-commit-and-rollback/m-p/1717092#M313417</guid>
      <dc:creator>anversha_s</dc:creator>
      <dc:date>2006-11-02T13:03:34Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_REQUISITION_RELEASE commit and rollback</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-requisition-release-commit-and-rollback/m-p/1717093#M313418</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;It not necessary to execute BAPI_TRANSACTION_COMMIT if the execution was ok, or execute BAPI_TRANSACTION_ROLLBACK if the execution wasn´t ok? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;before compelting the execution of FM 'BAPI_REQUISITION_RELEASE' the commit work will be performed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Satya.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the FM 'BAPI_REQUISITION_RELEASE' execution is unsccessful the as per the requirement you have to give some popup and report display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Satyanarayana Sayana&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2006 13:06:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-requisition-release-commit-and-rollback/m-p/1717093#M313418</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-02T13:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_REQUISITION_RELEASE commit and rollback</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-requisition-release-commit-and-rollback/m-p/1717094#M313419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Fernando:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes you are rigth...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but do it better this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT tbl_msg WHERE type CA 'EAX'.  EXIT.  ENDLOOP.&lt;/P&gt;&lt;P&gt;      IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;        LOOP AT tbl_msg WHERE type CA 'ISW'.  EXIT.  ENDLOOP.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;      IF tbl_msg-type CA 'ISW '.&lt;/P&gt;&lt;P&gt;        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'&lt;/P&gt;&lt;P&gt;          EXPORTING&lt;/P&gt;&lt;P&gt;            wait = 'X'.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;The bapi will not work until you  commit, so you wont have to roolback.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dont forget to reward!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gabriel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2006 13:07:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-requisition-release-commit-and-rollback/m-p/1717094#M313419</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-02T13:07:17Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_REQUISITION_RELEASE commit and rollback</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-requisition-release-commit-and-rollback/m-p/1717095#M313420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,Gabriel :&lt;/P&gt;&lt;P&gt; according you answer, the BAPI will not change the DB after the program does complete when we do not commit. Yes?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Nov 2006 07:54:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-requisition-release-commit-and-rollback/m-p/1717095#M313420</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-23T07:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_REQUISITION_RELEASE commit and rollback</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-requisition-release-commit-and-rollback/m-p/1717096#M313421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Helllo Edgar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the delay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, the db will be only changed when you call the commit, if you dont do it, wont change it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greettings,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gabriel P-&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Nov 2006 06:48:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-requisition-release-commit-and-rollback/m-p/1717096#M313421</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-24T06:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_REQUISITION_RELEASE commit and rollback</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-requisition-release-commit-and-rollback/m-p/1717097#M313422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are rigth !   Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2007 16:02:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-requisition-release-commit-and-rollback/m-p/1717097#M313422</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-06T16:02:09Z</dc:date>
    </item>
  </channel>
</rss>

