Professional Documents
Culture Documents
Document 1916690.1
APPLIES TO:
Oracle Purchasing - Version 12.1.3 to 12.1.3 [Release 12.1]
Information in this document applies to any platform.
ABSTRACT
Public API PO_REQUISITION_UPDATE_PUB is the implementation of the enhancement request 17261133 which
allowing user to perform update operation on Requisition Header, Line and Distribution. It allows update on requisition
that is in INCOMPLETE or APPROVED status and it hasn't attached to Purchase Order.
HISTORY
Author : TC Cheng
Create Date : 12-AUG-2014
Update Date : 24-AUG-2014
Expire Date :
DETAILS
Patch and Source Files
Functionality of public API PO_REQUISITION_UPDATE_PUB can be obtained via application of patch
17261133:R12.PO.B and the API is currently available to 12.1.3 ONLY.
Patch 17261133:R12.PO.B will deliver following source files and packages
POXRQUPBS.pls and POXRQUPB.pls (Package PO_REQUISITION_UPDATE_PUB)
POXRQUPVTS.pls and POXRQUPVTB.pls (Package PO_REQUISITION_UPDATE_PVT)
POXRQVLS.pls and POXRQVLB.pls (Package PO_REQUISITION_VALIDATE_PVT)
Only Package PO_REQUISITION_UPDATE_PUB is classified as PUBLIC API, and rest of packages are classified as
PRIVATE API and they are reserved for Oracle Internal usage.
https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=14ua1wy23f_115&id=1916690.1
1/16
9/23/2014
Document 1916690.1
Column
PO_REQUISITION_HEADERS_ALL summary_flag
Table
Column
PO_REQUISITION_LINES_ALL reference_num
enabled_flag
rfq_required_flag
end_date_active
to_person_id
description
line_type_id
note_to_authorizer
item_description
attribute_category
unit_meas_lookup_code
attribute1
unit_price
attribute2
base_unit_price
attribute3
quantity
attribute4
amount
attribute5
source_type_code
attribute6
suggested_buyer_id
attribute7
document_type_code
attribute8
blanket_po_header_id
attribute9
blanket_po_line_num
attribute10
currency_code
attribute11
rate_type
attribute12
rate_date
attribute13
rate
attribute14
currency_unit_price
attribute15
currency_amount
government_context
un_number_id
authorization_status
hazard_class_id
source_organization_id
source_subinventory
destination_type_code
destination_organization_id
destination_subinventory
secondary_quantity
vendor_id
vendor_site_id
https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=14ua1wy23f_115&id=1916690.1
2/16
9/23/2014
Document 1916690.1
vendor_contact_id
preferred_grade
secondary_unit_of_measure
transaction_reason_code
order_type_lookup_code
org_id
justification
note_to_agent
need_by_date
note_to_receiver
urgent_flag
suggested_vendor_product_code
deliver_to_location_id
oke_contract_header_id
attribute1
attribute2
attribute3
attribute4
attribute5
attribute6
attribute7
attribute8
attribute9
attribute10
attribute11
attribute12
attribute13
attribute14
attribute15
category_id
Flow Charts
(see Attachments section below)
https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=14ua1wy23f_115&id=1916690.1
3/16
9/23/2014
Document 1916690.1
PO_REQUISITION_UPDATE_PUB.
Column / Element
Description
req_hdr
Mantatory Columns (not
updatable)
Updatable Columns
requisition_header_id requisition_header_id
OR segment1 is
Mandatory
segment1
requisition_header_id
OR segment1 is
Mandatory
org_id
operating unit id
summary_flag
Summary flag of
Requisition Header
enabled_flag
Enable flag of
Requisition Header
segment2
segment3
segment4
segment5
start_date_active
end_date_active
https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=14ua1wy23f_115&id=1916690.1
4/16
9/23/2014
Document 1916690.1
PO_REQUISITION_UPDATE_PUB.
description
Description of
Requisition Header
note_to_authorizer
Note to approver
attribute_category
attribute1
attribute2
attribute3
attribute4
attribute5
attribute6
attribute7
attribute8
attribute9
attribute10
attribute11
attribute12
attribute13
attribute14
attribute15
government_context
USSGL descriptive
flexfield context
column
authorization_status
Authorization status
of the Requisition
submit_for_approval
note_to_approver
To be Clarified with
Development
error_message
Column / Element
Description
req_line_rec_type
Mantatory Columns (not
requisition_number
Either requisition_header_id or
https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=14ua1wy23f_115&id=1916690.1
5/16
9/23/2014
Document 1916690.1
updatable)
Optional Columns
requisition_number is mandatory
requisition_header_id
Either requisition_header_id or
requisition_number is mandatory
requisition_line_num
Either requisition_line_id or
requisition_line_num is mandatory
requisition_line_id
Either requisition_line_id or
requisition_line_num is mandatory
org_id
Operating Unit ID
suggested_buyer_name
blanket_po_number
un_number
hazard_class
source_organization_name
suggested_vendor_name
suggested_vendor_location
suggested_vendor_contact
suggested_vendor_phone
requestor_name
deliver_to_location_code
line_type
contract_number
https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=14ua1wy23f_115&id=1916690.1
6/16
9/23/2014
Document 1916690.1
OKC_K_HEADERS_B
destination_organization
item_id
item_revision
item_number
reference_num
Reference Number
rfq_required_flag
to_person_id
line_type_id
item_description
unit_meas_lookup_code
unit_price
base_unit_price
quantity
Ordered quantity
amount
source_type_code
suggested_buyer_id
document_type_code
blanket_po_header_id
blanket_po_line_num
currency_code
rate_type
rate_date
rate
currency_unit_price
currency_amount
https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=14ua1wy23f_115&id=1916690.1
7/16
9/23/2014
Document 1916690.1
Requisition line
un_number_id
hazard_class_id
source_organizaiton_id
source_subinventory
destination_type_code
destination_organizaiton_id
destination_subinventory
Destination subinventory of
requisition line
secondary_quantity
Secondary quantity
vendor_id
vendor_site_id
vendor_contact_id
research_agent_id
on_line_flag
preferred_grade
secondary_uom_code
Secondary UOM
transaction_reason_code
Transaction Reason
order_type_lookup_code
Order type
justification
Justification
note_to_agent
Note to Buyer
need_by_date
note_to_receiver
Note to Deliverer
urgent_flag
Urgent flag
suggested_vendor_product_code
deliver_to_location_id
oke_contract_header_id
attribute1
attribute2
https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=14ua1wy23f_115&id=1916690.1
8/16
9/23/2014
Document 1916690.1
attribute3
attribute4
attribute5
attribute6
attribute7
attribute8
attribute9
attribute10
attribute11
attribute12
attribute13
attribute14
attribute15
category_id
rebuild_accounts
item_category
manufacturer_part_number
manufacturer_name
manufacturer_id
destination_type
deliver_to_location
source_type
negotiated_by_preparer
error_message
submit_for_approval
https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=14ua1wy23f_115&id=1916690.1
9/16
9/23/2014
Document 1916690.1
usage>
note_to_approver
authorization_status
action_flag
Parameter
Remark
IN
p_init_msg_list
T(Ture) OR F (False).
Default is T. Debug
messages will be logged
if the parameter was set
to T.
IN
p_commit
IN
p_submit_approval
Y or N. System will
submit the Requisition for
approval if the parameter
was set to Y.
IN
p_req_hdr
"Collection Type"
variables for storing
Requisition Header data
IN
p_req_line_tbl
"Collection Type"
variables for storing
Requisition Line data
IN
p_req_dist_tbl
"Collection Type"
variables for storing
Requisition Distribution
data
https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=14ua1wy23f_115&id=1916690.1
10/16
9/23/2014
Document 1916690.1
OUT
x_return_status
Return S (Sucess) OR E
(Error). Indicating the
API completed with
success or error.
OUT
x_msg_count
OUT
x_msg_data
Example
Example of using PO_REQUISIITON_UPDATE_PUB.update_requisition to update Requisition's Item Description,
Quantity and Deliver-to Location via PL/SQL script.
https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=14ua1wy23f_115&id=1916690.1
11/16
9/23/2014
Document 1916690.1
https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=14ua1wy23f_115&id=1916690.1
12/16
9/23/2014
Document 1916690.1
https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=14ua1wy23f_115&id=1916690.1
13/16
9/23/2014
Document 1916690.1
14/16
9/23/2014
Document 1916690.1
- x_return_status
- x_msg_count
- x_msg_data
API will also record further debug detail in PO_INTERFACE_ERROS table with
-
interface_type = REQ_UPDATE
table_name = PO_REQUISITION_HEADERS or PO_REQUISITION_LINES or PO_REQ_DISTRIBUTIONS
interface_header_id = PO_REQUISITION_HEADERS_ALL.requisition_header_id
interface_line_id = PO_REQUISITION_LINES_ALL.requisition_line_id
interface_distribution_id = PO_REQ_DISTRIBUTIONS_ALL.distribution_id
column_name = Indicates column OR process that failed in validation
error_message = Stores the validation failure message if any
https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=14ua1wy23f_115&id=1916690.1
15/16
9/23/2014
Document 1916690.1
https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=14ua1wy23f_115&id=1916690.1
16/16