2010 Feb 01 2:49 PM
Hello,
I would like to fill the field our reference in the purchase order at the same time I create it. The fuba Bapi_po_create work well in creating, but the field is not filled.
Maybe I need to fill some more fields, but I don´t know which one. Anyone who knows, how I can fill this field.
In table it is EKKO-UNSEZ.
Coding
DATA: x_po_header TYPE bapiekkoc,
x_po_header_add type BAPIEKKOA.
x_po_header_add-OUR_REF = 'TEST'.
CALL FUNCTION 'BAPI_PO_CREATE'
EXPORTING
po_header = x_po_header
PO_HEADER_ADD_DATA = x_po_header_add
IMPORTING
purchaseorder = x_po_number
TABLES
po_items = x_po_items
po_item_schedules = x_po_items_schedules
return = x_bapireturn.
Thanks Nicole
Edited by: Nicole Lorenz on Feb 1, 2010 9:50 AM
2010 Feb 01 3:09 PM
You cannot fill the "Our reference" field (EKKO-UNSEZ) using BAPI , BAPI_PO_CREATE
chk this link
/people/arminda.jack/blog/2009/08/03/do-you-know-what-you-can-or-canacutet-do-with-the-bapiacutes-for-purchase-orders
2010 Feb 01 3:09 PM
You cannot fill the "Our reference" field (EKKO-UNSEZ) using BAPI , BAPI_PO_CREATE
chk this link
/people/arminda.jack/blog/2009/08/03/do-you-know-what-you-can-or-canacutet-do-with-the-bapiacutes-for-purchase-orders
2010 Feb 01 5:41 PM
Hi, using that bapi u can't fill up that field, but once the doc has been created, u can update the table EKKO and fill that field without problems.
Regards