Message type: E = Error
Message class:  ICC_CN - Nachrichten zum Druck vornumerierter SD-Belege 
Message number: 866
Message text: External document number changed in accounting document
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.
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.
The SAP error message ICC_CN866, which states "External document number changed in accounting document," typically occurs in the context of financial accounting and document management within SAP. This error indicates that there is a discrepancy between the external document number that was originally entered and the one that is currently being processed in the accounting document.
Cause: Manual Changes: The external document number may have been manually changed after the document was created, leading to a mismatch. Data Migration Issues: If data was migrated from another system, inconsistencies in document numbers can arise. Integration Issues: If there are integrations with other systems (like third-party applications), the external document number may not be synchronized correctly. Configuration Settings: Incorrect configuration in the document management settings or accounting settings can lead to this error.
Solution: Check Document Number: Verify the external document number in the accounting document and ensure it matches the original entry. Re-enter Document: If the document number has
 Get instant SAP help. Sign up for our Free Essentials Plan.
Get instant SAP help. Sign up for our Free Essentials Plan. 
ICC_CN865 Accounting document generated
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
ICC_CN864 Invoice printed
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
ICC_CN867 Document has already been printed in this run
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
ICC_CN868 Message type & is chosen
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
Click on this link to search all SAP messages.