You find that system allows to release the contract when the contract end date is one day earlier than the contract start date.
You expect the system to prevent this customer contract from being released and show error 'End date and time must be after start date and time'.
SAP Business ByDesign
Reproducing the Issue
- Go to the Sales Orders wrok ceter.
- Click New Contract from Commen Tasks view.
- In the new contract, maintain the account and necessary data, then enter Contract Start Date as for example 2023.03.20 and Contract End Date as 2023.03.19.
- Click Release. System successfully releases the contract.
However, you expect that the contract should not be released as the contract end date is earlier than the contract start date.
When saving a new contract, system stores the beginning of the input Contract Start Date, which is 2023.03.20T00:00:00Z. When this time reaches, the contract starts.
While for contract end date field, system stores the end of the input date, which is also 2023-03-20T00:00:00Z. When this time reaches, this contract becomes expired.
Since the dates are the same, so error "End date and time must be after start date and time" is not triggerred.
This is currently the designed system behavior.
Customer Contract; Contract Start Date; Contract End Date; End date and time must be after start date and time. , KBA , AP-SLO-SO , Sales Order , SRD-CRM-ORD , Orders & Contracts , Problem