> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# CheckIn Method of the DocumentDefinitions Object

This method disables editing mode for the specified Document Definition and its invoice settings and saves all applied changes.

> [!WARNING]
>
> You should check out, edit and check in the Document Definition within the same scope.

## Syntax

```vb Visual Basic .NET theme={null}
Sub CheckIn(Value As DocumentDefinition)
```

```cpp C++ theme={null}
HRESULT CheckIn( IDocumentDefinition* Value );
```

## Parameters

**Value**

\[in] This parameter refers to a modified [**DocumentDefinition**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/documentdefinition.md) object which will be returned from editing mode with all settings saved.

## Return values

This method has no specific return values. It returns the [standard return values of ABBYY FlexiCapture SDK functions](https://docs.abbyy.com/flexi-capture/sdk/api-reference/errorcodes.md).

## Samples

This method is used in the following code samples: [Invoices Processing and Training](https://docs.abbyy.com/flexi-capture/sdk/guided-tour/samples.md#invoicesprocessingandtraining).

## See also

[**DocumentDefinitions**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/documentdefinitions.md)
