AP_BATCHES_ALL

AP_BATCHES_ALL contains summary information about invoices you enter in batches if you enable the Batch Control Payables option. There is one row for each batch of invoices you enter. If you enable Batch Control, each invoice must correspond to a record in this table. Your Oracle Payables application uses this information to group together invoices that one person entered in a batch. This table corresponds to the Invoice Batches window.

Details

  • Schema: FUSION

  • Object owner: AP

  • Object type: TABLE

  • Tablespace: APPS_TS_TX_DATA

Primary Key

Name Columns

AP_BATCHES_PK

BATCH_ID

Columns

Name Datatype Length Precision Not-null Comments
BATCH_ID NUMBER 18 Yes Unique invoice group identifier.
BATCH_NAME VARCHAR2 50 Yes Invoice batch name (uniqueness enforced by the Invoice workbench)
BATCH_DATE DATE Yes Date when invoice batch was created.
LAST_UPDATE_DATE TIMESTAMP Yes Who column: indicates the date and time of the last update of the row.
LAST_UPDATED_BY VARCHAR2 64 Yes Who column: indicates the user who last updated the row.
CONTROL_INVOICE_COUNT NUMBER 18 User entered control of number of invoices in batch
CONTROL_INVOICE_TOTAL NUMBER User entered control of invoice amount total for invoices in batch
ACTUAL_INVOICE_COUNT NUMBER 18 Not currently used.
ACTUAL_INVOICE_TOTAL NUMBER Not currently used.
INVOICE_CURRENCY_CODE VARCHAR2 15 Currency code of invoice, overrides supplier invoice currency (may be left null for Multiple Currency Batches)
PAYMENT_CURRENCY_CODE VARCHAR2 15 Currency code of payment (must be an associated fixed-rate currency or same as INVOICE_CURRENCY_CODE)
LAST_UPDATE_LOGIN VARCHAR2 32 Who column: indicates the session login associated to the user who last updated the row.
CREATION_DATE TIMESTAMP Yes Who column: indicates the date and time of the creation of the row.
CREATED_BY VARCHAR2 64 Yes Who column: indicates the user who created the row.
PAY_GROUP_LOOKUP_CODE VARCHAR2 25 Name of pay group. This value overrides supplier pay group
BATCH_CODE_COMBINATION_ID NUMBER 18 Accounting Flexfield identifier for accounts payable liability account, overrides supplier liability account
TERMS_ID NUMBER 18 Terms identifier, overrides supplier pay group
ATTRIBUTE_CATEGORY VARCHAR2 150 Descriptive Flexfield: structure definition of the user descriptive flexfield.
ATTRIBUTE1 VARCHAR2 150 Descriptive Flexfield: segment of the user descriptive flexfield.
ATTRIBUTE2 VARCHAR2 150 Descriptive Flexfield: segment of the user descriptive flexfield.
ATTRIBUTE3 VARCHAR2 150 Descriptive Flexfield: segment of the user descriptive flexfield.
ATTRIBUTE4 VARCHAR2 150 Descriptive Flexfield: segment of the user descriptive flexfield.
ATTRIBUTE5 VARCHAR2 150 Descriptive Flexfield: segment of the user descriptive flexfield.
ATTRIBUTE6 VARCHAR2 150 Descriptive Flexfield: segment of the user descriptive flexfield.
ATTRIBUTE7 VARCHAR2 150 Descriptive Flexfield: segment of the user descriptive flexfield.
ATTRIBUTE8 VARCHAR2 150 Descriptive Flexfield: segment of the user descriptive flexfield.
ATTRIBUTE9 VARCHAR2 150 Descriptive Flexfield: segment of the user descriptive flexfield.
ATTRIBUTE10 VARCHAR2 150 Descriptive Flexfield: segment of the user descriptive flexfield.
ATTRIBUTE11 VARCHAR2 150 Descriptive Flexfield: segment of the user descriptive flexfield.
ATTRIBUTE12 VARCHAR2 150 Descriptive Flexfield: segment of the user descriptive flexfield.
ATTRIBUTE13 VARCHAR2 150 Descriptive Flexfield: segment of the user descriptive flexfield.
ATTRIBUTE14 VARCHAR2 150 Descriptive Flexfield: segment of the user descriptive flexfield.
ATTRIBUTE15 VARCHAR2 150 Descriptive Flexfield: segment of the user descriptive flexfield.
INVOICE_TYPE_LOOKUP_CODE VARCHAR2 25 Invoice category, such as standard, credit memo, or prepayment.
HOLD_LOOKUP_CODE VARCHAR2 25 Name of the hold that is applied on an invoice line.
HOLD_REASON VARCHAR2 240 Default hold reason for hold name
DOC_CATEGORY_CODE VARCHAR2 30 Default Sequential Numbering (voucher number) document category
ORG_ID NUMBER 18 Yes Indicates the identifier of the business unit associated to the row.
GL_DATE DATE Default accounting date for invoice distributions.
PAYMENT_PRIORITY NUMBER 2 Number representing payment priority used to default down to invoices and payment schedules (1 to 99)
OBJECT_VERSION_NUMBER NUMBER 9 Yes Used to implement optimistic locking. This number is incremented every time that the row is updated. The number is compared at the start and end of a transaction to detect whether another session has updated the row since it was queried.

Foreign Keys

Table Foreign Table Foreign Key Column
AP_BATCHES_ALL gl_code_combinations BATCH_CODE_COMBINATION_ID
AP_BATCHES_ALL ap_terms_b TERMS_ID
ap_invoices_all ap_batches_all BATCH_ID
ap_payment_schedules_all ap_batches_all BATCH_ID
ap_invoice_distributions_all ap_batches_all BATCH_ID

Indexes

Index Uniqueness Tablespace Columns
AP_BATCHES_N1 Non Unique Default BATCH_DATE
AP_BATCHES_U1 Unique Default BATCH_ID
AP_BATCHES_U2 Unique Default BATCH_NAME, BATCH_DATE, ORG_ID