Hi Mahes,
I think I missed that part, which wasn't pretty clear to me. Anyways it's not a still big deal.
Scenario 1 - Get the IDOC's and split them in WERKS (multi mapping) and loop it back to PI (Multi-mapping with Dynamic Configuration - SOAP loopback approach Thanks to Eng Swee Yeoh )
Scenario 2 - Set the File/Folder name in the dynamic config and proceed with the approach I have given in the above thread.
Thanks!