i am trying to add new service line item in existing Purchase Order via BAPI_PO_CHANGE the Service line item is added successfully but not able to update Cost Center and GL Account for service line 20 .. any solution for it ?
CALL FUNCTION 'BAPI_PO_CHANGE'
EXPORTING
purchaseorder = ebeln
TABLES
return = wt_return[]
poitem = it_poitem[]
poitemx = it_poitemx[]
poschedule = it_poschedule[]
poschedulex = it_poschedulex[]
poaccount = it_poaccount[]
poaccountx = it_poaccountx[]
poservices = it_poservices[]
posrvaccessvalues = it_posrvaccessvalues[].