Do you have any question about this error?
Message type: E = Error
Message class: ON - Tools in area Object Modeler / Object Editor
Message number: 166
Message text: Only choose 'passed to' and/or 'contains'
You have chosen the function Redundancy free display. However this
function is only meaningful when the relationship 'passes to' and/or
'contains' is marked with a cross in the dialog field. In all other
cases choosing the redundancy free display is not meaningful.
The system issues an error message and will not allow you to continue with this transaction until the error is resolved.
If necessary first choose the relationship 'passes to' and/or 'contain'
and call up the function again.
Error message extract from SAP system. Copyright SAP SE.
ON166
- Only choose 'passed to' and/or 'contains' ?The SAP error message ON166 typically occurs in the context of using the selection criteria in reports or transactions where you are trying to filter data. This error indicates that the system expects you to use only the 'passed to' and/or 'contains' options for the selection criteria you are working with.
Cause:
The error arises when you attempt to use selection criteria that are not compatible with the expected input for the specific field or report. For example, if you are trying to filter data using options like 'equals', 'not equals', or other operators that are not allowed in that context, the system will throw this error.
Solution:
To resolve the ON166 error, follow these steps:
Review Selection Criteria: Check the selection criteria you are using in the report or transaction. Ensure that you are only using the 'passed to' and/or 'contains' options.
Adjust Filters: If you have used other operators, remove them and replace them with the allowed options. For example:
- Instead of using 'equals', use 'contains' if you are looking for a substring match.
- Use 'passed to' if you are trying to pass a value from one field to another.
Consult Documentation: If you are unsure about the allowed selection criteria for a specific report or transaction, refer to the SAP documentation or help files related to that specific module or transaction.
Test Changes: After making the necessary adjustments, run the report or transaction again to see if the error persists.
Related Information:
By following these steps, you should be able to resolve the ON166 error and successfully filter your data in SAP.
Get instant SAP help. Start your 7-day free trial now.
ON165
No corresponding object types exist
What causes this issue? You have chosen the function Select on/off->Classes or Select on/off->Interfaces. However no classes or interfaces exis...
ON164
Choose at most one object type
What causes this issue? You have executed the function Print or Expand nodes. At the moment, however, several object types are selected. Therefore th...
ON167
Local object types will now also be displayed
What causes this issue? You have switched (explicitly or implicitly) from the display with the application component hierarchy to the display without...
ON168
Local object types are not displayed
What causes this issue? You have switched (explicitly or implicitly) from the display without the application components hierarchy to the display wit...
Click on this link to search all SAP messages.