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

Close

How To Fix WS659 - Deviating partner schema for SDoc type &1 and SDoc type &2 for cancell.


SAP Error Message - Details

  • Message type: E = Error

  • Message class: WS - Supplier Billing Document

  • Message number: 659

  • Message text: Deviating partner schema for SDoc type &1 and SDoc type &2 for cancell.

  • Show details Hide details
  • What causes this issue?

    The settlement document type &V1& and the settlement document type &V2&
    for cancellation have different partner schemas.

    System Response

    This can lead to you being unable to cancel documents for the settlement
    document type &V1& because the existence of the same partner roles in
    the partner schemas of the involved settlement document types is checked
    at runtime.

    How to fix this error?

    Edit the partner schemas of settlement document types so that the same
    partner roles are defined in both schemas.

    Procedure for System Administrators

    The system issues an error message and will not allow you to continue with this transaction until the error is resolved.


    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message WS659 - Deviating partner schema for SDoc type &1 and SDoc type &2 for cancell. ?

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


    SAP Error Message:

    WS659 - Deviating partner schema for SDoc type &1 and SDoc type &2 for cancell.


    Meaning / Cause:

    This error occurs during the cancellation (reversal) of a document in SAP when the system detects that the partner schema assigned to the original document (SDoc type &1) differs from the partner schema assigned to the cancellation document (SDoc type &2).

    • SDoc type refers to the IDoc (Intermediate Document) type or the document type used in ALE/IDoc processing.
    • The partner schema defines the partner profiles and the communication settings for the partner involved in the document exchange.
    • When cancelling a document, SAP expects the partner schema for the cancellation document to be the same as for the original document.
    • If the partner schema differs, SAP raises this error to prevent inconsistencies in document processing and partner communication.

    When does it occur?

    • During cancellation or reversal of an outbound or inbound IDoc/document.
    • When the partner profile or partner schema has been changed or incorrectly maintained between the original and cancellation documents.
    • When different partner schemas are assigned to the original and cancellation document types in the partner profiles or in the distribution model.

    Solution:

    1. Check Partner Profiles:

      • Go to transaction WE20 (Partner Profiles).
      • Verify the partner profiles for the involved partner.
      • Ensure that the partner schema assigned to the original document type (&1) and the cancellation document type (&2) are consistent or correctly maintained.
    2. Check Distribution Model:

      • Use transaction BD64 to check the distribution model.
      • Verify that the message types and partner schemas for the original and cancellation documents are correctly assigned.
    3. Check Schema Assignments:

      • Use transaction WE41 (Outbound Processing) or WE42 (Inbound Processing) to check the function modules and schemas assigned to the message types.
      • Ensure that the same or compatible schemas are assigned for the original and cancellation message types.
    4. Adjust Partner Schema:

      • If the partner schema for the cancellation document is different, adjust it to match the original document's partner schema.
      • Alternatively, if different schemas are required, ensure that the system is configured to handle this scenario properly (which is uncommon).
    5. Reprocess the Cancellation:

      • After correcting the partner schema assignments, try to cancel the document again.

    Additional Information:

    • This error is related to ALE/IDoc processing and partner profile configuration.
    • Partner schemas control how data is mapped and processed between SAP systems or between SAP and external systems.
    • Consistency in partner schema ensures that the cancellation document is processed in the same way as the original document.
    • If you recently changed partner profiles or distribution models, this error might appear due to inconsistent configuration.
    • Always test changes in a development or quality system before applying them in production.

    Summary:

    Aspect Details
    Error Message WS659 - Deviating partner schema for SDoc type &1 and SDoc type &2 for cancellation
    Cause Partner schema for cancellation document differs from original document's partner schema
    Solution Align partner schemas in partner profiles (WE20), distribution model (BD64), and schemas (WE41/WE42)
    Related Transactions WE20, BD64, WE41, WE42

    If you need further assistance, please provide details about the document types, partner profiles, or system scenario.

    • 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