SAP Message /CCIS/ODTR024 - Document duplicates document & to amount of & &. Document was not posted

Diagnosis
The document has a duplicate by fields "Reference document number" and"Assignment number". It may occur in case of repeated run of theprogram with the same parameters.

System Response
The document was not posted.