<?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 Reject PR Programmatically in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reject-pr-programmatically/m-p/12135401#M1975502</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
  &lt;P&gt;How to reject PR programmatically?&lt;/P&gt;
  &lt;P&gt;I found this BAPI_REQUISITION_RESET_RELEASE to cancel release. But this BAPI does not set the EBAN-BANPR (Proc. state) to '08' (Release Refused).&lt;/P&gt;
  &lt;P&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Wed, 29 Jan 2020 10:16:35 GMT</pubDate>
    <dc:creator>suwandi_cahyadi</dc:creator>
    <dc:date>2020-01-29T10:16:35Z</dc:date>
    <item>
      <title>Reject PR Programmatically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reject-pr-programmatically/m-p/12135401#M1975502</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
  &lt;P&gt;How to reject PR programmatically?&lt;/P&gt;
  &lt;P&gt;I found this BAPI_REQUISITION_RESET_RELEASE to cancel release. But this BAPI does not set the EBAN-BANPR (Proc. state) to '08' (Release Refused).&lt;/P&gt;
  &lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 10:16:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reject-pr-programmatically/m-p/12135401#M1975502</guid>
      <dc:creator>suwandi_cahyadi</dc:creator>
      <dc:date>2020-01-29T10:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: Reject PR Programmatically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reject-pr-programmatically/m-p/12135402#M1975503</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;It seems that it is not possible to reject a purchase requisition with a BAPI. Check note  &lt;A href="https://launchpad.support.sap.com/#/notes/2012650" target="test_blank"&gt;https://launchpad.support.sap.com/#/notes/2012650&lt;/A&gt; for more information.&lt;/P&gt;&lt;P&gt;You could debug ME54N to find how the system rejects a purchase requisition.&lt;/P&gt;&lt;P&gt;Tip: Have a look in method IF_RELEASABLE_MM~INITIATE_RELEASE of class LCL_REQ_HEADER in function group MEREQ.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 10:42:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reject-pr-programmatically/m-p/12135402#M1975503</guid>
      <dc:creator>Nicolas</dc:creator>
      <dc:date>2020-01-29T10:42:48Z</dc:date>
    </item>
    <item>
      <title>Re: Reject PR Programmatically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reject-pr-programmatically/m-p/12135403#M1975504</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thank you for the reply. I have debugged ME54N, in my case it's in local class LCL_RELVIEW_MM, method execute, line 234 'MEREJECT'. I traced and it seems it updates BANPR to '08'. But I suppose, I am not expected to use the same way as in ME54N because it uses local classes (not sure if we can use those local classes in other programs). &lt;/P&gt;&lt;P&gt;I actually found a way to update BANPR by using BAPI_PR_CHANGE. include program L2105I03 method if_bapi_mereq~map2i_is2erp (line 184), it updates item and itemx from extensionin.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2020 06:22:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reject-pr-programmatically/m-p/12135403#M1975504</guid>
      <dc:creator>suwandi_cahyadi</dc:creator>
      <dc:date>2020-01-30T06:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: Reject PR Programmatically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reject-pr-programmatically/m-p/12135404#M1975505</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Indeed, class LCL_RELVIEW_MM is the class behind the tab "Release strategy" of  transactions ME**N. When you click on "Cancel release", the fcode is handled in method execute of lcl_relview_mm which call method IF_RELEASABLE_MM~INITIATE_RELEASE of class LCL_REQ_HEADER.&lt;/P&gt;&lt;P&gt;Are you sure the way you find to update BANPR is correct ? Because, if I check in my system, method if_bapi_mereq~map2i_is2erp calls a BADI (ME_BAPI_PR_IBS) which can only be implemented by SAP.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2020 10:53:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reject-pr-programmatically/m-p/12135404#M1975505</guid>
      <dc:creator>Nicolas</dc:creator>
      <dc:date>2020-01-30T10:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: Reject PR Programmatically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reject-pr-programmatically/m-p/12135405#M1975506</link>
      <description>&lt;P&gt;Yes, it is for SAP implementation only, but I think we can create implicit enhancement at the end of the method.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2020 06:47:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reject-pr-programmatically/m-p/12135405#M1975506</guid>
      <dc:creator>suwandi_cahyadi</dc:creator>
      <dc:date>2020-02-17T06:47:43Z</dc:date>
    </item>
  </channel>
</rss>

