Search Results po_headers_archive_xml
Overview
APPS.PO_HEADERS_ARCHIVE_XML is a Purchasing (PO) module view in Oracle E-Business Suite 12.1.1 and 12.2.2. It exposes a denormalized, XML-oriented projection of archived purchasing document headers, drawing from PO_HEADERS_ARCHIVE_ALL and joining reference, vendor, currency, and buyer information. Its principal role is to serve as the data source for Oracle Purchasing's XML document generation and communication routines — particularly the archived/revised versions of purchase orders, blanket agreements, and contracts that must be rendered into XML for printing, e-mail, EDI, or fax transmission to suppliers.
The view is structured to present header-level information in a format readily consumable by the PO communication layer (PO_COMMUNICATION_PVT) and by XML Publisher / BI Publisher templates. Because it reflects the archive tables, it captures point-in-time snapshots of documents as they existed at each revision, which is essential for auditability and for regenerating documents historically.
Underlying Base Objects
The view is owned by APPS and is defined over the following documented base objects:
PO_HEADERS_ARCHIVE_ALL(synonym) — the primary archived header table, supplying document type, segment, revision, dates, amounts, flags, and note-to-vendor fields.PER_ALL_PEOPLE_F(synonym) — resolves the current document buyer's first name, last name, and title viaAGENT_ID.PO_AGENTS(synonym) — supports buyer identification across archive revisions.FND_CURRENCIES_TL,AP_TERMS,FND_LOOKUP_VALUES,FND_TERRITORIES_TL,HR_LOOKUPS,ORG_FREIGHT_TL,PO_DOC_STYLE_LINES_TL— reference data for currency, payment terms, lookups (FOB, freight terms), territories, and document styles.PO_VENDORS,PO_VENDOR_SITES_ALL,PO_VENDOR_CONTACTS(views) — supplier name, number, and address components.PO_COMMUNICATION_PVT,PO_CORE_S,FND_GLOBAL,HR_API(packages) — PL/SQL functions invoked directly within the view text, includingGETARCBUYERAGENTID,GETARCBUYERFNAME,GETARCBUYERLNAME,GETARCBUYERTITLE, andGETFORMATMASK.
The heavy use of packaged functions means the view is context-sensitive and can raise errors if session context (e.g., FND_GLOBAL initialization) is not set.
Key Columns
- Document identifiers:
TYPE_LOOKUP_CODE,SEGMENT1,REVISION_NUM,PRINT_COUNT. - Date columns (all formatted as
DD-MON-YYYY HH24:MI:SS):CREATION_DATE,PRINTED_DATE,REVISED_DATE,START_DATE,END_DATE,ACCEPTANCE_DUE_DATE. - Buyer information:
DOCUMENT_BUYER_FIRST_NAME,DOCUMENT_BUYER_LAST_NAME,DOCUMENT_BUYER_TITLE,DOCUMENT_BUYER_AGENT_ID, and the conditionalARCHIVE_BUYER_*columns derived fromPO_COMMUNICATION_PVT. - Financial:
AMOUNT_AGREED,CURRENCY_CODE,CURRENCY_NAME,RATE,PAYMENT_TERMS,FOB,FREIGHT_TERMS,SHIP_VIA. - Supplier:
VENDOR_NUM,VENDOR_NAME,CUSTOMER_NUM, plus address fieldsVENDOR_ADDRESS_LINE1/2/3,VENDOR_CITY,VENDOR_STATE,VENDOR_POSTAL_CODE. - Flags:
CANCEL_FLAG,CONFIRMING_ORDER_FLAG,ACCEPTANCE_REQUIRED_FLAG.
Common Use Cases and Queries
Typical uses include regenerating archived PO documents as XML, auditing field-level changes across revisions, and building custom BI Publisher reports against archived headers. Notably, the vendor_area_code field a user may search for is not exposed as a distinct column in this view's documented text; telephone area code is typically stored on vendor site/contact tables rather than the archived header.
- Retrieve recent archived headers for a supplier:
SELECT h.segment1, h.revision_num, h.creation_date,
h.vendor_name, h.currency_code, h.amount_agreed
FROM apps.po_headers_archive_xml h
WHERE h.vendor_num = '&vendor_num'
ORDER BY h.creation_date DESC;
- List archived buyers for revised documents only:
SELECT h.segment1, h.revision_num,
h.document_buyer_first_name, h.document_buyer_last_name,
h.archive_buyer_first_name, h.archive_buyer_last_name
FROM apps.po_headers_archive_xml h
WHERE NVL(h.revision_num,0) <> 0;
Because the view calls PO_COMMUNICATION_PVT and FND_GLOBAL, queries should be executed in an application-initialized session (or via concurrent programs) to avoid function errors.
-
View: PO_HEADERS_ARCHIVE_XML
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:PO.PO_HEADERS_ARCHIVE_XML, object_name:PO_HEADERS_ARCHIVE_XML, status:VALID, product: PO - Purchasing , implementation_dba_data: APPS.PO_HEADERS_ARCHIVE_XML ,
-
View: PO_HEADERS_ARCHIVE_XML
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:PO.PO_HEADERS_ARCHIVE_XML, object_name:PO_HEADERS_ARCHIVE_XML, status:VALID, product: PO - Purchasing , implementation_dba_data: APPS.PO_HEADERS_ARCHIVE_XML ,
-
PACKAGE: APPS.PO_COMMUNICATION_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:PO_COMMUNICATION_PVT, status:VALID,
-
SYNONYM: APPS.PO_DOC_STYLE_LINES_TL
12.1.1
owner:APPS, object_type:SYNONYM, object_name:PO_DOC_STYLE_LINES_TL, status:VALID,
-
SYNONYM: APPS.PO_DOC_STYLE_LINES_TL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:PO_DOC_STYLE_LINES_TL, status:VALID,
-
SYNONYM: APPS.ORG_FREIGHT_TL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:ORG_FREIGHT_TL, status:VALID,
-
PACKAGE: APPS.PO_COMMUNICATION_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:PO_COMMUNICATION_PVT, status:VALID,
-
SYNONYM: APPS.ORG_FREIGHT_TL
12.1.1
owner:APPS, object_type:SYNONYM, object_name:ORG_FREIGHT_TL, status:VALID,
-
SYNONYM: APPS.FND_CURRENCIES_TL
12.1.1
owner:APPS, object_type:SYNONYM, object_name:FND_CURRENCIES_TL, status:VALID,
-
SYNONYM: APPS.PO_AGENTS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:PO_AGENTS, status:VALID,
-
SYNONYM: APPS.PO_AGENTS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:PO_AGENTS, status:VALID,
-
SYNONYM: APPS.PO_HEADERS_ARCHIVE_ALL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:PO_HEADERS_ARCHIVE_ALL, status:VALID,
-
SYNONYM: APPS.PO_HEADERS_ARCHIVE_ALL
12.1.1
owner:APPS, object_type:SYNONYM, object_name:PO_HEADERS_ARCHIVE_ALL, status:VALID,
-
SYNONYM: APPS.FND_CURRENCIES_TL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:FND_CURRENCIES_TL, status:VALID,
-
SYNONYM: APPS.AP_TERMS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:AP_TERMS, status:VALID,
-
12.1.1 DBA Data
12.1.1
-
SYNONYM: APPS.AP_TERMS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:AP_TERMS, status:VALID,
-
12.2.2 DBA Data
12.2.2
-
SYNONYM: APPS.FND_TERRITORIES_TL
12.1.1
owner:APPS, object_type:SYNONYM, object_name:FND_TERRITORIES_TL, status:VALID,
-
SYNONYM: APPS.FND_TERRITORIES_TL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:FND_TERRITORIES_TL, status:VALID,
-
12.2.2 FND Design Data
12.2.2
-
PACKAGE: APPS.PO_CORE_S
12.1.1
owner:APPS, object_type:PACKAGE, object_name:PO_CORE_S, status:VALID,
-
12.1.1 FND Design Data
12.1.1
-
VIEW: APPS.PO_VENDOR_CONTACTS
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:SQLAP.PO_VENDOR_CONTACTS, object_name:PO_VENDOR_CONTACTS, status:VALID,
-
VIEW: APPS.PO_VENDOR_CONTACTS
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:SQLAP.PO_VENDOR_CONTACTS, object_name:PO_VENDOR_CONTACTS, status:VALID,
-
PACKAGE: APPS.PO_CORE_S
12.2.2
owner:APPS, object_type:PACKAGE, object_name:PO_CORE_S, status:VALID,
-
APPS.PO_COMMUNICATION_PVT SQL Statements
12.1.1
-
VIEW: APPS.PO_VENDOR_SITES_ALL
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:SQLAP.PO_VENDOR_SITES_ALL, object_name:PO_VENDOR_SITES_ALL, status:VALID,
-
APPS.PO_COMMUNICATION_PVT SQL Statements
12.2.2
-
VIEW: APPS.PO_VENDOR_SITES_ALL
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:SQLAP.PO_VENDOR_SITES_ALL, object_name:PO_VENDOR_SITES_ALL, status:VALID,
-
VIEW: APPS.PO_HEADERS_ARCHIVE_XML
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:PO.PO_HEADERS_ARCHIVE_XML, object_name:PO_HEADERS_ARCHIVE_XML, status:VALID,
-
VIEW: APPS.PO_HEADERS_ARCHIVE_XML
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:PO.PO_HEADERS_ARCHIVE_XML, object_name:PO_HEADERS_ARCHIVE_XML, status:VALID,
-
APPS.PO_COMMUNICATION_PVT dependencies on PO_COMMUNICATION_GT
12.1.1
-
APPS.PO_COMMUNICATION_PVT dependencies on PO_COMMUNICATION_GT
12.2.2
-
SYNONYM: APPS.FND_LOOKUP_VALUES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:FND_LOOKUP_VALUES, status:VALID,
-
SYNONYM: APPS.FND_LOOKUP_VALUES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:FND_LOOKUP_VALUES, status:VALID,
-
APPS.PO_COMMUNICATION_PVT dependencies on PO_LINES_ARCHIVE_ALL
12.1.1
-
VIEW: APPS.PO_VENDORS
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:SQLAP.PO_VENDORS, object_name:PO_VENDORS, status:VALID,
-
APPS.PO_COMMUNICATION_PVT dependencies on PO_LINES_ARCHIVE_ALL
12.2.2
-
VIEW: APPS.PO_VENDORS
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:SQLAP.PO_VENDORS, object_name:PO_VENDORS, status:VALID,
-
VIEW: APPS.HR_LOOKUPS
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:PER.HR_LOOKUPS, object_name:HR_LOOKUPS, status:VALID,
-
APPS.PO_COMMUNICATION_PVT dependencies on PO_DISTRIBUTIONS_ARCHIVE_ALL
12.1.1
-
APPS.PO_COMMUNICATION_PVT dependencies on PO_DISTRIBUTIONS_ARCHIVE_ALL
12.2.2
-
eTRM - SQLAP Tables and Views
12.2.2
description: Set Distribution Table. ,
-
APPS.PO_COMMUNICATION_PVT dependencies on PO_HEADERS
12.1.1
-
SYNONYM: APPS.PER_ALL_PEOPLE_F
12.1.1
owner:APPS, object_type:SYNONYM, object_name:PER_ALL_PEOPLE_F, status:VALID,
-
APPS.PO_COMMUNICATION_PVT dependencies on PO_HEADERS
12.2.2
-
SYNONYM: APPS.PER_ALL_PEOPLE_F
12.2.2
owner:APPS, object_type:SYNONYM, object_name:PER_ALL_PEOPLE_F, status:VALID,
-
PACKAGE BODY: APPS.PO_COMMUNICATION_PVT
12.1.1
-
eTRM - SQLAP Tables and Views
12.1.1
description: Set Distribution Table. ,