Posting termination to ensure data consistency - SAP Note 1776835

Message type: E = Error

Message class: M7 - Inventory Management and Physical Inventory

Message number: 685

Message text: Posting termination to ensure data consistency - SAP Note 1776835



What causes this issue?

The material document posting was terminated to maintain data
consistency. An expected COMMIT WORK or ROLLBACK WORK statement was tr
iggered which is in turn caught by this error.
Data has already been preselected for the UPDATE at the time of the
COMMIT or ROLLBACK. If a COMMIT WORK or ROLLBACK is initiated in an
enhancement, these are then written or rolled back into the database. If
another error occurs during subsequent processing after a COMMIT, a
complete ROLLBACK can no longer be performed, since the data up until
the point of the COMMIT has already been written to the database.
Otherwise, if no further errors occur following a ROLLBACK statement,
the part that is subsequently entered into the posting is also written
to the database.
This can result in an inconsistent status, for example a material
document without accounting document or an accounting document without a
material document, which can only be repaired with considerable cost and
effort.
Inconsistencies that were caused by an incorrect implementation must be
corrected by SAP in accordance with SAP Note 83020, subject to charge.

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



System Response



How to fix this error?

Remove the critical sections of code from your customer enhancements,
such as MB_DOCUMENT_BADI. For more information about this error and how
to avoid it, see SAP Note 1776835.


Procedure for System Administrators


Error message extract from SAP system. Copyright SAP SE.