Skip to the content.

AP Distribution Set Upload – Oracle EBS SQL Report

Oracle E-Business Suite SQL report from the Enginatics Library powered by Blitz Report™.

Overview

Creates and updates Payables distribution sets and their lines - the Excel equivalent of the Distribution Sets form (Setup > Invoice > Distribution Sets).

Each row is one distribution set line, with the distribution set header columns repeated on every line. The header values are taken from the first row of each distribution set. Leave the line columns blank to create or update a distribution set header only.

Each distribution set is processed as a whole: the percentages of all its lines, including existing lines not in the upload file, must add up to 100 (Full) or to 0 (Skeleton), otherwise none of its rows are saved. The same applies when any other line of the set fails validation.

Line Number identifies the line within the distribution set. Set Delete Line to Yes to delete a line. A distribution set cannot be deleted, as in the form - enter an Inactive On date instead.

For project related lines, enter Project, Task, Expenditure Type and Expenditure Organization. The account is then derived by the Projects account generator, exactly as in the form.

Run this report in Excel in seconds: download Blitz Report™ free (your first 30 reports are free) or try it in the online demo.

Report Parameters

Upload Mode, Operating Unit, Distribution Set

Oracle EBS Tables Used

ap_lookup_codes, ap_distribution_sets_all, hr_all_organization_units_vl, ap_distribution_set_lines_all, gl_code_combinations_kfv, pa_projects_all, pa_tasks, mo_glob_org_access_tmp

Report Categories

Enginatics, R12 only, Upload

AP Distribution Set Listing, PA Supplier Invoice Audit, CAC Open Purchase Orders, AP Invoice Upload, CAC Receiving Expense Value (Period-End), AP Invoices and Lines

Running This SQL Without Blitz Report

The SQL source can be run in any SQL client. Some Oracle EBS SQL reports in this library use functions from the utility package xxen_util – install it first. Blitz Report™ adds parameters, Excel output with pivots, scheduling and security on top.

Download & Import Options

Resource Link
Excel Example Output Example
Blitz Report™ XML Import AP_Distribution_Set_Upload.xml
SQL Source AP Distribution Set Upload.sql
Full Report on Enginatics www.enginatics.com/reports/ap-distribution-set-upload/

Case Study & Technical Analysis: AP Distribution Set Upload

Executive Summary

The AP Distribution Set Upload report is a spreadsheet-based maintenance tool for Oracle Payables distribution sets. It is the Excel equivalent of the Distribution Sets form (Setup > Invoice > Distribution Sets). Accounts payable setup teams use it to create new distribution sets, change their lines and percentages, and retire sets by entering an inactive date, without keying each set through the form one line at a time. Because it is an upload, the same file carries the header and line data for many sets, which makes it practical for initial setup of a new operating unit or for a large clean-up of allocation rules.

Business Challenge

The Solution

Technical Architecture (High Level)

Primary Tables

Logical Relationships

  1. The header table AP_DISTRIBUTION_SETS_ALL is restricted to operating units in MO_GLOB_ORG_ACCESS_TMP and joined to its operating unit in HR_ALL_ORGANIZATION_UNITS_VL.
  2. Each header is outer joined to its lines in AP_DISTRIBUTION_SET_LINES_ALL on the distribution set ID, so sets without lines still appear.
  3. Each line is outer joined to GL_CODE_COMBINATIONS_KFV for the account, to PA_PROJECTS_ALL and PA_TASKS for project data, and to HR_ALL_ORGANIZATION_UNITS_VL for the expenditure organization.
  4. The set type label is looked up in AP_LOOKUP_CODES using the set’s total percent distribution.

Parameters & Filtering

Performance & Optimization

FAQ

Q: How do I add a new line to an existing AP distribution set without changing the others? A: Enter a row with the set name and a new Line Number, and the line percentages must still total 100 or 0 across all lines of the set, including the existing ones.

Q: Why was my whole distribution set rejected when only one line had an error? A: Each set is processed as a whole, so if any line of the set fails validation, none of its rows are saved.

Q: Can I delete a distribution set with this upload? A: No. As in the Distribution Sets form, a set cannot be deleted; enter an Inactive On date to retire it, and set Delete Line to Yes only to remove individual lines.


© Enginatics GmbH