Stop googling SAP errors. Use our Free Essentials plan instead - no credit card needed. Start Now

Close

How To Fix WS887 - Enter a company code for EKORG &


SAP Error Message - Details

  • Message type: E = Error

  • Message class: WS - Supplier Billing Document

  • Message number: 887

  • Message text: Enter a company code for EKORG &

  • Show details Hide details


  • Self-Explanatory Message

    Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of messages in the SAP system have a message text, however this is frequently insufficient to comprehend or resolve the problem.

    To make things easier, more detailed information is frequently added to describe the issue, how to fix it, and the necessary steps or configuration modifications.

    Unfortunately, there isn't any extra information in this error notice.



    What else can you do?

    First, use our AnswerBot below to get a possible cause and solution (requires a premium subscription).

    Also, review the in-depth Common Questions & Answers listed below; you could discover a solution there or be able to connect with others who have faced similar challenges.

    You can also try searching the SAP support portal (support.sap.com) but you need a special user ID to access it. It is possible that an SAP support note exists that provides additional details about the mistake or even steps for fixing it.


Smart SAP Assistant

  • What is the cause and solution for SAP error message WS887 - Enter a company code for EKORG & ?

    Certainly! Here's a detailed explanation for the SAP error message:


    SAP Error Message:

    WS887 Enter a company code for EKORG &


    Cause:

    This error occurs when a company code is not entered or is missing for the purchasing organization (EKORG) during a transaction or configuration step in SAP. The system requires a valid company code to be assigned to the purchasing organization to proceed, as purchasing data is company code-specific.

    In SAP, the purchasing organization (EKORG) must be linked to at least one company code (BUKRS). If this assignment is missing or the company code field is left blank during document creation or master data maintenance, the system throws this error.


    When does it occur?

    • When creating or changing purchasing documents (e.g., purchase orders, contracts) without specifying a company code.
    • During configuration or master data setup where the purchasing organization is not assigned to any company code.
    • When the system tries to determine the company code for a purchasing organization but finds none assigned.

    Solution:

    1. Assign Company Code to Purchasing Organization:

      • Go to SPRO ? Enterprise Structure ? Assignment ? Purchasing ? Assign Purchasing Organization to Company Code.
      • Assign the relevant company code(s) to the purchasing organization (EKORG).
    2. Enter Company Code in Transaction:

      • When creating or editing purchasing documents, ensure the company code field is filled correctly.
    3. Check Master Data:

      • Verify that the purchasing organization is properly maintained and assigned in the system.
    4. User Training:

      • Ensure users understand the need to enter the company code when required.

    Related Information:

    • Transaction Codes:

      • SPRO – Customizing Implementation Guide
      • ME21N – Create Purchase Order
      • OMX1 – Assign Purchasing Organization to Company Code (may vary by SAP version)
    • Tables:

      • T024 – Purchasing Organizations
      • T001 – Company Codes
      • T024E – Purchasing Organization to Company Code assignment
    • Notes:

      • The purchasing organization can be assigned to multiple company codes (cross-company code purchasing).
      • If cross-company code purchasing is not configured, the purchasing organization must be assigned to exactly one company code.

    Summary:

    The error WS887 indicates that the system requires a company code to be entered or assigned for the purchasing organization (EKORG). To resolve it, assign the purchasing organization to the appropriate company code in the system configuration and ensure the company code is entered during document processing.


    If you need help with the exact steps or transaction codes in your SAP version, please let me know!

    • Do you have any question about this error?


      Upgrade now to chat with this error.


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
The AI Support Assistant is great. It provides comprehensive assistance even on the most difficult issues. I highly recommend this service.
Rate 1
John Jordan
SAP Consultant & Author