Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI_PO_CREATE1, PO Upload with item level Conditions

Former Member
0 Kudos
377

Dear All,

I have a requirement , where my client want to upload the Purchase Order data or create purchase order using BAPI_PO_CREATE1 through excel file, that includes item level conditions. can any one send the sample code along with sample excel data.

Thanks and Regards,

Mohammed Farooq

1 REPLY 1
Read only

0 Kudos
265

Hi Farooq,

Please create internal tables for Header and item and pass the required information for the tables.

CALL FUNCTION 'BAPI_PO_CREATE1'

   EXPORTING

     poheader          = f_header

     poheaderx         = f_headerx

     testrun           = 'X'

   TABLES

     return            = t_return

     poitem            = t_item

     poitemx           = t_itemx

     poaccount         = t_acc

     poaccountx        = t_accx

*      polimits          = t_polimits

*      pocontractlimits  = t_po_climits

     poservices        = t_po_serv

     posrvaccessvalues = t_po_serv_acc.


Regards,

Mohammed