Message SAP /CBAD/CONTRACT_MOD059 - Contract cannot end after reference document

/CBAD/CONTRACT_MOD059 : Contract cannot end after reference document