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

Close

How To Fix AJ858 - Update error table ERCH: Document &1 for prim.inst document &2 for S.ins


SAP Error Message - Details

  • Message type: E = Error

  • Message class: AJ - Billing program

  • Message number: 858

  • Message text: Update error table ERCH: Document &1 for prim.inst document &2 for S.ins

  • Show details Hide details
  • What causes this issue?

    During the update of document &V1& in the primary installation, the
    dependent document &V2& in the secondary installation also had to be
    updated in the field MAINDOCNO with document number &V1&.
    An error occurred during this process.

    System Response

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

    How to fix this error?

    INCLUDE ISU_SAP OBJECT DOKU ID TX

    Procedure for System Administrators


    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message AJ858 - Update error table ERCH: Document &1 for prim.inst document &2 for S.ins ?

    The SAP error message AJ858 indicates an update error related to the table ERCH (which is used for handling document-related data in the SAP system). The message specifically refers to a problem with a document identified by &1 for a primary instance document &2 for a specific service instance (S.ins).

    Cause:

    The error can be caused by several factors, including:

    1. Data Inconsistency: There may be inconsistencies in the data being processed, such as missing or incorrect entries in the relevant tables.
    2. Locking Issues: The document may be locked by another process, preventing the update from being completed.
    3. Configuration Issues: There may be configuration problems in the system that affect how documents are processed.
    4. Authorization Issues: The user or process attempting to perform the update may not have the necessary authorizations.
    5. Technical Errors: There could be underlying technical issues, such as database connectivity problems or issues with the application server.

    Solution:

    To resolve the AJ858 error, you can take the following steps:

    1. Check the Error Log: Review the application log (transaction SLG1) for more detailed information about the error. This can provide insights into what specifically went wrong.
    2. Verify Data Consistency: Check the relevant tables for inconsistencies. Ensure that the document and primary instance document exist and are correctly linked.
    3. Check Locks: Use transaction SM12 to check for any locks on the document. If a lock is found, determine if it can be released or if the process holding the lock can be completed.
    4. Review Authorizations: Ensure that the user or process has the necessary authorizations to perform the update.
    5. Consult Configuration: Review the configuration settings related to document processing to ensure they are set up correctly.
    6. Reprocess the Document: If the issue is transient, you may be able to reprocess the document after addressing any underlying issues.
    7. Contact SAP Support: If the problem persists, consider reaching out to SAP support for further assistance, especially if it appears to be a technical issue.

    Related Information:

    • Transaction Codes: Familiarize yourself with relevant transaction codes such as SLG1 (Application Log), SM12 (Lock Entries), and SE11 (Data Dictionary) to investigate the issue further.
    • Documentation: Review SAP documentation related to the specific module you are working with, as the error may be specific to certain functionalities or configurations.
    • Community Forums: Check SAP community forums or other online resources for similar issues and solutions shared by other users.

    By following these steps, you should be able to identify the root cause of the AJ858 error and implement a suitable solution.

    • 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