<?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: Problem in BAPI_PO_CREATE1 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bapi-po-create1/m-p/1645578#M287286</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;go through this l ink, i hope this ll help you to solve your problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_srm30/helpdata/en/0a/baf73a93ad9179e10000000a114084/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_srm30/helpdata/en/0a/baf73a93ad9179e10000000a114084/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Nov 2006 05:53:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-20T05:53:30Z</dc:date>
    <item>
      <title>Problem in BAPI_PO_CREATE1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bapi-po-create1/m-p/1645573#M287281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is to create an ARIBA PO thru BAPI_PO_CREATE1. IN order to successfully process an ARIBA PO, i need to check the gl account and cost center used. If the first two letter of the cost center is equal to 'BS', then I need to issue out an error message. I have successfully done the checking of the cost center via user exit ZXMEWU10. But my problem is, how do I prevent the creation of PO if there is an error message?  It seems that the function module does not recognized that there is an error encountered and PO is still created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2006 05:32:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bapi-po-create1/m-p/1645573#M287281</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-20T05:32:47Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in BAPI_PO_CREATE1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bapi-po-create1/m-p/1645574#M287282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check for RETURN in tables parameters.Internal table which gets filled when error occurs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not return[] is initial.&lt;/P&gt;&lt;P&gt; BAPI Commit.&lt;/P&gt;&lt;P&gt;Else.&lt;/P&gt;&lt;P&gt; Exit.&lt;/P&gt;&lt;P&gt;Endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Mohan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***Reward if useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2006 05:36:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bapi-po-create1/m-p/1645574#M287282</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-20T05:36:48Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in BAPI_PO_CREATE1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bapi-po-create1/m-p/1645575#M287283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jim , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAPI will take care of Validations which comes while creation of PO, In ur case make use the point where SAP will calls this User Exit.BAPI will return message thru RETURN tables And u have to call COmmit work based on the return tables&lt;/P&gt;&lt;P&gt;like tghis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;lt;b&amp;gt;    return                    = l_return.--&amp;gt; this is BAPI table entry
if l_return[] is initial.
    call function 'BAPI_TRANSACTION_COMMIT'
*     EXPORTING
*       WAIT          =
*     IMPORTING
*       RETURN        =
      .
endif.&amp;lt;/b&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2006 05:41:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bapi-po-create1/m-p/1645575#M287283</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-20T05:41:48Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in BAPI_PO_CREATE1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bapi-po-create1/m-p/1645576#M287284</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 checked the return table w_bapireturn[] and the error that I raised is not included there. Please advice on how to proceed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2006 05:47:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bapi-po-create1/m-p/1645576#M287284</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-20T05:47:35Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in BAPI_PO_CREATE1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bapi-po-create1/m-p/1645577#M287285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just check for the Internal table , if it is not initial and has some values  then there is some error with the parameters you passed into that Function Module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The return parameter is getting filled by SAP system itself, we cannot pass the error message into that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mohan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2006 05:51:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bapi-po-create1/m-p/1645577#M287285</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-20T05:51:08Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in BAPI_PO_CREATE1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bapi-po-create1/m-p/1645578#M287286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;go through this l ink, i hope this ll help you to solve your problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_srm30/helpdata/en/0a/baf73a93ad9179e10000000a114084/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_srm30/helpdata/en/0a/baf73a93ad9179e10000000a114084/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2006 05:53:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bapi-po-create1/m-p/1645578#M287286</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-20T05:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in BAPI_PO_CREATE1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bapi-po-create1/m-p/1645579#M287287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Jim&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With the info you have provided, i guess the code in the user-exit is not enabled or reached while processing via BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please place a break-point in user-exit and check to re-confirm on the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If itz not reached, i guess you have to either change to a different exit or do the same validation while using the BAPI. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Eswar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2006 05:57:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bapi-po-create1/m-p/1645579#M287287</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-20T05:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in BAPI_PO_CREATE1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bapi-po-create1/m-p/1645580#M287288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mohan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The return internal table not only contains the error messages, but also some status or warning messages encountered by the system. What i can;t figure out is that i raised an error message but it was not recognized by the system. &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2006 06:01:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bapi-po-create1/m-p/1645580#M287288</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-20T06:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in BAPI_PO_CREATE1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bapi-po-create1/m-p/1645581#M287289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here, I would suggest the same which I said earlier as follows,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not return[] is initial.&lt;/P&gt;&lt;P&gt;BAPI Commit.&lt;/P&gt;&lt;P&gt;Else.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;here you put your error message ****&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;Endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mohan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2006 06:32:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bapi-po-create1/m-p/1645581#M287289</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-20T06:32:01Z</dc:date>
    </item>
  </channel>
</rss>

