Stop googling SAP errors. Use our Free Essentials plan instead - no credit card needed. Start Now

Close

How To Fix GR684 - Set variable & contains a formula


SAP Error Message - Details

  • Message type: E = Error

  • Message class: GR - Report Writer

  • Message number: 684

  • Message text: Set variable & contains a formula

  • Show details Hide details
  • What causes this issue?

    You cannot define formulas in sets that are used to replace a set
    variable.

    System Response

    The system issues an error message and will not allow you to continue with this transaction until the error is resolved.

    How to fix this error?

    Enter a set that does not contain a formula to replace the set
    variables.

    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message GR684 - Set variable & contains a formula ?

    The SAP error message GR684 indicates that there is an issue with a variable in a report or query that is expected to contain a single value but instead contains a formula. This typically occurs in the context of SAP BW (Business Warehouse) or SAP BI (Business Intelligence) when working with queries or reports that involve variables.

    Cause:

    The error arises when:

    • A variable is defined in a way that it is expected to hold a single value, but it is instead set up to contain a formula or a complex expression.
    • The variable might be incorrectly configured in the query definition or in the data source settings.
    • The variable is being used in a context where a simple value is required, but the underlying logic or formula is more complex.

    Solution:

    To resolve the GR684 error, you can take the following steps:

    1. Check Variable Definition:

      • Go to the variable definition in the query or report.
      • Ensure that the variable is defined to return a single value rather than a formula or complex expression.
    2. Modify the Query:

      • If the variable is being used in a query, check the context in which it is being applied.
      • Ensure that the variable is being used in a way that is compatible with the expected input (i.e., it should return a single value).
    3. Review Data Source:

      • Check the underlying data source for the query to ensure that it is set up correctly and that the variable is pulling the correct data.
    4. Test the Variable:

      • Test the variable independently to see if it returns the expected single value.
      • If it returns a formula or multiple values, adjust the logic accordingly.
    5. Consult Documentation:

      • Refer to SAP documentation or help resources for specific guidance on variable configuration and usage in queries.
    6. Seek Help from SAP Support:

      • If the issue persists, consider reaching out to SAP support or consulting with a technical expert who specializes in SAP BW/BI.

    Related Information:

    • SAP BW/BI Documentation: Review the official SAP documentation for detailed information on variable handling and query design.
    • SAP Community: Engage with the SAP Community forums where other users may have encountered similar issues and can provide insights or solutions.
    • Training Resources: Consider training or tutorials on SAP BW/BI to better understand variable management and query design principles.

    By following these steps, you should be able to identify the root cause of the GR684 error and implement a solution to resolve it.

    • Do you have any question about this error?


      Upgrade now to chat with this error.


Instant HelpGet instant SAP help. Sign up for our Free Essentials Plan.


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