Hi Raman,
This may be because while cancelling the document in VF11, if the current date is not given then by default the system takes the invoice date and tries to post the acctg. document to that period.
Solution: edit the cancelled document in vf02,
->goto ->header ->header->Change the billing date to current and save.
Hope this works.
Thanks
MK