Bank to Bank Intercompany Transaction

HI All

I have 2 legal entities & shared COA & I want to pass Bank to Bank intercompany transaction once I create a transaction, system gave me the below error message…

“The Legal entity of the Bank differs from the legal entity that you are logged in to. Select a different offset legal entity or log into a different legal entity”


Once I pass the intercompany transaction against ledger account system post the transaction without any warring or error message

Please advise how can I make these bank to bank transaction.