Hello,
check this: IMG -> Financial Supply Chain Management -> Treasury and Risk Management -> Transaction Manager -> General Settings -> Accounting -> Organization -> Define Accounting Codes (tr. SM30 -> TRGC_TR_ACC_CODE)
have you defined accounting codes for all your company codes which you use in intercompany operations?