DocumentWriteMode.UndoPosting

Description:

In this case, changes made to the document are saved, and then the document posting is canceled. Both actions are done in a single transaction.

    

1C:Enterprise Developer's Community