How To Fix FDT_EXPRESSIONS338 - Condition must be based either on an expression or a range, not both


SAP Error Message - Details

  • 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

  • Show details Hide details
  • What causes this issue?

    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.

    System Response

    The changed object cannot be saved.

    How to fix this error?

    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.

    Procedure for System Administrators

    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.


Smart SAP Assistant

  • What is the cause and solution for SAP error message 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:

    1. Use Only Expressions: If you want to use an expression, ensure that the condition is solely based on that expression without any range specifications.

    2. Use Only Ranges: If you want to define a range, ensure that the condition is based solely on that range without any additional expressions.

    3. Check Syntax: Ensure that the syntax of your condition is correct and that you are not inadvertently combining both elements.

    4. Review Documentation: Consult the SAP documentation or help resources for the specific application you are using to understand how to properly define conditions.

    5. Testing: After making the necessary adjustments, test the condition to ensure that it works as expected without triggering the error.

    Related Information:

    • SAP Fiori Apps Library: Check the specific Fiori app documentation for guidelines on defining expressions and conditions.
    • SAP Community: Engage with the SAP Community forums to see if others have encountered similar issues and how they resolved them.
    • SAP Notes: Look for any relevant SAP Notes that might address this specific error or provide additional context.

    By following these steps, you should be able to resolve the FDT_EXPRESSIONS338 error and successfully define your conditions in SAP.

    • Do you have any question about this error?


      Upgrade now to chat with this error.


Instant HelpGet instant SAP help. Start your 7-day free trial now.


Related SAP Error Messages

Click the links below to see the following related messages:

Click on this link to search all SAP messages.


Rating
ERPlingo simplifies finding the accurate answers to SAP message errors. I now use every week. A must have tool for anyone working with SAP! Highly recommended!
Rate 1
Kent Bettisworth
Executive SAP Consultant