<?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_REQUISITION_RELEASE_GEN in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-requisition-release-gen/m-p/7996305#M1606200</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message - This thread is locked because it is a cross post; however, if you care to reply, reply to &lt;SPAN __jive_macro_name="message" id="10313695"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 May 2011 17:48:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-05-31T17:48:11Z</dc:date>
    <item>
      <title>BAPI_REQUISITION_RELEASE_GEN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-requisition-release-gen/m-p/7996304#M1606199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have posted this question in the business workflow, but i believe you can also help me. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have defined in spro, in the release strategy for purchase requisition, two strategies. If the overall value of a purchase requisition is under 20 then the order is to be approved by one person(release code L1). If the value is over 20, the purchase will be approved by person 1 and after by person 2(release code L2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I made an abap program with the following code. In this case purchase requisition with number 0010000444 has a value under 20.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_REQUISITION_RELEASE_GEN'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;number = '0010000444'&lt;/P&gt;&lt;P&gt;rel_code = 'L1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After i run this code and look in the SWEL transaction i see the only event that started is Released.&lt;/P&gt;&lt;P&gt;But if i run the code for a purchase requisition with the value over 20, in SWEL i see two events:RELEASED and RELEASESTEPCREATED.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First of all, why is that?Why is  RELEASESTEPCREATED triggered?&lt;/P&gt;&lt;P&gt;Second, i need this to start a workflow. The fact that BAPI_REQUISITION_RELEASE_GEN also triggers the event RELEASESTEPCREATED is giving me headaches. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you other functions to approve a purchase requisition? I need just the event RELEASED to be triggered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much,&lt;/P&gt;&lt;P&gt;Efren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2011 16:52:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-requisition-release-gen/m-p/7996304#M1606199</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-31T16:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_REQUISITION_RELEASE_GEN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-requisition-release-gen/m-p/7996305#M1606200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message - This thread is locked because it is a cross post; however, if you care to reply, reply to &lt;SPAN __jive_macro_name="message" id="10313695"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2011 17:48:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-requisition-release-gen/m-p/7996305#M1606200</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-31T17:48:11Z</dc:date>
    </item>
  </channel>
</rss>

