Constraints, indexes, Table Structure

PO_DISTRIBUTIONS_ALL: Table Structure & Indexes

PO_DISTRIBUTIONS_ALL is the table used by Oracle to store the distribution information of Purchase Order Line and by distribution I mean GL account information i.e. which GL accounts will be hit by the system.

Also PO_DISTRIBUTIONS_ALL is the table which in my experience connects Purchase Order with most of the other objects such as Requisition, Orders, Projects etc. So let’s discuss the table structure & indexes of the table but before that few key points:
1. This table is child table of PO_LINE_LOCATIONS_ALL table which is used to store the shipment info.
2. Quantity Ordered, Delivered, Billed and Cancelled are few important quantities you need to consider while reporting.
3. You can directly query this table based from PO_LINES_ALL table using PO_LINE_ID unless you are looking for shipment information.
4. This table is also the one which connects a PO with a requisition using REQ_DISTRIBUTION_ID

By the way, Here ( India) or Here ( Other Geographies) are few UNCONVENTIONAL tricks which I have learnt to improve the performance of BI reports or SQL queries. Try them only when nothing else works.. kind of SOS...
https://www.amazon.in/gp/product/B093CC1CLD?ie=UTF8&tag=oraclebytes-21&camp=3638&linkCode=xm2&creativeASIN=B093CC1CLD

PO_DISTRIBUTIONS_ALL: Table Structure

COLUMN_NAMEDATA_TYPENULLABLE
 PO_DISTRIBUTION_IDNUMBER
 BUDGET_DATEDATE
 CANCEL_BUDGET_DATEDATE
 CLOSE_BUDGET_DATEDATE
 FUNDS_STATUSVARCHAR2(100)
 LAST_UPDATE_DATETIMESTAMP(6)
 DIST_INTENDED_USEVARCHAR2(960)
 PRC_BU_IDNUMBER
 REQ_BU_IDNUMBER
 LAST_UPDATED_BYVARCHAR2(256)
 PO_HEADER_IDNUMBER
 PO_LINE_IDNUMBER
 LINE_LOCATION_IDNUMBER
 SET_OF_BOOKS_IDNUMBER
 CODE_COMBINATION_IDNUMBER
 QUANTITY_ORDEREDNUMBER
 LAST_UPDATE_LOGINVARCHAR2(128)
 CREATION_DATETIMESTAMP(6)
 CREATED_BYVARCHAR2(256)
 QUANTITY_DELIVEREDNUMBER
 QUANTITY_BILLEDNUMBER
 QUANTITY_CANCELLEDNUMBER
 CONSIGNMENT_QUANTITYNUMBER
 REQ_HEADER_REFERENCE_NUMVARCHAR2(100)
 REQ_LINE_REFERENCE_NUMVARCHAR2(100)
 REQ_DISTRIBUTION_IDNUMBER
 DELIVER_TO_LOCATION_IDNUMBER
 DELIVER_TO_PERSON_IDNUMBER
 RATE_DATEDATE
 RATENUMBER
 AMOUNT_BILLEDNUMBER
 ACCRUED_FLAGVARCHAR2(4)
 ENCUMBERED_FLAGVARCHAR2(4)
 ENCUMBERED_AMOUNTNUMBER
 UNENCUMBERED_QUANTITYNUMBER
 UNENCUMBERED_AMOUNTNUMBER
 FAILED_FUNDS_LOOKUP_CODEVARCHAR2(100)
 GL_ENCUMBERED_DATEDATE
 GL_ENCUMBERED_PERIOD_NAMEVARCHAR2(60)
 GL_CANCELLED_DATEDATE
 DESTINATION_TYPE_CODEVARCHAR2(100)
 DESTINATION_ORGANIZATION_IDNUMBER
 DESTINATION_SUBINVENTORYVARCHAR2(40)
 ATTRIBUTE_CATEGORYVARCHAR2(120)
 ATTRIBUTE1VARCHAR2(600)
 ATTRIBUTE2VARCHAR2(600)
 ATTRIBUTE3VARCHAR2(600)
 ATTRIBUTE4VARCHAR2(600)
 ATTRIBUTE5VARCHAR2(600)
 ATTRIBUTE6VARCHAR2(600)
 ATTRIBUTE7VARCHAR2(600)
 ATTRIBUTE8VARCHAR2(600)
 ATTRIBUTE9VARCHAR2(600)
 ATTRIBUTE10VARCHAR2(600)
 ATTRIBUTE11VARCHAR2(600)
 ATTRIBUTE12VARCHAR2(600)
 ATTRIBUTE13VARCHAR2(600)
 ATTRIBUTE14VARCHAR2(600)
 ATTRIBUTE15VARCHAR2(600)
 ATTRIBUTE16VARCHAR2(600)
 ATTRIBUTE17VARCHAR2(600)
 ATTRIBUTE18VARCHAR2(600)
 ATTRIBUTE19VARCHAR2(600)
 ATTRIBUTE20VARCHAR2(600)
 ATTRIBUTE_NUMBER1NUMBER
 ATTRIBUTE_NUMBER2NUMBER
 ATTRIBUTE_NUMBER3NUMBER
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
 GLOBAL_ATTRIBUTE12VARCHAR2(600)
 GLOBAL_ATTRIBUTE13VARCHAR2(600)
 GLOBAL_ATTRIBUTE14VARCHAR2(600)
 GLOBAL_ATTRIBUTE15VARCHAR2(600)
 GLOBAL_ATTRIBUTE16VARCHAR2(600)
 GLOBAL_ATTRIBUTE17VARCHAR2(600)
 GLOBAL_ATTRIBUTE18VARCHAR2(600)
 GLOBAL_ATTRIBUTE19VARCHAR2(600)
 GLOBAL_ATTRIBUTE20VARCHAR2(600)
 GLOBAL_ATTRIBUTE_DATE1DATE
 GLOBAL_ATTRIBUTE_DATE2DATE
 GLOBAL_ATTRIBUTE_DATE3DATE
 GLOBAL_ATTRIBUTE_DATE4DATE
 GLOBAL_ATTRIBUTE_DATE5DATE
 GLOBAL_ATTRIBUTE_NUMBER1NUMBER
 GLOBAL_ATTRIBUTE_NUMBER2NUMBER
 GLOBAL_ATTRIBUTE_NUMBER3NUMBER
 GLOBAL_ATTRIBUTE_NUMBER4NUMBER
 GLOBAL_ATTRIBUTE_NUMBER5NUMBER
 WIP_ENTITY_IDNUMBER
 WIP_OPERATION_SEQ_NUMNUMBER
 WIP_RESOURCE_SEQ_NUMNUMBER
 WIP_REPETITIVE_SCHEDULE_IDNUMBER
 WIP_LINE_IDNUMBER
 BOM_RESOURCE_IDNUMBER
 BUDGET_ACCOUNT_IDNUMBER
 ACCRUAL_ACCOUNT_IDNUMBER
 VARIANCE_ACCOUNT_IDNUMBER
 PREVENT_ENCUMBRANCE_FLAGVARCHAR2(4)
 GOVERNMENT_CONTEXTVARCHAR2(120)
 DESTINATION_CONTEXTVARCHAR2(120)
 DISTRIBUTION_NUMNUMBER
 SOURCE_DISTRIBUTION_IDNUMBER
 REQUEST_IDNUMBER
 JOB_DEFINITION_NAMEVARCHAR2(400)
 JOB_DEFINITION_PACKAGEVARCHAR2(3600)
 PROGRAM_NAMEVARCHAR2(120)
 PROGRAM_APP_NAMEVARCHAR2(200)
 GL_CLOSED_DATEDATE
 ACCRUE_ON_RECEIPT_FLAGVARCHAR2(4)
 SOLDTO_BU_IDNUMBER
 KANBAN_CARD_IDNUMBER
 AWARD_IDNUMBER
 END_ITEM_UNIT_NUMBERVARCHAR2(120)
 TAX_RECOVERY_OVERRIDE_FLAGVARCHAR2(4)
 RECOVERABLE_TAXNUMBER
 NONRECOVERABLE_TAXNUMBER
 RECOVERABLE_INCLUSIVE_TAXNUMBER
 NONRECOVERABLE_INCLUSIVE_TAXNUMBER
 TAX_EXCLUSIVE_AMOUNTNUMBER
 RECOVERY_RATENUMBER
 OKE_CONTRACT_LINE_IDNUMBER
 OKE_CONTRACT_DELIVERABLE_IDNUMBER
 AMOUNT_ORDEREDNUMBER
 AMOUNT_DELIVEREDNUMBER
 AMOUNT_CANCELLEDNUMBER
 DISTRIBUTION_TYPEVARCHAR2(100)
 AMOUNT_TO_ENCUMBERNUMBER
 INVOICE_ADJUSTMENT_FLAGVARCHAR2(4)
 DEST_CHARGE_ACCOUNT_IDNUMBER
 DEST_VARIANCE_ACCOUNT_IDNUMBER
 QUANTITY_FINANCEDNUMBER
 AMOUNT_FINANCEDNUMBER
 QUANTITY_RECOUPEDNUMBER
 AMOUNT_RECOUPEDNUMBER
 RETAINAGE_WITHHELD_AMOUNTNUMBER
 RETAINAGE_RELEASED_AMOUNTNUMBER
 INVOICED_VAL_IN_NTFNNUMBER
 TAX_ATTRIBUTE_UPDATE_CODEVARCHAR2(60)
 INTERFACE_DISTRIBUTION_REFVARCHAR2(960)
 OBJECT_VERSION_NUMBERNUMBER
 PJC_PROJECT_IDNUMBER
 PJC_TASK_IDNUMBER
 PJC_EXPENDITURE_ITEM_DATEDATE
 PJC_ORGANIZATION_IDNUMBER
 PJC_EXPENDITURE_TYPE_IDNUMBER
 PJC_CONTEXT_CATEGORYVARCHAR2(160)
 PJC_BILLABLE_FLAGVARCHAR2(4)
 PJC_USER_DEF_ATTRIBUTE1VARCHAR2(600)
 PJC_USER_DEF_ATTRIBUTE2VARCHAR2(600)
 PJC_USER_DEF_ATTRIBUTE3VARCHAR2(600)
 PJC_USER_DEF_ATTRIBUTE4VARCHAR2(600)
 PJC_USER_DEF_ATTRIBUTE5VARCHAR2(600)
 PJC_USER_DEF_ATTRIBUTE6VARCHAR2(600)
 PJC_USER_DEF_ATTRIBUTE7VARCHAR2(600)
 PJC_USER_DEF_ATTRIBUTE8VARCHAR2(600)
 PJC_USER_DEF_ATTRIBUTE9VARCHAR2(600)
 PJC_USER_DEF_ATTRIBUTE10VARCHAR2(600)
 PJC_CONTRACT_IDNUMBER
 PJC_WORK_TYPE_IDNUMBER
 PJC_CAPITALIZABLE_FLAGVARCHAR2(4)
 PJC_RESERVED_ATTRIBUTE1VARCHAR2(600)
 PJC_RESERVED_ATTRIBUTE2VARCHAR2(600)
 PJC_RESERVED_ATTRIBUTE3VARCHAR2(600)
 PJC_RESERVED_ATTRIBUTE4VARCHAR2(600)
 PJC_RESERVED_ATTRIBUTE5VARCHAR2(600)
 PJC_RESERVED_ATTRIBUTE6VARCHAR2(600)
 PJC_RESERVED_ATTRIBUTE7VARCHAR2(600)
 PJC_RESERVED_ATTRIBUTE8VARCHAR2(600)
 PJC_RESERVED_ATTRIBUTE9VARCHAR2(600)
 PJC_RESERVED_ATTRIBUTE10VARCHAR2(600)
 PJC_FUNDING_ALLOCATION_IDNUMBER
 PJC_CONTRACT_LINE_IDNUMBER
 ORIGINAL_DISTRIBUTION_IDNUMBER
 DELIVER_TO_CUST_LOCATION_IDNUMBER
 DELIVER_TO_CUST_IDNUMBER
 DELIVER_TO_CUST_CONTACT_IDNUMBER
PO_DISTRIBUTIONS_ALL Table Structure

Indexes

INDEX_NAMEINDEX_TYPEUNIQUENESSCOLUMN_NAME
 PO_DISTRIBUTIONS_F1FUNCTION-BASED NORMALNONUNIQUESYS_NC00214$
 PO_DISTRIBUTIONS_F2FUNCTION-BASED NORMALNONUNIQUESYS_NC00215$
 PO_DISTRIBUTIONS_N1NORMALNONUNIQUELINE_LOCATION_ID
 PO_DISTRIBUTIONS_N10NORMALNONUNIQUEORIGINAL_DISTRIBUTION_ID
 PO_DISTRIBUTIONS_N11NORMALNONUNIQUEPO_HEADER_ID
 PO_DISTRIBUTIONS_N11NORMALNONUNIQUEPO_LINE_ID
 PO_DISTRIBUTIONS_N11NORMALNONUNIQUELINE_LOCATION_ID
 PO_DISTRIBUTIONS_N11NORMALNONUNIQUEDISTRIBUTION_NUM
 PO_DISTRIBUTIONS_N12NORMALNONUNIQUEDELIVER_TO_CUST_ID
 PO_DISTRIBUTIONS_N13NORMALNONUNIQUEDELIVER_TO_CUST_CONTACT_ID
 PO_DISTRIBUTIONS_N2NORMALNONUNIQUEREQ_DISTRIBUTION_ID
 PO_DISTRIBUTIONS_N4NORMALNONUNIQUEPO_LINE_ID
 PO_DISTRIBUTIONS_N5NORMALNONUNIQUEREQ_HEADER_REFERENCE_NUM
 PO_DISTRIBUTIONS_N5NORMALNONUNIQUEREQ_LINE_REFERENCE_NUM
 PO_DISTRIBUTIONS_N6NORMALNONUNIQUEDELIVER_TO_PERSON_ID
 PO_DISTRIBUTIONS_N9NORMALNONUNIQUEPJC_PROJECT_ID
 PO_DISTRIBUTIONS_N9NORMALNONUNIQUEPJC_TASK_ID
 PO_DISTRIBUTIONS_U1NORMALUNIQUEPO_DISTRIBUTION_ID
PO_DISTRIBUTIONS_ALL Indexes

Related Posts

PO_HEADERS_ALL
PO_LINES_ALL
PO_LINE_LOCATIONS_ALL

Feedback:
Hope the article helped you. If it did, please rate the post. In case it didn’t, do leave a comment to let us know what did we miss.

Reference:
support.oracle.com

Check out the Amazon Deals of the day based on your interests..

How useful was this post?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?