Hi Hareesh and Amit ,
Thanks.
It works .My question to you now is that If you see the sample the record T is the end of record indicator (sort of total ) which will be having no value against batch number and amount .
Now with the above mentioned mapping I had to give values against batch number and amount in the last record also which should be not there Also last record T should not be counted in total number of records (for sample record Total number of records should be 10 but this is coming 11).If I am not giving any value it will throw an error.
Please let me know what should be done .