AccountingRegisterRecordSet.<Accounting register name>.Write

Syntax:

Write(<Replace>)

Parameters:

<Replace> (optional)

Type: Boolean.
Defines existing record replacement mode in accordance with current filter settings. If True, existing records will be deleted before saving. False - records will be appended to those already existing in the information base.
Default value: True.

Description:

Writes accounting register recordset to the database. Depending on the parameter passed, records could be added or replaced.

Availability:

Server, thick client, external connection.

Note:

When called with <Replace> parameter set to False, the recordset is cleared after writing to the information base.
The platform revision, verifying whether records match settings of accounts, is not performed when accounting register records are generated programmatically. The developer must provide setting proper data. In particular, it concerns extra dimensions values, dimension values and resources concerned with accounting flags of account.

Example:

EmptyProceduralDocument = Document.EmptyRef();
Set = AccountingRegisters.SelfSupporting.CreateRecordSet();
Set.Filter.Recorder.Set(Recorder);
Set.Read();
// process the set
// ...
Set.Write(True);


    

1C:Enterprise Developer's Community