If this is related to a mistake, you must cancel the postings and recreate the postings in the right company. Anyway, you are not supposed to transfert such transactions from one company to another. If you have volume, you can use mass cancelation transaction. To recreate, you may use lsmw. Best,