Hi Swapna,
There must be some custom code in exit or enhancement which is problamatic in this case.
As you are cancelling the billing document, the cancellation document is being generated.
Can you give the details of ST22 pointing where it is showing the dump.
Regards,
Sumit