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

Field Our_ref in BAPI_PO_CREATE

Former Member
0 Likes
813

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
634

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

2 REPLIES 2
Read only

Former Member
0 Likes
635

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

Read only

Former Member
0 Likes
634

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