SAP Knowledge Base Article - Preview

2831450 - Validation when creating coupon - End date must be after start date


When creating a coupon from the backoffice, it is sometimes possible to get a validation error "End date must be after start date", even though the start date is before the end date.


On the affected server, running the below beanshell script in the hAC (Console > Scripting Languages, select beashell) will print a value of true in the Result tab.

import bsh.Capabilities;



This is reproducible in any Commerce version.


  • hybris
  • bsh
  • startdate
  • enddate
  • time
  • promo
  • promotion
  • discount 
, KBA , CEC-COM-CPS , SAP Commerce , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.