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_CHANGE : custom fields updation in PO

Former Member
0 Kudos

Hi ,

We have two custom fields in PO table (EKPO) we need to update this fields.

We tried to use BAPI_PO_CHANGE -> EXTENSIONIN parameter but its not working giving following error -

Giving error error while tranfering data to structure CI_EKPODB.

When we pass teh data to structure EXTENSIONIN we pass 'BAPI_TE_MEPOITEM' in structure name.

in value part we tried to pass value workarea+469(6) ... where workarea is of type 'BAPI_TE_MEPOITEM and our custom fields is at position 469 of 'BAPI_TE_MEPOITEM.

PLease provide us some working example to update the custom fields... we tried a lot with the examples given in forum but it seems that none of them is working correctly.

2 REPLIES 2

nabheetscn
Active Contributor
0 Kudos

Hi,

We are also updating some customfield in POduring ME21n orME22n. We using badi me_process_po_custoryou can use MM060E..

Dont remeber the exact name you can search it on SDN.Along with BAPI for customfield updation you will be required to either implement this badi where u will read extension data and fill ur fields in EKPO .

This enhancement will be called after you call BAPI.

Nippy

0 Kudos

Hi,

Thanks for your reply,

Can u please provide us a sample code... we tried using this BADI but not able to update the fields...