Application Development 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: 

BAPI_PO_CREATE1 EXTENSIOIN

Former Member
0 Kudos

Hi:

I'm trying to create a purchase order via BAPI_PO_CREATE1 with EXTENSIONIN informed. I need to fill customer specific fields, but these fields appears empty.

data begin of x_extensionin occurs 0.

include structure bapiparex.

data end of x_extensionin.

move 'BAPI_TE_MEPOACCOUNTING' to x_extensionin-structure.

move '......' to x_extensionin-valuepart1.

append x_extensionin.

Thanks in advance.

Abel

3 REPLIES 3

Former Member
0 Kudos

From the code you have posted, I presume that you are populating hte Extension In internal table to be passed to the BAPI.

But To the best of my knowldge, SAP does not handle the extension in parameters automatically. Infact you will have two user exits in the BAPI to use extension in internal table then use it the way you want it.

Former Member
0 Kudos

Whatever the structure that you need to pass to the EXTENSIONIN structure, it must have the fields - normally these are the fields which are added through CI structures. For example at PO item level, CI_EKPODB and at header level CI_EKKODB. For accounting< I think, you can use CI_COBL ...

Regards

Anjaiah

Former Member
0 Kudos

Hi:

I had filled CI_COBL structure with zz.. customer fields, I had included it in EKKN standard table (.INCLUDE CI_COBL) also. This customer fields had filled property when the purchase order is created on-line mode. I also had include this CI_COBL in MEPOACCOUNTING, MEPOACCOUNTINGX, BAPI_TE_MEPOACCOUNTING and BAPI_TE_MEPOACCOUNTINGX structures and I had filled the EXTENSIONIN table with:

w_extensionin-structure = BAPI_TE_MEPOACCOUNTING

w_extensionin-valuepart1 = the values of zz.. customer fields

but when I process the creation of pruchase order from Bapi_po_craete1, teh customers fields dosen't filled.

Please, someone knows how to create a purchase order with new account customer fields ?. I need a example.

Thanks very much in advance