2016 Jan 25 6:08 PM
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
2016 Jan 25 7:21 PM
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