How To Fix ON166 - Only choose 'passed to' and/or 'contains'


SAP Error Message - Details

  • 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'

  • Show details Hide details
  • What causes this issue?

    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.

    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?

    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.


Smart SAP Assistant

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

    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's SAP support assistant is amazing. Saves me countless hours trying to solve complex SAP issues myself. It's a real game changer!
Rate 1
Thomas Michael
SAP Consultant, Author & Speaker