• In order to resolve the above mentioned problem I have just made COUNTER=0 at the two places where it is COUNTER=1.

    That resolved the issue of data not coming for whole of the table.

    Thanks,

    Ketan