Hi .
I am facing this error .
could anyone tel solution
"Order cannot be completed; account assignment not maintained"
While TECO a order using BAPI_ALM_ORDER_MAINTAIN.
The input i am giving to BAPI is
it_methods-refnumber = 1.
it_methods-objecttype = 'HEADER'.
it_methods-method = 'TECHNICALCOMPLETE'.
it_methods-objectkey = ORDERID.
append it_methods.
it_methods-method = 'SAVE'.
it_methods-objecttype = ' '.
append it_methods.
it_header-orderid = ORDERID.
it_header-mn_wk_ct = WORKCENTER.
it_header-plan = plant.
append it_header.
CALL FUNCTION 'BAPI_ALM_ORDER_MAINTAIN'
TABLES
IT_METHODS = IT_METHODS
IT_HEADER = IT_HEADER
RETURN = RETURN
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = 'X'
.