Do you have any question about this error?
Message type: E = Error
Message class: GR - Report Writer
Message number: 681
Message text: Set variables cannot be used in a column
You cannot use a set variable in a column set.
This is due to the fact that the column structure must be fixed before
the data is selected (unlike the row structure). However, you can use
column sets that contain value variables.
The system issues an error message and will not allow you to continue with this transaction until the error is resolved.
Change your column set so that it does not contain any set varaibles.
Error message extract from SAP system. Copyright SAP SE.
GR681
- Set variables cannot be used in a column ?The SAP error message GR681 ("Set variables cannot be used in a column") typically occurs in the context of SAP BW (Business Warehouse) or SAP HANA when you are trying to use a set variable in a context where it is not allowed, such as in a column of a query or report.
Cause:
- Set Variables Misuse: Set variables are designed to be used in filters or as part of the query definition but not directly in the columns of a report or query.
- Query Design: The query might be incorrectly designed, where a set variable is being referenced in a way that is not supported by the query engine.
- Incompatibility: The version of SAP BW or HANA you are using may have specific limitations regarding the use of set variables.
Solution:
- Review Query Design: Check the design of your query. Ensure that set variables are only used in the appropriate sections (like filters or conditions) and not directly in the columns.
- Use Regular Variables: If you need to display dynamic values in a column, consider using regular variables instead of set variables.
- Modify the Query: If you need to achieve a specific result, consider modifying the query logic to avoid the use of set variables in columns.
- Consult Documentation: Refer to the SAP BW or HANA documentation for guidelines on the use of set variables and their limitations.
- Testing: After making changes, test the query to ensure that it runs without errors and returns the expected results.
Related Information:
By following these steps, you should be able to resolve the GR681 error and successfully design your query without encountering this issue.
Get instant SAP help. Start your 7-day free trial now.
GR680
Cell & in set & (column &) is not defined
INCLUDE RG-RW-NA_GR679 ID TX The system issues an error message and will not allow you to continue with this transaction until the error is resolved....
GR679
Cell & in set & (row &) is not defined
INCLUDE RG-RW-NA_GR679 ID TX The system issues an error message and will not allow you to continue with this transaction until the error is resolved....
GR682
The period field cannot be defined as a set variable
What causes this issue? You cannot use a set variable for the period field.System Response The system issues an error message and will not allow you...
GR683
The data field cannot be defined as a set variable
What causes this issue? You cannot use a set variable as a key figure set.System Response The system issues an error message and will not allow you ...
Click on this link to search all SAP messages.