Do you have any question about this error?
Message type: E = Error
Message class: FDT_EXPRESSIONS - Formula & Derivation Tool: Expressions
Message number: 338
Message text: Condition must be based either on an expression or a range, not both
You have modified the condition for a rule or an expression. A condition
can be based either on a value range that has been entered directly or
on an expression. However, the modification you have made would lead to
a mixed condition based on both a range and an expression at the same
time. This is not allowed.
This situation can normally only occur if an application attempts to
programmatically modify a condition without taking care of the
restrictions as defined in the BRFplus API.
The changed object cannot be saved.
Check the application code used to change the object. Make sure that in
the application flow control, the type of an already defined condition
is determined first and then changed accordingly.
The system issues an error message and will not allow you to continue with this transaction until the error is resolved.
Error message extract from SAP system. Copyright SAP SE.
FDT_EXPRESSIONS338
- Condition must be based either on an expression or a range, not both ?The SAP error message FDT_EXPRESSIONS338 indicates that there is an issue with the way a condition is defined in a formula or expression within the SAP system. Specifically, the error states that a condition must be based either on an expression or a range, but not both simultaneously. This typically occurs in the context of using the SAP Fiori or SAP S/4HANA applications where expressions and conditions are defined for data processing or reporting.
Cause:
The error arises when a condition is incorrectly defined in a way that combines both an expression and a range. For example, if you are trying to set a condition that checks if a value falls within a certain range while also applying an additional expression, the system cannot process this request as it expects a clear definition of either one or the other.
Solution:
To resolve this error, you should review the condition that is causing the issue and modify it to ensure that it adheres to the following guidelines:
Use Only Expressions: If you want to use an expression, ensure that the condition is solely based on that expression without any range specifications.
Use Only Ranges: If you want to define a range, ensure that the condition is based solely on that range without any additional expressions.
Check Syntax: Ensure that the syntax of your condition is correct and that you are not inadvertently combining both elements.
Review Documentation: Consult the SAP documentation or help resources for the specific application you are using to understand how to properly define conditions.
Testing: After making the necessary adjustments, test the condition to ensure that it works as expected without triggering the error.
Related Information:
By following these steps, you should be able to resolve the FDT_EXPRESSIONS338 error and successfully define your conditions in SAP.
Get instant SAP help. Start your 7-day free trial now.
FDT_EXPRESSIONS337
No operand supplied (position &1)
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
FDT_EXPRESSIONS336
Supplied range table is initial (position &1)
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
FDT_EXPRESSIONS339
Condition must be based either on an expression or a range, not both (&1)
What causes this issue? You have modified the condition for a an expression (changed element: &V1&). A condition can be based either on a val...
FDT_EXPRESSIONS340
Only one text dependency allowed, but &1 delivered (&2)
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.