PO_UOM_UPDPO_V1

(SQL View)
Index Back

Update PO Detail Table

Update PO Detail Table for the Update PO Conversion Rate page.

SELECT A.BUSINESS_UNIT , A.PO_ID , B.LINE_NBR , E.SCHED_NBR , B.ITM_SETID , B.INV_ITEM_ID , A.VENDOR_SETID , A.VENDOR_ID , A.VNDR_LOC , B.UNIT_OF_MEASURE , D.EFFDT , A.PO_DT , B.CNTRCT_SETID , B.CNTRCT_ID , B.PRICE_DT_TYPE , E.PRICE_PO , E.DUE_DT , F.UNIT_MEASURE_STD , E.CONVERSION_RATE , D.CONVERSION_RATE , E.QTY_PO FROM PS_PO_HDR A , PS_PO_LINE B , PS_PO_LINE_SHIP E , PS_ITM_VNDR_UOMCHG D , PS_MASTER_ITEM_TBL F WHERE A.BUSINESS_UNIT = B.BUSINESS_UNIT AND A.PO_ID = B.PO_ID AND PO_STATUS NOT IN ('I', 'C', 'X') AND B.BUSINESS_UNIT = E.BUSINESS_UNIT AND B.PO_ID = E.PO_ID AND B.LINE_NBR = E.LINE_NBR AND D.SETID = B.ITM_SETID AND D.INV_ITEM_ID = B.INV_ITEM_ID AND D.VENDOR_SETID = A.VENDOR_SETID AND D.VENDOR_ID = A.VENDOR_ID AND D.VNDR_LOC = A.VNDR_LOC AND D.UNIT_OF_MEASURE = B.UNIT_OF_MEASURE AND D.CONVERSION_RATE <> E.CONVERSION_RATE AND F.SETID = B.ITM_SETID AND F.INV_ITEM_ID = B.INV_ITEM_ID

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
2 PO_ID Character(10) VARCHAR2(10) NOT NULL Purchase Order
3 LINE_NBR Number(5,0) INTEGER NOT NULL Line Number: 11/24/08 - Added TARGET label [PC product]
4 SCHED_NBR Number(3,0) SMALLINT NOT NULL Schedule Number
5 ITM_SETID Character(5) VARCHAR2(5) NOT NULL Item SetID
6 INV_ITEM_ID Character(18) VARCHAR2(18) NOT NULL Item ID
7 VENDOR_SETID Character(5) VARCHAR2(5) NOT NULL Vendor SetID
8 VENDOR_ID Character(10) VARCHAR2(10) NOT NULL Vendor Identifier
9 VNDR_LOC Character(10) VARCHAR2(10) NOT NULL Vendor Location
10 UNIT_OF_MEASURE Character(3) VARCHAR2(3) NOT NULL Used on an approval rule set.
MHR=Muti Hourly
PER=Percentage
SQF=Square Footage
11 EFFDT Date(10) DATE Effective Date

Default Value: %date

12 PO_DT Date(10) DATE Date
13 CNTRCT_SETID Character(5) VARCHAR2(5) NOT NULL SetID
14 CNTRCT_ID Character(25) VARCHAR2(25) NOT NULL Buying Agreement ID
15 PRICE_DT_TYPE Character(1) VARCHAR2(1) NOT NULL Date to Use for Prices
D=Due Date
P=PO Date
16 PRICE_PO Signed Number(17,5) DECIMAL(15,5) NOT NULL Purchase Order Price
17 DUE_DT Date(10) DATE Specifies the date that a transaction is due. It is a generic field used in multiple PeopleSoft applications including Receivables Payables and Purchasing. For example it represents the date that payment is due for a voucher or the date that a scheduled shipment is due to be received.
18 UNIT_MEASURE_STD Character(3) VARCHAR2(3) NOT NULL Standard Unit of Measure
19 CONVERSION_RATE Signed Number(17,8) DECIMAL(15,8) NOT NULL Conversion Rate
20 CONVERSION_RATE1 Signed Number(17,8) DECIMAL(15,8) NOT NULL Req UOM conversion rate
21 QTY_PO Number(16,4) DECIMAL(15,4) NOT NULL Purchase Order Quantity