Hello Ali,
If company code validation is active for a company code, then
all account assignment objects in one posting row must be assigned to
the same company code.
Please, check this validation defined in the system.
The error message explains that there are values to be
posted that belong to order in company codes that are different
from the company code of the output material.
Unfortunately the Material Ledger functionality cannot cover this
special scenary of cross-company-code postings.
ML only knows the currencies and valuation type of the sender
company code (the one of the material) but not the ones of the receiving
company code, although in both company codes the currencies are the
same.
In order to go on with the period end closing, you can run
'Post closing' step without setting the indicator
'Set CO.Account Assignment'.
By this there will be revaluated only the consumption account, but
not the order. In CO the revaluation would then be posted to
the default account assigned to this cost element.
The note 624377 also explains the situation and can be used as
an alternative.
I hope the explanation helps to clarify the problem.
Best regards,
Jason