PL_PO_DIST_VW

(SQL View)
Index Back

PL Opt Ld: Tmp Tbl for PO Dist

11/01/01 PCL (CN#PL900-1): Added

SELECT POH.BUSINESS_UNIT , POH.PO_ID , POL.LINE_NBR , POS.SCHED_NBR , POD.DST_ACCT_TYPE , POD.DISTRIB_LINE_NUM , POL.ITM_SETID , POL.INV_ITEM_ID , POL.UNIT_OF_MEASURE , POL.CONFIG_CODE , POS.DUE_DT , POS.DUE_TIME , %DTTM(POS.DUE_DT , POS.DUE_TIME) , PIA.STD_LEAD , %DTTM(%DateAdd(POS.DUE_DT, -PIA.STD_LEAD) , POS.DUE_TIME) , POS.FROZEN_FLG , POS.CANCEL_STATUS , POD.SYSTEM_SOURCE , POD.QTY_PO , POD.QTY_PO , POD.BUSINESS_UNIT_IN , 'Y' , POH.BUYER_ID , ' ' , POH.PO_TYPE , POH.PO_STATUS , POH.PO_DT , POH.VENDOR_SETID , POH.VENDOR_ID , POH.VNDR_LOC FROM PS_PO_LINE_SHIP POS , PS_PO_LINE_DISTRIB POD , PS_PO_LINE POL , PS_PO_HDR POH , PS_PURCH_ITEM_ATTR PIA WHERE POL.BUSINESS_UNIT = POH.BUSINESS_UNIT AND POL.PO_ID = POH.PO_ID AND POS.BUSINESS_UNIT = POL.BUSINESS_UNIT AND POS.PO_ID = POL.PO_ID AND POS.LINE_NBR = POL.LINE_NBR AND POD.BUSINESS_UNIT = POS.BUSINESS_UNIT AND POD.PO_ID = POS.PO_ID AND POD.LINE_NBR = POS.LINE_NBR AND POD.SCHED_NBR = POS.SCHED_NBR AND POH.HOLD_STATUS = 'N' AND POH.PO_TYPE = 'GEN' AND POH.PO_STATUS <> 'X' AND POH.PO_STATUS <> 'PX' AND POL.CANCEL_STATUS = 'A' AND POS.CANCEL_STATUS = 'A' AND POD.DST_ACCT_TYPE = 'DST' AND POD.SYSTEM_SOURCE <> 'SFC' AND PIA.SETID = POL.ITM_SETID AND PIA.INV_ITEM_ID = POL.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 DST_ACCT_TYPE Character(4) VARCHAR2(4) NOT NULL 07/20/04 st: added RCN for Advance Reconciliation 02/16/98 ebn CN#CM800-2.0 : Added for MISC type for Landed Cost Enhancement 11/11/99 llr: Added ADVP for Payables Advance Payment
6 DISTRIB_LINE_NUM Number(5,0) INTEGER NOT NULL Distribution Line
7 ITM_SETID Character(5) VARCHAR2(5) NOT NULL Item SetID
8 INV_ITEM_ID Character(18) VARCHAR2(18) NOT NULL Item ID
9 UNIT_OF_MEASURE Character(3) VARCHAR2(3) NOT NULL Used on an approval rule set.
MHR=Muti Hourly
PER=Percentage
SQF=Square Footage
10 CONFIG_CODE Character(50) VARCHAR2(50) NOT NULL Product Configurator
11 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.
12 DUE_TIME Time(15) TIMESTAMP Due Time
13 DUE_DTTM DateTime(26) TIMESTAMP Due Datetime
14 PL_PO_LEAD_TIME Number(10,0) DECIMAL(10) NOT NULL 11/01/01 PCL (CN#PL900-1): Added
15 PLAN_RELEASE_DTTM DateTime(26) TIMESTAMP Plan Release Date Time
16 FROZEN_FLG Character(1) VARCHAR2(1) NOT NULL Frozen Flag
B=Both
N=No
Y=Yes
17 CANCEL_STATUS Character(1) VARCHAR2(1) NOT NULL Cancel Status
A=Active
C=Closed
D=Denied
H=Hold
O=Open
P=Pending Approval
X=Canceled
18 SYSTEM_SOURCE Character(3) VARCHAR2(3) NOT NULL Identifies the application or source system that generated a journal entry. Release 8.80 - 11/14/2002 - RVlasic - Removed GDM (JrnlGen - Deduction Management) from Translate Values. SUJ---Included a label as Product. Release 8.9 - 05/11/2005 - RVlasic - Added PRV (Variance Pricing) and PKK (KK Budget Journal) and deleted GLK for Project Costing per Brian Cohen.
19 QTY_PO Number(16,4) DECIMAL(15,4) NOT NULL Purchase Order Quantity
20 QTY_PO_STD Number(16,4) DECIMAL(15,4) NOT NULL PO Quantity Standard
21 BUSINESS_UNIT_IN Character(5) VARCHAR2(5) NOT NULL Inventory Unit
22 INCL_QTY_FLG Character(1) VARCHAR2(1) NOT NULL Include Quantity
B=Both
N=No
Y=Yes
23 BUYER_ID Character(30) VARCHAR2(30) NOT NULL Buyer
24 PLANNER_CD Character(12) VARCHAR2(12) NOT NULL Planner Code
25 PO_TYPE Character(4) VARCHAR2(4) NOT NULL PO Type
GEN=General
KAN=Kanban
26 PO_STATUS Character(2) VARCHAR2(2) NOT NULL PO Status
A=Approved
C=Complete
D=Dispatched
DA=Denied
I=Initial
LD=Line Denied
O=Open
PA=Pending Approval/Approved
PX=Pending Cancel
X=Canceled
27 PO_DT Date(10) DATE Date
28 VENDOR_SETID Character(5) VARCHAR2(5) NOT NULL Vendor SetID
29 VENDOR_ID Character(10) VARCHAR2(10) NOT NULL Vendor Identifier
30 VNDR_LOC Character(10) VARCHAR2(10) NOT NULL Vendor Location