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.
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.