Hi Ravi,
I have already explained why this script will not work. Please stop wasting time and configure the system properly with required ACCTYPE etc. Then use standard functions to perform intco elimination. You will never achieve acceptable results using scripts...
Vadim