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:

    1. 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.

    2. 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.
    3. 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.

    4. Test Changes: After making the necessary adjustments, run the report or transaction again to see if the error persists.

    Related Information:

    • SAP Notes: Check SAP Notes for any specific updates or patches related to the error message ON166. Sometimes, there may be known issues or fixes provided by SAP.
    • User Forums: Consider visiting SAP community forums or user groups where similar issues may have been discussed. Other users may have encountered the same error and can provide insights or solutions.
    • Transaction Codes: If you are working with specific transaction codes, ensure you are familiar with their functionalities and limitations regarding selection criteria.

    By following these steps, you should be able to resolve the ON166 error and successfully filter your data in SAP.

    • Do you have any question about this error?


      Upgrade now to chat with this error.


Instant HelpGet instant SAP help. Start your 7-day free trial now.


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