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

Close

How To Fix VG140 - Partner number & for customer &, partner function & does not exist.


SAP Error Message - Details

  • Message type: E = Error

  • Message class: VG - EDI Messages in SD

  • Message number: 140

  • Message text: Partner number & for customer &, partner function & does not exist.

  • Show details Hide details
  • What causes this issue?

    An error arose while assigning a new key to a partner number in the
    <GL:EDI>EDI</>-IDoc <GL:IDoc>(intermediate document)</>; an entry with
    the specified key does not exist.

    How to fix this error?

    Supply the missing entry if necessary.
    INCLUDE 'NA_CUST_MAINTAIN_3' OBJECT DOKU ID TX LANGUAGE EN

    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message VG140 - Partner number & for customer &, partner function & does not exist. ?

    The SAP error message:

    VG140: Partner number & for customer &, partner function & does not exist.


    Cause:

    This error occurs when the system tries to find a partner (such as a contact person, sales representative, or other business partner) assigned to a customer with a specific partner function, but the partner number does not exist or is not maintained for that customer in the system.

    In other words, the system expects a partner with a certain partner function to be assigned to the customer, but it cannot find it in the customer master or the relevant partner determination procedure.


    When does it occur?

    • During sales document processing (e.g., sales order, delivery, billing) when the system checks for partner assignments.
    • When partner determination procedures are triggered and the required partner is missing.
    • When creating or processing documents that require partner data, but the partner data is incomplete or missing.

    Solution:

    1. Check Partner Assignment in Customer Master:

      • Go to transaction XD03 (Display Customer) or VD03 (Display Customer - Sales Area).
      • Enter the customer number.
      • Navigate to the Partners tab.
      • Verify if the partner number with the specified partner function exists.
      • If missing, add the required partner with the correct partner function.
    2. Check Partner Determination Procedure:

      • Verify the partner determination procedure assigned to the sales area and document type.
      • Use transaction VOPA or check the sales document type configuration.
      • Ensure that the partner function in question is correctly configured and mandatory partners are maintained.
    3. Maintain Partner in Sales Document:

      • When creating or editing the sales document, manually enter the missing partner if automatic determination fails.
    4. Check Customizing for Partner Functions:

      • Use transaction SPRO ? Sales and Distribution ? Basic Functions ? Partner Determination.
      • Verify partner functions and partner determination procedures.

    Related Information:

    • Partner Functions: Define roles of partners in sales documents (e.g., Sold-to party, Ship-to party, Bill-to party, Payer).
    • Customer Master Data: Partner assignments are maintained in the customer master under the sales area data.
    • Partner Determination Procedure: Controls which partners are required or optional in sales documents.
    • Transactions:
      • XD03 / VD03: Display Customer
      • XD02 / VD02: Change Customer
      • VA01 / VA02: Create/Change Sales Order
      • VOPA: Partner Determination Procedures

    Summary:

    The error VG140 indicates a missing partner number for a given customer and partner function. To resolve it, ensure that the partner is correctly maintained in the customer master or sales document, and verify the partner determination configuration.


    If you need help with specific steps or transaction codes, feel free to ask!

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