How To Fix GS072 - Formula lines and 'All values' lines cannot contain any variables


GS072 - Overview

  • Message type: E = Error

  • Message class: GS - Sets

  • Message number: 072

  • Message text: Formula lines and 'All values' lines cannot contain any variables

  • Show details Hide details
  • What causes this issue?

    You have tried to insert a variable as a from-value or as a to-value in
    a line of a basic set. However, the line is a formula line or an
    'All values' line. You cannot insert a variable in these set lines.

    System Response

    The system rejects your attempt to insert the variable.

    How to fix this error?

    Choose a different line into which you can insert variable.
    If you want to insert the variable in a new line, you can create a new
    blank set line before the current line using the function "Insert line"
    and then insert the variable in this line.

    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message GS072 - Formula lines and 'All values' lines cannot contain any variables ?
    The SAP error message GS072 indicates that there is an issue with the formula lines or 'All values' lines in a report or query where variables are being used incorrectly. This error typically arises in the context of SAP reporting tools, such as SAP Query or SAP Report Painter/Writer, where certain types of calculations or aggregations are being defined.
    
    Cause: The error occurs because: Formula Lines: In SAP, formula lines are meant to perform calculations based on fixed values or predefined constants. If you attempt to use variables (like selection criteria or dynamic values) in these lines, the system will throw this error. 'All Values' Lines: Similar to formula lines, 'All values' lines are designed to aggregate or summarize data without the use of variables. Using variables in these lines is not permitted.
    Solution: To resolve the GS072 error, you can take the following steps: Review the Formula: Check the formula lines in your report or query.

    Already have an account? Login here!




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