<?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_PO_CREATE1 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create1/m-p/5404168#M1241228</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; What is the error message you are getting ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Mar 2009 05:25:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-03-24T05:25:10Z</dc:date>
    <item>
      <title>BAPI_PO_CREATE1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create1/m-p/5404165#M1241225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the bapi BAPI_PO_CREATE1 with a set of data and TESTRUN = X, it does not give me any error messages.  When i run the bapi again with the same data and TESATRUN = ' ', it gives me error messages.  This is done in the same program.  Does anyone know why this is happening?  Does it have anything to do with global variables?  Does anyone know how to clear global variables of a specific function group?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vitz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2009 05:10:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create1/m-p/5404165#M1241225</guid>
      <dc:creator>former_member239066</dc:creator>
      <dc:date>2009-03-24T05:10:15Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_PO_CREATE1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create1/m-p/5404166#M1241226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;TESTRUN is Test Indicator..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This parameter is a test switch.&lt;/P&gt;&lt;P&gt;If you activate the switch, the system does not save the document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Space = Document should be saved&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  X   = Document should not be saved&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it is better to use....BAPI_PO_CREATE if you really want that item to save in the database..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2009 05:17:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create1/m-p/5404166#M1241226</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-24T05:17:08Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_PO_CREATE1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create1/m-p/5404167#M1241227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This does not solve my problem since i have to do the test run first and then create the PO.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2009 05:22:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create1/m-p/5404167#M1241227</guid>
      <dc:creator>former_member239066</dc:creator>
      <dc:date>2009-03-24T05:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_PO_CREATE1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create1/m-p/5404168#M1241228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; What is the error message you are getting ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2009 05:25:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create1/m-p/5404168#M1241228</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-24T05:25:10Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_PO_CREATE1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create1/m-p/5404169#M1241229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZPURCHASEORDER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;header like BAPIMEPOHEADER,&lt;/P&gt;&lt;P&gt;headerx like BAPIMEPOHEADERX,&lt;/P&gt;&lt;P&gt;it_item like standard table of BAPIMEPOITEM,&lt;/P&gt;&lt;P&gt;it_itemx like standard table of BAPIMEPOITEMX,&lt;/P&gt;&lt;P&gt;return like standard table of BAPIRET2,&lt;/P&gt;&lt;P&gt;wa_item like BAPIMEPOITEM,&lt;/P&gt;&lt;P&gt;wa_itemx like BAPIMEPOITEMX,&lt;/P&gt;&lt;P&gt;p_int type i,&lt;/P&gt;&lt;P&gt;p_matnr like mara-matnr,&lt;/P&gt;&lt;P&gt;p_pono like ekko-ebeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF BAPIRETURN OCCURS 0.&lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE BAPIRET2.&lt;/P&gt;&lt;P&gt;DATA: END OF BAPIRETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;constants:&lt;/P&gt;&lt;P&gt;c_x type c value 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*if sy-uname  'ABAP'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*if program = 'ZPURCHASEORDER' .&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*raise cancelled.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*endif.&lt;/P&gt;&lt;P&gt;*endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;header-comp_code = '3000'.&lt;/P&gt;&lt;P&gt;header-doc_type = 'DP25'.&lt;/P&gt;&lt;P&gt;header-creat_date = sy-datum.&lt;/P&gt;&lt;P&gt;header-item_intvl = '10'.&lt;/P&gt;&lt;P&gt;header-vendor = 'ARAMI-00'.&lt;/P&gt;&lt;P&gt;header-langu = sy-langu.&lt;/P&gt;&lt;P&gt;header-pmnttrms = '0001'.&lt;/P&gt;&lt;P&gt;header-purch_org = '3000'.&lt;/P&gt;&lt;P&gt;header-pur_group = '010'.&lt;/P&gt;&lt;P&gt;header-currency = 'USD'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;headerx-comp_code = c_x.&lt;/P&gt;&lt;P&gt;headerx-doc_type = c_x.&lt;/P&gt;&lt;P&gt;headerx-creat_date = c_x.&lt;/P&gt;&lt;P&gt;headerx-item_intvl = c_x .&lt;/P&gt;&lt;P&gt;headerx-vendor = c_x.&lt;/P&gt;&lt;P&gt;headerx-langu = c_x.&lt;/P&gt;&lt;P&gt;headerx-pmnttrms = c_x .&lt;/P&gt;&lt;P&gt;headerx-purch_org = c_x.&lt;/P&gt;&lt;P&gt;headerx-pur_group = c_x.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*LOOP AT it_final2 INTO wa_final2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p_int = p_int + 10.&lt;/P&gt;&lt;P&gt;wa_item-po_item = p_int.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p_matnr = 'T-SRM01'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CONVERSION_EXIT_MATN1_INPUT'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;input = p_matnr&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;output = p_matnr&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;length_error = 1&lt;/P&gt;&lt;P&gt;OTHERS = 2.&lt;/P&gt;&lt;P&gt;*IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;*MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;*WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;*ENDIF.&lt;/P&gt;&lt;P&gt;wa_item-material = p_matnr.&lt;/P&gt;&lt;P&gt;wa_item-plant = '3200'.&lt;/P&gt;&lt;P&gt;wa_item-quantity = 100.&lt;/P&gt;&lt;P&gt;wa_item-conf_ctrl = 'Z01'.&lt;/P&gt;&lt;P&gt;wa_item-ACKN_REQD = 'X'.&lt;/P&gt;&lt;P&gt;WA_ITEM-ERS = ''.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND wa_item TO it_item.&lt;/P&gt;&lt;P&gt;wa_itemx-po_item = p_int.&lt;/P&gt;&lt;P&gt;wa_itemx-material = c_x.&lt;/P&gt;&lt;P&gt;wa_itemx-plant = c_x .&lt;/P&gt;&lt;P&gt;wa_itemx-stge_loc = c_x .&lt;/P&gt;&lt;P&gt;wa_itemx-quantity = c_x .&lt;/P&gt;&lt;P&gt;wa_itemx-item_cat = c_x .&lt;/P&gt;&lt;P&gt;wa_itemx-acctasscat = c_x .&lt;/P&gt;&lt;P&gt;wa_itemx-conf_ctrl = 'X'.&lt;/P&gt;&lt;P&gt;wa_itemx-ACKN_REQD = 'X'.&lt;/P&gt;&lt;P&gt;WA_ITEMX-ERS = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND wa_itemx TO it_itemx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_PO_CREATE1'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;poheader = header&lt;/P&gt;&lt;P&gt;poheaderx = headerx&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;exppurchaseorder = p_pono&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;return = return&lt;/P&gt;&lt;P&gt;poitem = it_item&lt;/P&gt;&lt;P&gt;poitemx = it_itemx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'&lt;/P&gt;&lt;P&gt;           EXPORTING&lt;/P&gt;&lt;P&gt;                WAIT   = 'X'&lt;/P&gt;&lt;P&gt;           IMPORTING&lt;/P&gt;&lt;P&gt;                RETURN = BAPIRETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write:/ p_pono.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2009 05:31:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create1/m-p/5404169#M1241229</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-24T05:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_PO_CREATE1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create1/m-p/5404170#M1241230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is not the issue.  I NEED to do the test run first.  the problem is that in the same program i am calling the bapi twice.  first with test run and second without tes run.  when i call it with test run there are no error messages with a particular set of data.  when i call the bapi without test run with the same set of data, it returns me errors messages. which should not be the case since the test run did not return any error messages.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2009 05:43:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create1/m-p/5404170#M1241230</guid>
      <dc:creator>former_member239066</dc:creator>
      <dc:date>2009-03-24T05:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_PO_CREATE1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create1/m-p/5404171#M1241231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the error message is not the issue.  the issue is why am i getting the error message when calling the bapi with testrun eq space.  i do not get any error message when calling the bapi the first time with testrun eq x with the same set of data&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2009 05:45:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create1/m-p/5404171#M1241231</guid>
      <dc:creator>former_member239066</dc:creator>
      <dc:date>2009-03-24T05:45:24Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_PO_CREATE1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create1/m-p/5404172#M1241232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What error message are you getting?&lt;/P&gt;&lt;P&gt;The finance related messages are not captured in test run.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kritesh Shah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2009 05:48:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create1/m-p/5404172#M1241232</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-24T05:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_PO_CREATE1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create1/m-p/5404173#M1241233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hii&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when you run without testrun.it will take by default value as space.that means your data will be saved.so it will check data for updation and it will have some error in data so it will display error messages.what error messages you are getting?try to solve that error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you will not get error when you will run with testrun = 'X'.because it will not save data,so no updation is done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;twinkal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2009 05:48:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create1/m-p/5404173#M1241233</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-24T05:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_PO_CREATE1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create1/m-p/5404174#M1241234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i already know the use of testrun and that is why i am using it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2009 05:55:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create1/m-p/5404174#M1241234</guid>
      <dc:creator>former_member239066</dc:creator>
      <dc:date>2009-03-24T05:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_PO_CREATE1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create1/m-p/5404175#M1241235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;BAPI_PO_CREATE if you really want then  item to save in the database..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2009 07:27:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create1/m-p/5404175#M1241235</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-24T07:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_PO_CREATE1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create1/m-p/5404176#M1241236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vitish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you already know the use of Test Run and want to test the BAPI..check my post for the same in wiki... I have used the same BAPI in this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/scn/wiki?path=/display/abap/function" target="test_blank"&gt;https://www.sdn.sap.com/irj/scn/wiki?path=/display/abap/function&lt;/A&gt;&lt;EM&gt;Module&lt;/EM&gt;Test+Sequence&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sachin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2009 09:02:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create1/m-p/5404176#M1241236</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-24T09:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_PO_CREATE1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create1/m-p/5404177#M1241237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Sep 2010 13:59:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create1/m-p/5404177#M1241237</guid>
      <dc:creator>UdayS</dc:creator>
      <dc:date>2010-09-08T13:59:46Z</dc:date>
    </item>
  </channel>
</rss>

