Search Results total_percent_distribution
Overview
APPS.AP_DISTRIBUTION_SETS_DSN_V is a reporting and validation view in the Oracle E-Business Suite Payables (AP) module, owned by the APPS schema. It is a "DSN" (distribution set name) view whose purpose is to expose a curated subset of the distribution sets defined in Oracle Payables: specifically those that are currently active and are fully allocated, meaning their component percentages total exactly 100. Distribution sets are reusable templates that let a Payables user automatically spread an invoice or payment amount across multiple accounts, cost centers, or percentage splits without re-entering every line. Because downstream forms, concurrent programs, and integrations must only select distribution sets whose percentages balance to 100, this view provides a reliable, self-filtering source. In Oracle EBS 12.1.1 and 12.2.2 the object is defined identically; the view text is a simple projection over the base table with two predicate conditions, so it carries no version-specific logic.
Underlying Base Objects
The view is defined exclusively over the base table AP_DISTRIBUTION_SETS, accessed through its APPS synonym. No joins, lookups, or additional tables are referenced. The view text is:
- SELECT DISTRIBUTION_SET_NAME AS DISTRIBUTION, DISTRIBUTION_SET_ID, TOTAL_PERCENT_DISTRIBUTION FROM AP_DISTRIBUTION_SETS
- WHERE NVL(INACTIVE_DATE, SYSDATE + 1) > SYSDATE
- AND TOTAL_PERCENT_DISTRIBUTION = 100
The first predicate excludes any distribution set whose INACTIVE_DATE has already passed, while treating a null INACTIVE_DATE as "never expires." The second predicate restricts output to sets whose TOTAL_PERCENT_DISTRIBUTION equals 100, guaranteeing that only balanced sets are returned. The view therefore inherits the structure and data types of AP_DISTRIBUTION_SETS but renames DISTRIBUTION_SET_NAME to DISTRIBUTION for convenience.
Key Columns
- DISTRIBUTION – The distribution set name, sourced from AP_DISTRIBUTION_SETS.DISTRIBUTION_SET_NAME. This is the user-facing identifier displayed in Payables distribution set lists and LOVs.
- DISTRIBUTION_SET_ID – The unique internal identifier for the distribution set, sourced from AP_DISTRIBUTION_SETS.DISTRIBUTION_SET_ID. It is the primary key used to join to the underlying distribution set lines (AP_DISTRIBUTION_SET_LINES) or to reference the set in other Payables tables.
- TOTAL_PERCENT_DISTRIBUTION – The sum of the percentages assigned to the set's component lines, sourced from AP_DISTRIBUTION_SETS.TOTAL_PERCENT_DISTRIBUTION. Because of the view's filter, this column always returns the value 100 for any row visible through the view, making it useful mainly as a validation flag rather than a variable measure.
Common Use Cases and Queries
The view is typically used to populate selection lists and to validate that only complete distribution sets are available to users or interfaces. A common query retrieves the name and ID of all active, balanced sets, often for a lookup or for driving an integration that creates invoice distributions:
- SELECT distribution_set_id, distribution FROM ap_distribution_sets_dsn_v ORDER BY distribution;
- SELECT distribution_set_id FROM ap_distribution_sets_dsn_v WHERE distribution = :p_name;
- SELECT COUNT(*) FROM ap_distribution_sets_dsn_v; — to count usable distribution sets in an environment.
Because the view already enforces the "equals 100" and "not inactive" conditions, callers do not need to repeat that logic; they can rely on the view to return only sets that can be safely applied. When the underlying AP_DISTRIBUTION_SETS row is deactivated or its percentages are edited away from 100, the set silently drops out of the view on the next query, which is the intended behavior for reporting and LOV consumption.
-
VIEW: APPS.AP_DISTRIBUTION_SETS_DSN_V
12.2.2
-
View: AP_DISTRIBUTION_SETS_DSN_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:SQLAP.AP_DISTRIBUTION_SETS_DSN_V, object_name:AP_DISTRIBUTION_SETS_DSN_V, status:VALID, product: AP - Payables , description: (Release 10SC Only) , implementation_dba_data: APPS.AP_DISTRIBUTION_SETS_DSN_V ,
-
VIEW: APPS.AP_DISTRIBUTION_SETS_DSN_V
12.1.1
-
VIEW: AP.AP_DISTRIBUTION_SETS_ALL#
12.2.2
-
View: AP_DISTRIBUTION_SETS_DSN_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:SQLAP.AP_DISTRIBUTION_SETS_DSN_V, object_name:AP_DISTRIBUTION_SETS_DSN_V, status:VALID, product: AP - Payables , description: (Release 10SC Only) , implementation_dba_data: APPS.AP_DISTRIBUTION_SETS_DSN_V ,
-
VIEW: AR.AR_DISTRIBUTION_SETS_ALL#
12.2.2
-
VIEW: APPS.AP_DISTRIBUTION_SETS_DSN_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:SQLAP.AP_DISTRIBUTION_SETS_DSN_V, object_name:AP_DISTRIBUTION_SETS_DSN_V, status:VALID,
-
VIEW: APPS.AP_DISTRIBUTION_SETS_DSN_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:SQLAP.AP_DISTRIBUTION_SETS_DSN_V, object_name:AP_DISTRIBUTION_SETS_DSN_V, status:VALID,
-
VIEW: AR.AR_DISTRIBUTION_SETS_ALL#
12.2.2
owner:AR, object_type:VIEW, object_name:AR_DISTRIBUTION_SETS_ALL#, status:VALID,
-
VIEW: AP.AP_DISTRIBUTION_SETS_ALL#
12.2.2
owner:AP, object_type:VIEW, object_name:AP_DISTRIBUTION_SETS_ALL#, status:VALID,
-
TABLE: AR.AR_DISTRIBUTION_SETS_ALL
12.1.1
owner:AR, object_type:TABLE, fnd_design_data:AR.AR_DISTRIBUTION_SETS_ALL, object_name:AR_DISTRIBUTION_SETS_ALL, status:VALID,
-
TABLE: AR.AR_DISTRIBUTION_SETS_ALL
12.2.2
owner:AR, object_type:TABLE, fnd_design_data:AR.AR_DISTRIBUTION_SETS_ALL, object_name:AR_DISTRIBUTION_SETS_ALL, status:VALID,
-
TABLE: AP.AP_DISTRIBUTION_SETS_ALL
12.2.2
owner:AP, object_type:TABLE, fnd_design_data:SQLAP.AP_DISTRIBUTION_SETS_ALL, object_name:AP_DISTRIBUTION_SETS_ALL, status:VALID,
-
TABLE: AP.AP_DISTRIBUTION_SETS_ALL
12.1.1
owner:AP, object_type:TABLE, fnd_design_data:SQLAP.AP_DISTRIBUTION_SETS_ALL, object_name:AP_DISTRIBUTION_SETS_ALL, status:VALID,
-
APPS.AP_INVOICE_LINES_PKG SQL Statements
12.1.1
-
APPS.AP_IMPORT_VALIDATION_PKG dependencies on AP_DISTRIBUTION_SETS
12.1.1
-
APPS.AP_IMPORT_VALIDATION_PKG dependencies on AP_DISTRIBUTION_SETS
12.2.2
-
APPS.AP_INVOICE_LINES_PKG SQL Statements
12.2.2
-
APPS.AP_RECURRING_INVOICES_PKG SQL Statements
12.2.2
-
APPS.AP_RECURRING_INVOICES_PKG SQL Statements
12.1.1
-
PACKAGE BODY: APPS.AP_INVOICE_LINES_PKG
12.1.1
-
APPS.AP_INVOICE_LINES_PKG dependencies on AP_DISTRIBUTION_SETS
12.1.1
-
APPS.AP_INVOICE_LINES_PKG dependencies on AP_DISTRIBUTION_SETS
12.2.2
-
APPS.AP_IMPORT_VALIDATION_PKG SQL Statements
12.1.1
-
APPS.AP_IMPORT_VALIDATION_PKG SQL Statements
12.2.2
-
PACKAGE BODY: APPS.AP_RECURRING_INVOICES_PKG
12.1.1
-
PACKAGE BODY: APPS.AP_RECURRING_INVOICES_PKG
12.2.2
-
PACKAGE BODY: APPS.AP_INVOICE_LINES_PKG
12.2.2
-
PACKAGE BODY: APPS.AP_IMPORT_VALIDATION_PKG
12.1.1
-
PACKAGE BODY: APPS.AP_IMPORT_VALIDATION_PKG
12.2.2
-
eTRM - SQLAP Tables and Views
12.2.2
description: Set Distribution Table. ,
-
eTRM - SQLAP Tables and Views
12.1.1
description: Set Distribution Table. ,
-
eTRM - AR Tables and Views
12.1.1
description: Territory information ,
-
eTRM - AR Tables and Views
12.2.2
description: Territory information ,