Message type: E = Error
Message class:  SEPMH_DG - EPM HANA DG - Messages 
Message number: 021
Message text: Factorial value &1! can not be calculated because '&1' is smaller than 0
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 SEPMH_DG021 indicates that there is an attempt to calculate the factorial of a negative number, which is mathematically undefined. The factorial function is only defined for non-negative integers (0, 1, 2, ...). When the input value is less than 0, the system cannot compute the factorial, leading to this error.
Cause: The error occurs when a negative value is passed to a function or calculation that requires a non-negative integer for factorial computation. This could be due to incorrect data input, a misconfiguration in the system, or a bug in the program logic that leads to negative values being processed.
Solution: Check Input Values: Review the input values being used in the calculation. Ensure that they are non-negative integers. If the input is derived from user input or another system, validate that the data is correct before processing. Data Validation: Implement validation checks in the code to ensure that any value passed
 Get instant SAP help. Sign up for our Free Essentials Plan.
Get instant SAP help. Sign up for our Free Essentials Plan. 
SEPMH_DG020 Plausibility violation in time processing: &1 - Entity: &2
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
SEPMH_DG019 Factorial value of ('&1'!) is too big -> leads to arithmethic overflow
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
SEPMH_DG022 Poisson distribution (Lambda='&1') exceeds ABAP decimal value range
What causes this issue?  The EPM HANA DG attribute rule 'Poisson distribution' cannot be calculated based on the given Lambda value ( expect...
SEPMH_DG023 Lambda value for Poisson distribution has not yet been specified
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.