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

Close

How To Fix WS658 - 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: 658

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

  • Show details Hide details
  • What causes this issue?

    Settlement document types &V1& and &V2& for document &V3& have different
    partner schemas. This can mean that when cancelling document &V3&,
    partner data is not copied completely and the cancellation document
    deviates from the original document.

    System Response

    The document &V3& cannot be cancelled.

    How to fix this error?

    Adjust the partner schema of settlement document type &V2& for
    cancellation to match the partner schema of settlement document type
    &V1&, or use a different settlement document type for cancellation for
    this transaction.

    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 WS658 - Deviating partner schema for SDoc type &1 and SDoc type &2 for cancell. ?

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


    SAP Error Message:

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


    Meaning / Cause:

    This error occurs in the context of IDoc processing, specifically when dealing with cancellation IDocs (SDoc = Status Document type). The system has detected that the partner schema (partner profile or partner function configuration) for the original IDoc type (&1) and the cancellation IDoc type (&2) do not match or deviate.

    In other words, when you try to cancel an IDoc of type &1 by sending a cancellation IDoc of type &2, the system expects the partner schema (partner profiles, message types, partner functions, or partner agreements) to be consistent or aligned. If they differ, the system raises this error to prevent inconsistent or incorrect cancellation processing.


    When does it occur?

    • During the processing of cancellation IDocs.
    • When the partner profiles or partner schemas for the original and cancellation IDoc types are not aligned.
    • Typically in ALE/EDI scenarios where partner profiles are maintained separately for different message types or IDoc types.

    Solution:

    1. Check Partner Profiles:

      • Go to transaction WE20 (Partner Profiles).
      • Verify the partner profiles for the involved partners.
      • Ensure that the partner profiles for the original IDoc type (&1) and the cancellation IDoc type (&2) are consistent.
      • Both should have the same partner schema settings, including message types, process codes, and partner functions.
    2. Align Partner Schemas:

      • If the partner profiles differ, adjust them so that the cancellation IDoc type uses the same or compatible partner schema as the original IDoc type.
      • This may involve copying the partner profile entries from the original IDoc type to the cancellation IDoc type or creating a consistent profile.
    3. Check Message Type and Process Code:

      • Ensure that the message types and process codes assigned to the partner profiles for both IDoc types are correctly maintained and consistent.
    4. Reprocess the IDoc:

      • After correcting the partner profiles, reprocess the cancellation IDoc.

    Additional Information:

    • Transaction WE20 is the main place to maintain partner profiles.
    • The error is related to the partner schema consistency required for cancellation IDocs.
    • This check helps avoid sending cancellation IDocs to partners who are not configured to handle them properly.
    • Sometimes, this error can also occur if the cancellation IDoc type is not maintained at all in the partner profile.
    • If you are unsure about the correct partner schema, consult your ALE/EDI team or check the documentation for the specific IDoc types involved.

    Summary:

    Aspect Details
    Error Message WS658 - Deviating partner schema for SDoc type &1 and SDoc type &2 for cancell.
    Cause Partner profiles for original and cancellation IDoc types differ or are inconsistent.
    Solution Align partner profiles in WE20 for both IDoc types; ensure consistent message types and process codes.
    Transaction WE20 (Partner Profiles)
    Context ALE/EDI IDoc cancellation processing

    If you need further help, please provide the specific IDoc types (&1 and &2) and partner details, and I can assist with more tailored advice.

    • 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