Hi Mahesh - Incase if it is a pass through interface - then you can make use of the below adapter module.
Dynamic file name for pass-through scenario - Process Integration - SCN Wiki
Dynamic file name in a File to File pass through scenario - Code Gallery - SCN Wiki
You just need to create two channel and in the receiver determination route the messages accordingly.