Improved detection of reason codes while importing sales documents. Improved error messages on import validation.