<?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: Trigger BAPI while creating PO in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/trigger-bapi-while-creating-po/m-p/12549069#M2006709</link>
    <description>&lt;P&gt;Hello Shubham,&lt;/P&gt;&lt;P&gt;If you are sure with your analysis that this requirement cannot be realised using any of the Standard SPRO settings in place, then I would suggest you to use the 'Special Function' Medium type which we have available in Output Management setup(NACE).&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1994868-capture.png" /&gt;&lt;/P&gt;&lt;P&gt;Using this setup you can arrange a call to a Custom Program in such a way that it would be called once the PO is saved to Database and the call to this Custom Program would be done based on the Output Setup in place using NACE settings with Special function feature. Please analyse on this direction.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sijin&lt;/P&gt;</description>
    <pubDate>Wed, 01 Dec 2021 10:12:00 GMT</pubDate>
    <dc:creator>Sijin_Chandran</dc:creator>
    <dc:date>2021-12-01T10:12:00Z</dc:date>
    <item>
      <title>Trigger BAPI while creating PO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trigger-bapi-while-creating-po/m-p/12549065#M2006705</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;
  &lt;P&gt;I am facing issue in one requirement.&lt;/P&gt;
  &lt;P&gt;My requirement is when user create the PO , the PO should get automatically released .&lt;/P&gt;
  &lt;P&gt;If somebody has idea please share your thoughts.&lt;/P&gt;
  &lt;P&gt;Regards,&lt;/P&gt;
  &lt;P&gt;Shubham&lt;/P&gt;
  &lt;P&gt;P.S. - &lt;STRONG&gt;I have tried to create but getting exception 2 as PO must have not been generated.&lt;/STRONG&gt;&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;CODE:&lt;BR /&gt;DATA ls_header TYPE mepoheader.&lt;BR /&gt; DATA lv_rel_code TYPE bapimmpara-po_rel_cod.&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;PRE&gt;&lt;CODE&gt; CALL METHOD im_header-&amp;gt;get_data&lt;BR /&gt; RECEIVING&lt;BR /&gt; re_data = ls_header.&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;PRE&gt;&lt;CODE&gt; IF sy-tcode = 'ME21N' OR sy-tcode = 'ME22N'.&lt;BR /&gt; IF ls_header-konnr IS NOT INITIAL. " Outline Agreement&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;PRE&gt;&lt;CODE&gt; SELECT SINGLE FRGC1 FROM T16FS INTO lv_rel_code&lt;BR /&gt; WHERE FRGGR = 'NP'&lt;BR /&gt; AND FRGSX = '00'.&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;PRE&gt;&lt;CODE&gt; IF lv_rel_code IS NOT INITIAL.&lt;BR /&gt; CALL FUNCTION 'BAPI_PO_RELEASE'&lt;BR /&gt; EXPORTING&lt;BR /&gt; PURCHASEORDER = im_ebeln&lt;BR /&gt; PO_REL_CODE = lv_rel_code&lt;BR /&gt; USE_EXCEPTIONS = 'X'&lt;BR /&gt; NO_COMMIT = ' '&lt;BR /&gt;* IMPORTING&lt;BR /&gt;* REL_STATUS_NEW =&lt;BR /&gt;* REL_INDICATOR_NEW =&lt;BR /&gt;* RET_CODE =&lt;BR /&gt;* TABLES&lt;BR /&gt;* RETURN =&lt;BR /&gt; EXCEPTIONS&lt;BR /&gt; AUTHORITY_CHECK_FAIL = 1&lt;BR /&gt; DOCUMENT_NOT_FOUND = 2&lt;BR /&gt; ENQUEUE_FAIL = 3&lt;BR /&gt; PREREQUISITE_FAIL = 4&lt;BR /&gt; RELEASE_ALREADY_POSTED = 5&lt;BR /&gt; RESPONSIBILITY_FAIL = 6&lt;BR /&gt; OTHERS = 7.&lt;BR /&gt; IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;BR /&gt;* Implement suitable error handling here&lt;BR /&gt; ENDIF.&lt;BR /&gt; ENDIF.&lt;BR /&gt; ENDIF.&lt;BR /&gt; ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 30 Nov 2021 10:34:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trigger-bapi-while-creating-po/m-p/12549065#M2006705</guid>
      <dc:creator>shubham_pawar1</dc:creator>
      <dc:date>2021-11-30T10:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger BAPI while creating PO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trigger-bapi-while-creating-po/m-p/12549066#M2006706</link>
      <description>&lt;P&gt;Please edit your question, select your code and press the button [CODE], which makes the code appear colored/indented, it will be easier for people to look at it. Thank you! &lt;/P&gt;</description>
      <pubDate>Tue, 30 Nov 2021 14:49:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trigger-bapi-while-creating-po/m-p/12549066#M2006706</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2021-11-30T14:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger BAPI while creating PO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trigger-bapi-while-creating-po/m-p/12549067#M2006707</link>
      <description>&lt;P&gt;Isn't PO auto-release a standard feature done by customizing?&lt;/P&gt;</description>
      <pubDate>Tue, 30 Nov 2021 14:49:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trigger-bapi-while-creating-po/m-p/12549067#M2006707</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2021-11-30T14:49:57Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger BAPI while creating PO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trigger-bapi-while-creating-po/m-p/12549068#M2006708</link>
      <description>&lt;P&gt;this auto PO release is required only in case, if PO has outline agreement number&lt;/P&gt;</description>
      <pubDate>Wed, 01 Dec 2021 10:01:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trigger-bapi-while-creating-po/m-p/12549068#M2006708</guid>
      <dc:creator>shubham_pawar1</dc:creator>
      <dc:date>2021-12-01T10:01:22Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger BAPI while creating PO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trigger-bapi-while-creating-po/m-p/12549069#M2006709</link>
      <description>&lt;P&gt;Hello Shubham,&lt;/P&gt;&lt;P&gt;If you are sure with your analysis that this requirement cannot be realised using any of the Standard SPRO settings in place, then I would suggest you to use the 'Special Function' Medium type which we have available in Output Management setup(NACE).&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1994868-capture.png" /&gt;&lt;/P&gt;&lt;P&gt;Using this setup you can arrange a call to a Custom Program in such a way that it would be called once the PO is saved to Database and the call to this Custom Program would be done based on the Output Setup in place using NACE settings with Special function feature. Please analyse on this direction.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sijin&lt;/P&gt;</description>
      <pubDate>Wed, 01 Dec 2021 10:12:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trigger-bapi-while-creating-po/m-p/12549069#M2006709</guid>
      <dc:creator>Sijin_Chandran</dc:creator>
      <dc:date>2021-12-01T10:12:00Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger BAPI while creating PO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trigger-bapi-while-creating-po/m-p/12549070#M2006710</link>
      <description>&lt;P&gt;if there is no specific requirement, do not put release strategy. or create saprate document&lt;/P&gt;</description>
      <pubDate>Wed, 01 Dec 2021 12:24:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trigger-bapi-while-creating-po/m-p/12549070#M2006710</guid>
      <dc:creator>MohdRKhan</dc:creator>
      <dc:date>2021-12-01T12:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger BAPI while creating PO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trigger-bapi-while-creating-po/m-p/12549071#M2006711</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;Thank you all for your suggestion. &lt;/P&gt;&lt;P&gt;my issue resolved I was trying to use POST method instead of CLOSE.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Dec 2021 04:49:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trigger-bapi-while-creating-po/m-p/12549071#M2006711</guid>
      <dc:creator>shubham_pawar1</dc:creator>
      <dc:date>2021-12-02T04:49:30Z</dc:date>
    </item>
  </channel>
</rss>

