Symptom
The billing-plan end date or settlement end date appears one day earlier than the service contract item end date.
For example:
-
Contract item end: 30 June 2027, 00:00:00
-
Billing-plan DATE_TO/END_DATE: 29 June 2027, 23:59:59
The billing-plan determination rule uses CONT011 or CONT012.
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
- Create a service contract line item with validity, for example: start 07/01/2026 and end 06/30/2027.
- Save and confirm the billing plan is generated with the same start and end dates.
- Perform a subsequent manual update on the contract (for example, change status or change billing frequency), then save.
- Reopen the billing plan and observe the last settlement end date shows 06/29/2027 (one day earlier than the item end date).
Cause
In SAP S/4HANA Cloud Public Edition, these are SAP-delivered date rules used to calculate billing-plan settlement boundaries:
| Rule | Purpose |
|---|---|
| CONT011 – Start Date (Billing Plan) | Uses the contract item’s start date and sets the settlement start time to 00:00:00. |
| CONT012 – End Date (Billing Plan) | Subtracts one second from the contract-end timestamp, takes the resulting date, and sets the settlement end time to 23:59:59. |
By design, when billing-plan determination rule CONT011 or CONT012 applies, the billing-plan end is set to one second before the contract-end timestamp. If the contract end is recorded at 00:00:00 on the intended last date, the billing-plan end evaluates to 23:59:59 of the previous day, appearing as one day earlier. In affected cases, a manual update recorded the item end timestamp at midnight, leading to the observed one-day shift.
Resolution
- Check the service contract item end date and time after saving. Ensure the intended last day is represented with an end timestamp at end-of-day (for example, 23:59:59).
- If the end time is midnight (00:00:00), update the contract/item end date-time to cover through the final day, save, and reopen the billing plan to confirm the final settlement end date aligns with the item end date.
- Review whether billing-plan determination rules CONT011/CONT012 apply and adjust processes to avoid setting end timestamps to midnight when full-day coverage is required.
- If direct editing of the settlement end is not possible, force billing plan re-determination (for example, temporarily change the billing frequency, save, then set it back), and verify the settlement end date.
- If the behavior recurs, capture the exact update steps and both date and time values before applying any workaround and provide them for analysis.
See Also
Keywords
Billing plan, service contract, end date mismatch, one day earlier, settlement period, settlement end date, contract end date, CONT011, CONT012, DATE_TO, END_DATE, CONTEND, CONTEND_OR, timestamp, midnight, end-of-day, 00:00:00, 23:59:59, time zone, recalculation, status change, SOAP API, one-second adjustment, billing-plan determination, S/4HANA Cloud Public Edition , KBA , CRM-S4-SRV-CTR-2CL , S4CRM: Service Contract (Public Cloud) , Problem
SAP Knowledge Base Article - Public