Message type: E = Error
Message class:  SAPLWOSZ - Common function modules for Store WB 
Message number: 021
Message text: You cannot enter a date in the past
Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of messages in the SAP system have a message text, however this is frequently insufficient to comprehend or resolve the problem.
To make things easier, more detailed information is frequently added to describe the issue, how to fix it, and the necessary steps or configuration modifications.
Unfortunately, there isn't any extra information in this error notice.
First, use our AnswerBot below to get a possible cause and solution (requires a premium subscription).
Also, review the in-depth Common Questions & Answers listed below; you could discover a solution there or be able to connect with others who have faced similar challenges.
You can also try searching the SAP support portal (support.sap.com) but you need a special user ID to access it. It is possible that an SAP support note exists that provides additional details about the mistake or even steps for fixing it.
The SAP error message SAPLWOSZ021 ("You cannot enter a date in the past") typically occurs when a user attempts to enter a date that is earlier than the current date in a transaction or process that requires a future date. This is common in various SAP modules, such as logistics, finance, or project management, where date validation is enforced to ensure data integrity and proper planning.
Cause:
Date Entry: The user is trying to enter a date that is before the current system date.
System Settings: Certain configurations in the system may restrict the entry of past dates for specific fields or transactions.
Business Logic: The business process may inherently require future dates to ensure that planning and scheduling are done correctly.
Solution:
Check the Date: Ensure that the date you are trying to enter is indeed a future date. If you need to enter a past date for any reason, check if the business process Get instant SAP help. Sign up for our Free Essentials Plan.
Get instant SAP help. Sign up for our Free Essentials Plan. 
SAPLWOSZ020 The date you entered is not valid
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
SAPLWOSZ012 Printer successfully assigned to PC
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
SAPLWOSZ030 EAN &1 does not exist
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
SAPLWOSZ031 EAN &1 is not unique
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
Click on this link to search all SAP messages.