Document Sequences

What is a Document Sequence?

A document sequence uniquely numbers documents generated by an Oracle E-Business Suite product. Using Oracle E-Business Suite, you initiate a transaction by entering data through a form and generating a document, for example, an invoice. A document sequence generates an audit trail that identifies the application that created the transaction, for example, Oracle Receivables, and the original document that was generated, for example, invoice number 1234.

Document sequences can provide proof of completeness. For example, document sequences can be used to account for every transaction, even transactions that fail.

Document sequences can also provide an audit trail. For example, a document sequence can provide an audit trail from the general ledger into the subsidiary ledger, and to the document that originally affected the account balance.

Document sequences generate audit data, so even if documents are deleted, their audit records remain.

Related Topics

Defining a Document Sequence

Defining Document Categories

Assigning a Document Sequence

Document Numbering vs. Document Entry

Defining a Document Sequence

To define a sequence, you select a sequence name and an application to “own" the sequence.

You can set start and end dates for when the sequence is available. The start date defaults to the current date. By default, there is no end date, so the sequence definition does not expire.

You can choose whether a sequence numbers documents automatically, or accepts numbers manually entered by a user.

Automatic, Gapless, and Manual Numbering

Automatic numbering assigns a unique number to each document as it is generated. Automatic numbering is sequential by date and time of creation.

Gapless numbering also automatically generates a unique number for each document, but ensures that the document was successfully generated before assigning the number. With Gapless numbering, no sequence numbers are lost due to incomplete or failed document creation.

Important: We recommend that you choose this type only when gapless numbering is essential, as it may affect the performance of your system.

Manual numbering requires a user to assign a unique number to each document before it is generated. With manual numbering, numerical ordering and completeness is not enforced. Users can skip or omit numbers when entering the sequence value.

Automatic Numbering - Initial Value and Message Display

If you define a sequence to automatically number documents, you can:

Two examples of sequence definitions, one with automatic numbering and the other with manual numbering, are represented in the table below.

Field in Document Sequences form EXAMPLE 1 Sequence with Automatic Numbering EXAMPLE 2 Sequence with Manual Numbering
(Sequence) NAME AUTOPAY ADJUSTMENTS
(Owning) APPLICATION ORACLE PAYABLES - Sequence can number documents stored in an Oracle Payables database table. ORACLE RECEIVABLES - Sequence can number documents stored in an Oracle Receivables database table.
EFFECTIVE DATE - START CURRENT DATE & TIME (Default value) OCT-01-94 User defines sequence “Adjustments" not to be available until Oct 1, 1994.
EFFECTIVE DATE - END Field left blank. Sequence does not expire. DEC-31-94 User defines sequence “Adjustments" to no longer be available after Dec 31, 1994.
(Numbering) TYPE AUTOMATIC - Unique numbers are automatically generated in sequence. GAPLESS No omissions or gaps in numbers are possible, due to a rollback if the document creation is unsuccessful. MANUAL - User must enter a unique number before transaction can be completed, and document is generated. User may skip or omit numbers.
INITIAL VALUE 1 (Default value) User could enter their own initial value, for example, 5700. Not Available when numbering type is Manual.
MESSAGE YES - When a document that is automatically numbered is created, a message displays the sequence name and the sequence value (document number). Not Available when numbering type is Manual.

Related Topics

What is a Document Sequence?

Defining Document Categories

Defining Document Categories

Document categories organize documents into logical groups.

A document category identifies the database table that stores documents resulting from transactions your users enter.

Use categories to more precisely classify your documents. For example, you can categorize accounts receivable invoices into several different categories, such as:

Similarly, you can categorize accounts payable or purchase invoices into several different categories, such as:

Related Topics

What is a Document Sequence?

Defining a Document Sequence

Assigning a Document Sequence

Assigning a Document Sequence

Before you can assign a sequence to number documents, you must define which documents are to be numbered.

Sequences versus Assignments

Defining a sequence is different from assigning a sequence to a series of documents.

Defining Documents for numbering by Assigned Sequences

You specify a combination of four rules that define any given document for assignment to a specific sequence name.

You can then assign a different (numbering) sequence to each document definition.

The four rules, that when combined, define what documents a selected sequence assigns numbers to are:

Variable Description
Application You select the application that generates the documents you wish to number.
For example, to number sales invoices, you select Oracle Receivables.
Category You select a document category to identify a logical subset of documents.
For example, if you do not want to number all invoices in Oracle Receivables, you can choose to number only the category of sales invoices.
A category identifies a table that stores transactions entered (documents generated) using an Oracle E-Business Suite application.
The Category values you can choose from to define a document are dependent upon the application you select.
Set of Books You select the chart of accounts for your business that is affected by the documents you wish to number. You may optionally enable this rule through the Document Flexfield.
Method You select the method that your documents are entered, automatic or manual. You may optionally enable this rule through the Document Flexfield.
Automatic is when a concurrent process, such as an external program, is set up to enter transaction data into an Oracle E-Business Suite product.
Manual is when a document is manually entered using a form in an application.

Assignment of Sequences to Document Definitions

For each unique document definition there can only be one active sequence assignment. A document definition consists of the Application, Category, and the optional Document Flexfield segments Set of Books and Method

Important: When assigning sequences to a document definition, each active sequence can be assigned to only one unique combination of application and category (i.e., application table).

Active Assignments and Active Sequences

An active sequence assignment does not have a post dated end date. That is, the assignment's end date is not before the current date.

A sequence definition must be active as well. That is, the sequence definition's end date (as opposed to its assignment's end date) must not be before the current date.

When you define a document sequence, you give the sequence a name, and define how the sequence numbers each document by:

Related Topics

What is a Document Sequence?

Defining a Document Sequence

Defining Document Categories

Document Numbering vs. Document Entry

Document Numbering vs. Document Entry

Do not confuse the type of document numbering a sequence employs, which can be automatic or manual, with the method of entering documents, which is also defined as either automatic or manual.

Document Sequences Window

the picture is described in the document text

Name a new document sequence and define how the sequence numbers each document.

A document sequence uniquely numbers documents generated by an Oracle E-Business Suite product (for example, invoices generated by Oracle Receivables). Using the Sequence Assignments window, you assign your sequence to number only those documents that satisfy rules you define.

A document sequence numbers documents generated by an Oracle application, for example, journal entries generated by Oracle General Ledger.

Document sequences ensure that every document your users create can be accounted for. See: Sequences Assignments.

Document Sequences Block

Define the name, type of numbering scheme, effective dates, and initial value for your document sequence.

Name

Once entered, sequence names cannot be changed.

Application

Once selected, the application associated with your sequence cannot be changed.

Audit records for your sequence are stored in the application's audit table, titled Application Short Name_DOC_SEQUENCE_AUDIT. For example, the audit table for a sequence owned by Oracle Payables is AP_DOC_SEQUENCE_AUDIT.

Effective From/To

Enter the dates on which your document sequence takes effect/is no longer enabled. The Start on field automatically defaults to the current date, and once a sequence is defined, the start date cannot be changed. If you leave the End on field blank, your document sequence does not expire; and if you enter an end date and define your sequence, the end date cannot be modified later. If there is no end date defined and there are no active assignments for a sequence, you can disable the sequence by entering the current date as the end date. Once disabled, a sequence cannot be reactivated.

Type

Once defined, you cannot change the type of document numbering sequence.

Variable Description
Automatic Sequentially assigns, by date and time of creation, a unique number to each document as it is generated.
Manual Manual numbering requires a user to assign a number to each document before it is generated. You must enter unique values. However, please note that numerical ordering and completeness is not enforced.

Important: The Automatic-By-User type is currently not supported, and is reserved for future use.

Warning: The Gapless Numbering type is valid only in the context of certain localizations. We recommend that you choose this type only after consulting with Worldwide Support, as it may affect the performance of your system.

Message

Check the Message check box if you want each document to display a message (in the message line near the bottom of the screen) informing the user of the sequence name and value (number).

This check box only applies to sequences with the automatic type of numbering. Messages appear only on form displays, and are not written to a request's log file.

Once a sequence is defined, the message choice cannot be changed.

Initial Value

Enter a value for the first document in your sequence. This field only applies to sequences with automatic or gapless numbering type. Sequence numbers should not be greater than eight (8) digits.

If you leave this field blank, the first document is automatically assigned a value of "1".

Once a sequence is defined, this initial value cannot be changed.

Related Topics

What is a Document Sequence?

Document Categories

Sequence Assignments

Document Categories Window

the picture is described in the document text

Define categories for your documents in order to divide your documents into logical groups, which you can number separately by assigning different sequences.

A document sequence uniquely numbers each document the sequence is assigned to.

Each category identifies a table that stores documents resulting from transactions your users generate.

Document Categories Block

Name a document category and associate a table with the category.

When you enter this block, Oracle automatically queries for any existing document categories.

Application

Once a category is defined, you cannot change the choice of application. Only tables belonging to the selected application can be assigned to a category.

Code

Category code must be unique within an application. Once a category is defined, you cannot update its code.

Name

You can update the name, if you wish. For example, if the category name is predefined, you can change the name to a more familiar value.

Description

You can update the description, if you wish. For example, if the category description is predefined, you can change the description to a more familiar value.

Table Name

Select the name of the table that stores the documents you want to identify by your category.

Related Topics

What is a Document Sequence?

Document Sequences

Sequence Assignments

Sequence Assignments Window

the picture is described in the document text

Define which documents a document sequence can number, and then assign the document sequence to your definition.

A document sequence numbers documents generated by an Oracle E-Business Suite product (for example, invoices generated by Oracle Receivables).

Documents can be defined by the application that generates them and their category (the table in which they are stored). Additional fields appear when the optional rules for defining documents (Set of Books and Method of document entry) are enabled.

Besides entering a document definition and assigning a sequence to it, you can, if you wish, enter effective dates for the assignment.

Prerequisites

Define the document sequence using the Document Sequences window. See: Document Sequences.

Sequence Assignments Block

Specify documents by the application that generates them and the category of the document (table where the documents are stored). You can also include in your document definition the set of books they affect, and the method by which the document is entered.

Once a document definition is entered, you select a sequence to assign it to, and if you wish, enter effective dates for the assignment.

There can only be one active sequence assigned to each unique combination of Application, Category, Set of Books, and Method. The last two criterion are optional, and are set in the Document Flexfield.

However, the same sequence, the same numbering scheme, and initial value can be assigned to more than one combination of Application, Category, Set of Books, and Method as long as the Application and Category remain the same.

Variable Description
Application Select the application that generates the documents you wish to number.
For example, to number sales invoices, you select Oracle Receivables.
Category Select a document category to identify a logical subset of documents.
For example, if you do not want to number all invoices in Oracle Receivables, you can choose to number only the category of sales invoices.

Assignment Region

Since the effective dates for an assignment must fall within the sequence's start and end dates, the list of available sequences depends on the start and end dates specified for the assignment.

Start Date/End Date

Enter the dates on which the sequence assignment to your document definition takes effect/is no longer enabled. The Start Date field automatically defaults to the current date, and once a sequence assignment is defined, the start date cannot be changed.

If you leave the End Date field blank, your sequence assignment does not expire; and if you enter an end date and define your sequence assignment, the end date cannot be modified later.

If there is no end date defined and there are no active assignments for a sequence, you can disable the sequence assignment by entering the current date as the end date. Once disabled, a sequence assignment cannot be reactivated.

Sequence

Select a sequence to assign to your document definition. The sequence's application and the document's application must be the same.

Once you define a sequence assignment, the sequence name cannot be updated later.

If you want to disable the sequence assignment and assign a new sequence to the document definition (Document Flexfield combination), you must first, enter an End Date to disable the current sequence assignment, then, second, create a new record (row) for the new assignment.

Document Flexfield

The Document Flexfield may consist of none, one or two segments.

Variable Description
Set of Books Select the chart of accounts for your business that is affected by the documents you wish to number.
Method Select the method that your documents are entered, automatic or manual.
Automatic is when a concurrent process (e.g., an external program) enters transaction data into an Oracle E-Business Suite product, which generates documents.
Manual is when a document is manually entered using a form in an application.

Once defined, a Document Flexfield definition cannot be updated. You may not define additional segments for the Document Flexfield.

Important: To enable this descriptive flexfield, use the Descriptive Flexfield Segments window. Select the application Application Object Library, and the title "Document Flexfield". Be sure to unfreeze the flexfield; then, navigate to the Segments window and enable the segments. Freeze your flexfield after you set it up, and save and compile the new definition.

Related Topics

Descriptive Flexfields Concepts, Oracle E-Business Suite Flexfields Guide

What is a Document Sequence?

Document Sequences

Document Categories