DocumentObject.<Document name>.Posting

Syntax:

Posting(<Cancel>, <PostingMode>)

Parameters:

<Cancel>

Type: Boolean.
Document posting flag. If this parameter is set to True in the body of the handler, the document will not be posted.
Default value: False.

<PostingMode>

Type: DocumentPostingMode.
A current posting mode is passed to this parameter.

Description:

Occurs when you post a document. The main purpose of this event handler procedure is to generate document register records. Event is executed during write transaction.

Note:

If automatic register record deletion is turned on in configuration for this document type, then all document register records will be deleted before the event occurs.

See also:

DocumentObject, method Write

    

1C:Enterprise Developer's Community