In this particular scenario the client wants to transfer amount between the subsidiaries(same currency and different currency)

When these entries passed, intercompany clearing a/c showed balance.
Solution: In the intercompany clearing a/c record, change the general rate to historical and put check mark for revalue open period option.After running the period close task the balance become null.