SAP Knowledge Base Article - Public

3653649 - Error "Document &1 cannot be saved" when posting supplier invoice

Symptom

When trying to post a supplier invoice which is linked to a sales order of number &1, the posting is not possible due to error: "Document &1 cannot be Saved".

Environment

SAP S/4HANA Cloud Public Edition

Cause

On CE2508, enhanced checks have been implemented during the posting of a supplier invoice to ensure the billing status is correctly set in the sales order. If the relevant sales order cannot be updated (for example, due to being locked), the posting of the supplier invoice will be rejected.

This enhancement ensures that when a supplier invoice is posted, the corresponding sales order is also updated to prevent potential data inconsistencies. If there's an implementation of the BAdI CHECK_BEFORE_SAVE, it can prevent the sales order from being updated. As a result of the new integrity check, the system stops the supplier invoice from being saved. 

Resolution

The following workaround can be considered for adoption:

Adjust the custom logic: The most sustainable solution is to modify the BAdI implementation so it allows the sales order update to proceed during this process (for example, by excluding the user that posts the supplier invoice).

See Also

Third-Party Order Processing and Supplier Invoice | SAP Help Portal

Keywords

SLS_LORD033, sales order, purchase order, supplier invoice, invoice posting,  CHECK_BEFORE_SAVE, custom logic, custom enhancement, third-party order, BD3, BDK, BDN, 4R6, F3893, F0859 , KBA , SD-SLS-SO-TP-2CL , Third-party order processing (Public Cloud) , Problem

Product

SAP S/4HANA Cloud Public Edition 2508