How To Fix OK005 - You cannot select using both sales document and project definition


SAP Error Message - Details

  • Message type: E = Error

  • Message class: OK - Logical database PS

  • Message number: 005

  • Message text: You cannot select using both sales document and project definition

  • Show details Hide details
  • What causes this issue?

    You cannot use "project definition" and "sales document" at the same
    time as selection criteria.

    System Response

    INCLUDE 'NA_ALLG_NOVERARBEITUNG' OBJECT DOKU ID TX

    How to fix this error?

    Change your selection criteria.

    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message OK005 - You cannot select using both sales document and project definition ?

    The SAP error message OK005, which states "You cannot select using both sales document and project definition," typically occurs in the context of project management and sales order processing within SAP. This error arises when there is an attempt to use both a sales document and a project definition in a transaction where only one of them is allowed.

    Cause:

    The error is caused by the system's restriction on selecting both a sales document (like a sales order) and a project definition (like a WBS element) simultaneously in certain transactions. This is often seen in transactions related to cost planning, billing, or settlement where the system expects a clear context (either a sales document or a project definition) but not both.

    Solution:

    To resolve this error, you should:

    1. Identify the Context: Determine whether you need to work with a sales document or a project definition for your specific transaction.

    2. Adjust Your Selection:

      • If you are trying to process a sales order, ensure that you are not also trying to reference a project definition in the same transaction.
      • Conversely, if you are working with a project definition, make sure that you are not including a sales document in your selection criteria.
    3. Review Transaction Settings: Check the settings or parameters of the transaction you are using. Some transactions may have specific configurations that allow for either sales documents or project definitions but not both.

    4. Consult Documentation: Refer to SAP documentation or help resources for the specific transaction you are using to understand the expected input parameters.

    5. Seek Help from SAP Support: If you are unable to resolve the issue, consider reaching out to your SAP support team or consulting SAP Notes for any known issues or patches related to this error.

    Related Information:

    • Transaction Codes: The error can occur in various transaction codes related to project management and sales order processing, such as CJ20N (Project Builder), VA01 (Create Sales Order), or others.
    • SAP Modules: This error is often encountered in modules like SAP Project System (PS) and Sales and Distribution (SD).
    • User Roles: Ensure that the user roles and authorizations are correctly set up, as sometimes restrictions can be related to user permissions.

    By following these steps, you should be able to resolve the OK005 error and proceed with your SAP transactions effectively.

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