Creating document numbers by transaction type

Document numbers must be unique within a transaction type. You can assign a document number to a transaction in several ways.

In the Transaction Types (tfgld0511m000) session you can determine the document number by using:

  • The Documents in fixed Sequence check box.
  • The Number of Digits for Series field.

Selection of the Block Backdating check box in the Transaction Types (tfgld0511m000) session also affects the document numbering. For details, refer to Block backdating of transactions.

Number of digits for series

A document serial number is a combination of a series number and a sequence number.

The document number consists of 8 positions. The maximum number of positions that can be reserved for a series is 4. If no series are used, that is, if the Number of Digits for Series field has the value 0, all 8 positions are used for the document sequence number. If the 1 through 4 positions are reserved for the series number, then the remaining positions are available for the rest of the document number.

Number of Digits for SeriesSeries No.Remaining Doc. Seq. No.Resulting Doc. No.
0-YYYYYYYYYYYYYYYY
1XYYYYYYYXYYYYYYY
2XXYYYYYYXXYYYYYY
3XXXYYYYYXXXYYYYY
4XXXXYYYYXXXXYYYY

 

LN does not allow leading zeroes for series. If the number of digits for the series is two, the series must be at least 10. Values such as 02 and 04 are not allowed.

Options for creating document numbers

Three options exist to create a document number within a transaction type:

  • Option 1
    • The Documents in fixed Sequence check box is selected.
    • The Number of Digits for Series field has the value zero.

    If you use this option, LN sets the series number to 0 by default. You cannot manually enter the document number. LN automatically generates the document number.

  • Option 2
    • The Documents in fixed Sequence check box is cleared.
    • The Number of Digits for Series field has the value zero.

    If you use this option, you can determine the document number yourself. You cannot reuse a document number that is already used.

  • Option 3
    • The Documents in fixed Sequence check box is selected.
    • The Number of Digits for Series field has a value greater than zero.

    If you use this option, you can enter the series number for a document number. The series number consists of the number of positions defined in the Number of Digits for Series field. LN fills the remaining positions of the document number on the basis of the document number that was last used within the transaction type. The last used document number within each series is updated in the Transaction Type Series (tfgld0114m000) session.

Note

The following situation is not allowed:

  • The Documents in fixed Sequence check box is cleared.
  • The Number of Digits for Series field has a value greater than zero.

A transaction type that uses a document series must have consecutive numbering. Therefore, if the Documents in fixed Sequence check box is cleared, you cannot enter a value in the Number of Digits for Series field.