Hello Akshat,
You can create the Credit or Debit memo request from the wrong Billing document then you can generate the Credit & Debit memo from that request. For this you need to take care of the Billing to Sales doc copying control. For more information please take a look in the below link; Also there are plenty of resources available over the internet also try to read those too to have a better idea.
Thanks,
Suman$