<?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: How to create P.O using excel sheet through BAPI in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-p-o-using-excel-sheet-through-bapi/m-p/5934838#M1333563</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Krishna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any example code  for that??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have uploaded the excel to internal tale but trying to do the BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly let me know any example code you have.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Rohan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Jul 2009 16:04:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-07-14T16:04:30Z</dc:date>
    <item>
      <title>How to create P.O using excel sheet through BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-p-o-using-excel-sheet-through-bapi/m-p/5934830#M1333555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to upload and create P.O from an excel file saved locally on the system.&lt;/P&gt;&lt;P&gt;I want to use BAPI for it.&lt;/P&gt;&lt;P&gt;Can anyone help me in the procedure?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Jul 2009 17:58:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-p-o-using-excel-sheet-through-bapi/m-p/5934830#M1333555</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-12T17:58:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to create P.O using excel sheet through BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-p-o-using-excel-sheet-through-bapi/m-p/5934831#M1333556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you be more specific where is your problem? I guess it's not with the BAPI?&lt;/P&gt;&lt;P&gt;Is it that you don't know how to read the excel sheet from ABAP?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Jul 2009 20:16:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-p-o-using-excel-sheet-through-bapi/m-p/5934831#M1333556</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2009-07-12T20:16:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to create P.O using excel sheet through BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-p-o-using-excel-sheet-through-bapi/m-p/5934832#M1333557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi rohan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try  the followin FM which ever best suits ur need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAPI_PO_CREATE     or     BAPI_CREATE_FROMDATA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if futher help required do ask.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Jul 2009 20:21:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-p-o-using-excel-sheet-through-bapi/m-p/5934832#M1333557</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-12T20:21:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to create P.O using excel sheet through BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-p-o-using-excel-sheet-through-bapi/m-p/5934833#M1333558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;example:-&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data:
header like BAPIMEPOHEADER,
headerx like BAPIMEPOHEADERX,
it_item like standard table of BAPIMEPOITEM,
it_itemx like standard table of BAPIMEPOITEMX,
return like standard table of BAPIRET2,
wa_item like BAPIMEPOITEM,
wa_itemx like BAPIMEPOITEMX,
p_int type i,
p_matnr like mara-matnr,
p_pono like ekko-ebeln.

DATA: BEGIN OF BAPIRETURN OCCURS 0.
        INCLUDE STRUCTURE BAPIRET2.
DATA: END OF BAPIRETURN.
constants:
c_x type c value 'X'.
header-comp_code = '3000'.
header-doc_type = 'DP25'.
header-creat_date = sy-datum.
header-item_intvl = '10'.
header-vendor = 'ARAMI-00'.
header-langu = sy-langu.
header-pmnttrms = '0001'.
header-purch_org = '3000'.
header-pur_group = '010'.
header-currency = 'USD'.

headerx-comp_code = c_x.
headerx-doc_type = c_x.
headerx-creat_date = c_x.
headerx-item_intvl = c_x .
headerx-vendor = c_x.
headerx-langu = c_x.
headerx-pmnttrms = c_x .
headerx-purch_org = c_x.
headerx-pur_group = c_x.

p_int = p_int + 10.
wa_item-po_item = p_int.
p_matnr = 'T-SRM01'.
CALL FUNCTION 'CONVERSION_EXIT_MATN1_INPUT'
EXPORTING
input = p_matnr
IMPORTING
output = p_matnr
EXCEPTIONS
length_error = 1
OTHERS = 2.

wa_item-material = p_matnr.
wa_item-plant = '3200'.
wa_item-quantity = 100.
wa_item-conf_ctrl = 'Z01'.
wa_item-ACKN_REQD = 'X'.
WA_ITEM-ERS = ''.

APPEND wa_item TO it_item.
wa_itemx-po_item = p_int.
wa_itemx-material = c_x.
wa_itemx-plant = c_x .
wa_itemx-stge_loc = c_x .
wa_itemx-quantity = c_x .
wa_itemx-item_cat = c_x .
wa_itemx-acctasscat = c_x .
wa_itemx-conf_ctrl = 'X'.
wa_itemx-ACKN_REQD = 'X'.
WA_ITEMX-ERS = 'X'.
APPEND wa_itemx TO it_itemx.

CALL FUNCTION 'BAPI_PO_CREATE1'
EXPORTING
poheader = header
poheaderx = headerx
IMPORTING
exppurchaseorder = p_pono
TABLES
return = return
poitem = it_item
poitemx = it_itemx.

 CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
           EXPORTING
                WAIT   = 'X'
           IMPORTING
                RETURN = BAPIRETURN.
write:/ p_pono.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2009 09:36:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-p-o-using-excel-sheet-through-bapi/m-p/5934833#M1333558</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-13T09:36:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to create P.O using excel sheet through BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-p-o-using-excel-sheet-through-bapi/m-p/5934834#M1333559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear  krupa jani ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am uploading the details of a P.O from an Excel,do need to pass all these values?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2009 17:43:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-p-o-using-excel-sheet-through-bapi/m-p/5934834#M1333559</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-13T17:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to create P.O using excel sheet through BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-p-o-using-excel-sheet-through-bapi/m-p/5934835#M1333560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Venkat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the example given below by Krupa and seeing some other examples.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to use other BAPI examples but there was no ouptput shown as i am not able to pass the values and return the purchase order number..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you help me by telling the process??/&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2009 15:28:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-p-o-using-excel-sheet-through-bapi/m-p/5934835#M1333560</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-14T15:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to create P.O using excel sheet through BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-p-o-using-excel-sheet-through-bapi/m-p/5934836#M1333561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear krupa,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i run your example by making some changes according to requirement here,does not return me any purchase order number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2009 15:32:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-p-o-using-excel-sheet-through-bapi/m-p/5934836#M1333561</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-14T15:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to create P.O using excel sheet through BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-p-o-using-excel-sheet-through-bapi/m-p/5934837#M1333562</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;First fetch the data from XL into your internal table,&lt;/P&gt;&lt;P&gt;pass necessay parameters into 'BAPI_PO_CREATE1'&lt;/P&gt;&lt;P&gt;and commit BAPI on 'Success'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Krishna..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2009 15:56:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-p-o-using-excel-sheet-through-bapi/m-p/5934837#M1333562</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-14T15:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to create P.O using excel sheet through BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-p-o-using-excel-sheet-through-bapi/m-p/5934838#M1333563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Krishna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any example code  for that??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have uploaded the excel to internal tale but trying to do the BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly let me know any example code you have.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Rohan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2009 16:04:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-p-o-using-excel-sheet-through-bapi/m-p/5934838#M1333563</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-14T16:04:30Z</dc:date>
    </item>
  </channel>
</rss>

