<?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: BAPI_PRODORD_CREATE delete order in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-prodord-create-delete-order/m-p/12277633#M1988445</link>
    <description>&lt;P&gt;Thank you for your answer,
a question, is there a fm to remove the delete flag set with the bapi BAPI_PRODORD_SET_DELETION_FLAG? &lt;/P&gt;&lt;P&gt;thanks it's very urgent&lt;/P&gt;</description>
    <pubDate>Thu, 01 Oct 2020 10:16:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2020-10-01T10:16:26Z</dc:date>
    <item>
      <title>BAPI_PRODORD_CREATE delete order</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-prodord-create-delete-order/m-p/12277630#M1988442</link>
      <description>&lt;P&gt;how can I cancel the execution of the bapi BAPI_PRODORD_CREATE after it has been executed and I must necessarily commit because after this bapi I have to perform other operations and if these go wrong then I have to cancel the BAPI_PRODORD_CREATE so that the order is no longer present?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2020 08:05:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-prodord-create-delete-order/m-p/12277630#M1988442</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2020-10-01T08:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_PRODORD_CREATE delete order</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-prodord-create-delete-order/m-p/12277631#M1988443</link>
      <description>&lt;P&gt;&lt;SPAN class="mention-scrubbed"&gt;nick99999&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;There are two BAPIs  which are used for commit and Rollback. If the BAPI operation is successful you can go for Commit BAPI else Rollback BAPI. Code samples below for reference:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
   EXPORTING
     wait   = abap_true
   IMPORTING
     return = ls_return.

  CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards!&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2020 08:12:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-prodord-create-delete-order/m-p/12277631#M1988443</guid>
      <dc:creator>former_member1716</dc:creator>
      <dc:date>2020-10-01T08:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_PRODORD_CREATE delete order</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-prodord-create-delete-order/m-p/12277632#M1988444</link>
      <description>&lt;P&gt;Hello &lt;SPAN class="mention-scrubbed"&gt;nick99999&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The answer of &lt;SPAN class="mention-scrubbed"&gt;satishkumarbalasubramanian&lt;/SPAN&gt; is valid in general as it follows SAP best practice of BAPI implementation. However BAPI_PRODORD_CREATE doesn't follow it (don't ask me why; it's just how SAP has chosen to implement it). You don't need to explicitly call BAPI_TRANSACTION_COMMIT. See the documentation of BAPI_PRODORD_CREATE - it reads:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;The method independently triggers the update to the database. You do not need to execute a &lt;STRONG&gt;COMMIT WORK&lt;/STRONG&gt; again after the method has been called.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Also refer to note &lt;A href="https://launchpad.support.sap.com/#/notes/0002587249" target="_blank"&gt;2587249 - Does the BAPI need COMMIT Work?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If you need to cancel/delete a production order, you can use BAPI_PRODORD_SET_DELETION_FLAG function. It's also doesn't need explicit commit work.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Dominik Tylczynski&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2020 09:07:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-prodord-create-delete-order/m-p/12277632#M1988444</guid>
      <dc:creator>Dominik_Tylczynski</dc:creator>
      <dc:date>2020-10-01T09:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_PRODORD_CREATE delete order</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-prodord-create-delete-order/m-p/12277633#M1988445</link>
      <description>&lt;P&gt;Thank you for your answer,
a question, is there a fm to remove the delete flag set with the bapi BAPI_PRODORD_SET_DELETION_FLAG? &lt;/P&gt;&lt;P&gt;thanks it's very urgent&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2020 10:16:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-prodord-create-delete-order/m-p/12277633#M1988445</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2020-10-01T10:16:26Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_PRODORD_CREATE delete order</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-prodord-create-delete-order/m-p/12277634#M1988446</link>
      <description>&lt;P&gt;Hello &lt;SPAN class="mention-scrubbed"&gt;nick99999&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I don't think there is a BAPI to revoke deletion flag. However you can revoke it in CO02 transaction.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Dominik Tylczynski&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2020 10:36:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-prodord-create-delete-order/m-p/12277634#M1988446</guid>
      <dc:creator>Dominik_Tylczynski</dc:creator>
      <dc:date>2020-10-01T10:36:48Z</dc:date>
    </item>
  </channel>
</rss>

