Solution : https://service.sap.com/sap/support/notes/1338580 (SAP Service marketplace login required)
Summary : 
      When using transaction MR8M to cancel invoice documents in SAP, the reporting date from the original invoice is not retained. This occurs due to a programming error following the implementation of Note 1023317 or the importation of a relevant Support Package. SAP has addressed the issue in Support Packages for releases 4.7 through 6.04. An advanced correction can also be applied by implementing the specific correction instructions provided.
Key words : 
program error occurs, cancel invoice document, relevant support package, support package, cancel documents, original document, transaction mr8m, reporting date, terms vatdate, implementing note 1023317
Related Notes : 
       
| 1232484 | How to use the VAT due date, tax reporting date VATDATE |