Search Results amount_withheld
Overview
ICX_AP_INVOICES_PKG is an Oracle Application Object Library PL/SQL package body owned by the APPS schema and classified under API type OTHER. It provides supporting data-retrieval logic for the Oracle iProcurement and Internet Expenses invoice review user interfaces, which fall under the ICX (Interaction Center eXchange) application family. The package sits behind invoice detail and drill-down pages that allow requesters, approvers, and payables personnel to inspect the composition of a supplier invoice without navigating directly into Oracle Payables forms.
Two concerns are addressed. The first is presentation of the purchase order context for an invoice: users viewing an invoice in an ICX-based self-service page need to see which purchase orders the invoice references, expressed as a human-readable list rather than as internal identifiers. The second, and most relevant to searches on amount_withheld, is the quantification of withheld tax amounts recorded on the invoice, which is required for accurate display of invoice totals and net payable figures.
Key Procedures and Functions
- GET_PO_NUMBER_LIST — Returns a comma-delimited character string containing the distinct purchase order numbers associated with a given invoice, or NULL when the invoice is not matched to any purchase order. It opens an explicit cursor that joins invoice distribution rows to PO distributions and PO headers, concatenating each PO header segment into a single output string. This function is typically used to populate the PO Number field on ICX invoice inquiry screens where multiple PO references may exist on a single invoice.
- GET_AMOUNT_WITHHELD — Returns the automatic withholding tax (AWT) amount withheld on an invoice. The implementation aggregates the amount column of the AP_INVOICE_DISTRIBUTIONS table for rows whose line type is 'AWT', negating the sum so that the returned value is expressed as a positive withheld amount. Null amounts are coalesced to zero, and the function initializes its local variable to zero, so an invoice with no withholding distributions returns 0 rather than NULL.
Tables Accessed
- AP_INVOICE_DISTRIBUTIONS — The primary source for both functions. GET_PO_NUMBER_LIST reads the invoice_id and po_distribution_id columns to link invoice lines to purchase order distributions. GET_AMOUNT_WITHHELD reads invoice_id, line_type_lookup_code, and amount to isolate and total withholding lines. The package performs read-only access; it does not insert, update, or delete rows.
- PO_HEADERS — Read by GET_PO_NUMBER_LIST to resolve the segment1 (PO number) value for each matched PO header. Accessed through the PO_DISTRIBUTIONS_AP_V view, which supplies the po_header_id join key and restricts the distributions to those visible to Payables.
- PO_DISTRIBUTIONS_AP_V — A Payables-facing view over purchase order distributions used as the join bridge between invoice distributions and PO headers.
Usage Notes
The package is referenced by five other packages, confirming that it is an internal utility layer rather than a top-level entry point. It is not registered as a concurrent program and exposes no user-facing API; callers typically pass only an invoice identifier and receive scalar results suitable for direct display. Typical invocations occur when an ICX self-service invoice page is rendered: the page controller calls GET_AMOUNT_WITHHELD to display the withheld tax component of the invoice and GET_PO_NUMBER_LIST to display matched PO references.
Because the functions rely on APPS synonyms and are not wrapped in an open API contract, customizations should treat them as read-only conveniences. Performance is generally acceptable for single-invoice lookups, but the PO number cursor performs a DISTINCT join and should not be invoked in bulk loops. All monetary results from GET_AMOUNT_WITHHELD inherit the functional currency of the invoice, and the function returns a sign-adjusted value rather than the raw negative distribution amount.
-
PACKAGE BODY: APPS.ICX_AP_INVOICES_PKG
12.1.1
-
PACKAGE BODY: APPS.ICX_AP_INVOICES_PKG
12.2.2
-
VIEW: IBY.IBY_GEN_DOCS_PAYABLE#
12.2.2
-
VIEW: IBY.IBY_DOCUMENTS_PAYABLE_H#
12.2.2
-
View: AP_INVOICES_DERIVED_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:SQLAP.AP_INVOICES_DERIVED_V, object_name:AP_INVOICES_DERIVED_V, status:VALID, product: AP - Payables , description: (Release 10SC Only) , implementation_dba_data: APPS.AP_INVOICES_DERIVED_V ,
-
VIEW: IBY.IBY_DOCS_PAYABLE_ALL#
12.2.2
-
VIEW: APPS.IBY_EXT_FD_DOC_1_0_V
12.1.1
-
VIEW: APPS.IBY_EXT_FD_PMT_1_0_V
12.2.2
-
View: AP_INVOICES_DERIVED_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:SQLAP.AP_INVOICES_DERIVED_V, object_name:AP_INVOICES_DERIVED_V, status:VALID, product: AP - Payables , description: (Release 10SC Only) , implementation_dba_data: APPS.AP_INVOICES_DERIVED_V ,
-
VIEW: APPS.IBY_EXT_FD_DOC_1_0_V
12.2.2
-
VIEW: APPS.AP_INVOICES_DERIVED_V
12.1.1
-
VIEW: APPS.IBY_EXT_FD_PMT_1_0_V
12.1.1
-
VIEW: APPS.AP_INVOICES_DERIVED_V
12.2.2
-
VIEW: APPS.AP_INVOICES_DERIVED_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:SQLAP.AP_INVOICES_DERIVED_V, object_name:AP_INVOICES_DERIVED_V, status:VALID,
-
TABLE: IBY.IBY_HOOK_DOCS_IN_PMT_T
12.1.1
owner:IBY, object_type:TABLE, fnd_design_data:IBY.IBY_HOOK_DOCS_IN_PMT_T, object_name:IBY_HOOK_DOCS_IN_PMT_T, status:VALID,
-
APPS.ICX_AP_INVOICES_PKG SQL Statements
12.1.1
-
TABLE: IBY.IBY_HOOK_DOCS_IN_PMT_T
12.2.2
owner:IBY, object_type:TABLE, fnd_design_data:IBY.IBY_HOOK_DOCS_IN_PMT_T, object_name:IBY_HOOK_DOCS_IN_PMT_T, status:VALID,
-
VIEW: APPS.AP_INVOICES_DERIVED_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:SQLAP.AP_INVOICES_DERIVED_V, object_name:AP_INVOICES_DERIVED_V, status:VALID,
-
APPS.ICX_AP_INVOICES_PKG SQL Statements
12.2.2
-
View: IBY_DOCS_PAYABLE_SEC_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:IBY.IBY_DOCS_PAYABLE_SEC_V, object_name:IBY_DOCS_PAYABLE_SEC_V, status:VALID, product: IBY - Payments , implementation_dba_data: APPS.IBY_DOCS_PAYABLE_SEC_V ,
-
View: IBY_DOCS_PAYABLE_SEC_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:IBY.IBY_DOCS_PAYABLE_SEC_V, object_name:IBY_DOCS_PAYABLE_SEC_V, status:VALID, product: IBY - Payments , implementation_dba_data: APPS.IBY_DOCS_PAYABLE_SEC_V ,
-
TABLE: APPS.IBY_DOCS_IN_PMT_GT
12.2.2
owner:APPS, object_type:TABLE, fnd_design_data:FND.IBY_DOCS_IN_PMT_GT, object_name:IBY_DOCS_IN_PMT_GT, status:VALID,
-
VIEW: APPS.IBY_EXT_FD_DOC_1_0_VT
12.1.1
owner:APPS, object_type:VIEW, object_name:IBY_EXT_FD_DOC_1_0_VT, status:VALID,
-
VIEW: APPS.ECE_PYO_INVOICE_V
12.2.2
-
VIEW: APPS.IBY_EXT_FD_DOC_1_0_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:IBY.IBY_EXT_FD_DOC_1_0_V, object_name:IBY_EXT_FD_DOC_1_0_V, status:VALID,
-
View: CE_DOCUMENTS_PAYABLE
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:CE.CE_DOCUMENTS_PAYABLE, object_name:CE_DOCUMENTS_PAYABLE, status:VALID, product: CE - Cash Management , implementation_dba_data: APPS.CE_DOCUMENTS_PAYABLE ,
-
View: CE_DOCUMENTS_PAYABLE
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:CE.CE_DOCUMENTS_PAYABLE, object_name:CE_DOCUMENTS_PAYABLE, status:VALID, product: CE - Cash Management , implementation_dba_data: APPS.CE_DOCUMENTS_PAYABLE ,
-
VIEW: APPS.IBY_DOCS_PAYABLE_SEC_V
12.2.2
-
VIEW: APPS.IBY_DOCS_PAYABLE_SEC_V
12.1.1
-
VIEW: APPS.IBY_EXT_FD_PMT_1_0_VT
12.1.1
owner:APPS, object_type:VIEW, object_name:IBY_EXT_FD_PMT_1_0_VT, status:VALID,
-
VIEW: APPS.IBY_EXT_FD_PMT_1_0_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:IBY.IBY_EXT_FD_PMT_1_0_V, object_name:IBY_EXT_FD_PMT_1_0_V, status:VALID,
-
VIEW: IBY.IBY_GEN_DOCS_PAYABLE#
12.2.2
owner:IBY, object_type:VIEW, object_name:IBY_GEN_DOCS_PAYABLE#, status:VALID,
-
VIEW: APPS.IBY_EXT_FD_PMT_1_0_VT
12.2.2
owner:APPS, object_type:VIEW, object_name:IBY_EXT_FD_PMT_1_0_VT, status:VALID,
-
VIEW: APPS.IBY_EXT_FD_DOC_1_0_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:IBY.IBY_EXT_FD_DOC_1_0_V, object_name:IBY_EXT_FD_DOC_1_0_V, status:VALID,
-
VIEW: APPS.IBY_EXT_FD_PMT_1_0_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:IBY.IBY_EXT_FD_PMT_1_0_V, object_name:IBY_EXT_FD_PMT_1_0_V, status:VALID,
-
TABLE: IBY.IBY_DOCS_PAYABLE_GT
12.1.1
owner:IBY, object_type:TABLE, fnd_design_data:IBY.IBY_DOCS_PAYABLE_GT, object_name:IBY_DOCS_PAYABLE_GT, status:VALID,
-
VIEW: APPS.CE_DOCUMENTS_PAYABLE
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:CE.CE_DOCUMENTS_PAYABLE, object_name:CE_DOCUMENTS_PAYABLE, status:VALID,
-
VIEW: APPS.IBY_EXT_FD_DOC_1_0_VT
12.2.2
owner:APPS, object_type:VIEW, object_name:IBY_EXT_FD_DOC_1_0_VT, status:VALID,
-
TABLE: APPS.IBY_PYO_INVOICE_GT
12.2.2
owner:APPS, object_type:TABLE, fnd_design_data:IBY.IBY_PYO_INVOICE_GT, object_name:IBY_PYO_INVOICE_GT, status:VALID,
-
VIEW: APPS.IBY_DOCS_PAYABLE_SEC_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:IBY.IBY_DOCS_PAYABLE_SEC_V, object_name:IBY_DOCS_PAYABLE_SEC_V, status:VALID,
-
VIEW: IBY.IBY_DOCUMENTS_PAYABLE_H#
12.2.2
owner:IBY, object_type:VIEW, object_name:IBY_DOCUMENTS_PAYABLE_H#, status:VALID,
-
VIEW: APPS.IBY_DOCS_PAYABLE_SEC_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:IBY.IBY_DOCS_PAYABLE_SEC_V, object_name:IBY_DOCS_PAYABLE_SEC_V, status:VALID,
-
TABLE: IBY.IBY_DOCS_PAYABLE_GT
12.2.2
owner:IBY, object_type:TABLE, fnd_design_data:IBY.IBY_DOCS_PAYABLE_GT, object_name:IBY_DOCS_PAYABLE_GT, status:VALID,
-
VIEW: APPS.IBY_FD_DOCS_PAYABLE_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:IBY.IBY_FD_DOCS_PAYABLE_V, object_name:IBY_FD_DOCS_PAYABLE_V, status:VALID,
-
VIEW: APPS.AP_DOCUMENTS_PAYABLE
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:SQLAP.AP_DOCUMENTS_PAYABLE, object_name:AP_DOCUMENTS_PAYABLE, status:VALID,
-
VIEW: APPS.IBY_FD_DOCS_PAYABLE_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:IBY.IBY_FD_DOCS_PAYABLE_V, object_name:IBY_FD_DOCS_PAYABLE_V, status:VALID,
-
View: IBY_FD_DOCS_PAYABLE_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:IBY.IBY_FD_DOCS_PAYABLE_V, object_name:IBY_FD_DOCS_PAYABLE_V, status:VALID, product: IBY - Payments , implementation_dba_data: APPS.IBY_FD_DOCS_PAYABLE_V ,
-
View: IBY_FD_DOCS_PAYABLE_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:IBY.IBY_FD_DOCS_PAYABLE_V, object_name:IBY_FD_DOCS_PAYABLE_V, status:VALID, product: IBY - Payments , implementation_dba_data: APPS.IBY_FD_DOCS_PAYABLE_V ,
-
View: IBY_EXT_FD_DOC_1_0_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:IBY.IBY_EXT_FD_DOC_1_0_V, object_name:IBY_EXT_FD_DOC_1_0_V, status:VALID, product: IBY - Payments , implementation_dba_data: APPS.IBY_EXT_FD_DOC_1_0_V ,
-
View: IBY_EXT_FD_DOC_1_0_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:IBY.IBY_EXT_FD_DOC_1_0_V, object_name:IBY_EXT_FD_DOC_1_0_V, status:VALID, product: IBY - Payments , implementation_dba_data: APPS.IBY_EXT_FD_DOC_1_0_V ,