Solution : https://service.sap.com/sap/support/notes/555989 (SAP Service marketplace login required)
Key words :
sales order, system resets, delivery status, reference order, processing status, terms bapi_salesorer_createfromdat2, document flow, ref_doc refdoc_cat, vbtyp_v reason, program error
Related Notes :
447817 | Delivery status/billing status is reset |
406302 | Reference document status is reset |