IN_SDA_QRYPO_VW

(SQL View)
Index Back

Sup/Dmd Dbrd PO, Not Rcvd

Purchase Orders not received...used in query for the PO Not Received pivot grid.

SELECT D.BUSINESS_UNIT_IN , D.BUSINESS_UNIT , D.PO_ID , D.LINE_NBR , D.SCHED_NBR , D.QTY_PO_STD_EXP , D.MERCH_AMT_BSE , D.CURRENCY_CD_BASE , D.PEG_STATUS , D.DISTRIB_LN_STATUS , L.INV_ITEM_ID , S.DUE_DT , H.PO_STATUS , H.VENDOR_ID , H.VNDR_LOC , M.INV_ITEM_GROUP , M.INV_PROD_FAM_CD , M.UNIT_MEASURE_STD FROM PS_PO_LINE_DISTRIB D JOIN PS_PO_LINE_SHIP S ON %Join(COMMON_KEYS, PO_LINE_DISTRIB D, PO_LINE_SHIP S) AND D.BUSINESS_UNIT_IN <> ' ' AND D.DISTRIB_LN_STATUS IN ('O' ,'P') AND S.CANCEL_STATUS = 'A' AND S.PRODUCTION_ID = ' ' JOIN PS_PO_LINE L ON %Join(COMMON_KEYS, PO_LINE_DISTRIB D, PO_LINE L) AND L.CANCEL_STATUS = 'A' JOIN PS_PO_HDR H ON %Join(COMMON_KEYS, PO_LINE_DISTRIB D, PO_HDR H) AND H.PO_TYPE <> 'KAN' AND H.PO_STATUS IN ('O' ,'PA' ,'A' ,'D') JOIN PS_SET_CNTRL_REC C ON C.SETCNTRLVALUE = L.BUSINESS_UNIT AND C.RECNAME = 'MASTER_ITEM_TBL' JOIN PS_MASTER_ITEM_TBL M ON M.SETID = C.SETID AND M.INV_ITEM_ID = L.INV_ITEM_ID

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BUSINESS_UNIT_IN Character(5) VARCHAR2(5) NOT NULL Inventory Unit
2 BUSINESS_UNIT_PO Character(5) VARCHAR2(5) NOT NULL PO Business Unit
3 PO_ID Character(10) VARCHAR2(10) NOT NULL Purchase Order
4 LINE_NBR Number(5,0) INTEGER NOT NULL Line Number: 11/24/08 - Added TARGET label [PC product]
5 SCHED_NBR Number(3,0) SMALLINT NOT NULL Schedule Number
6 QTY_REQUESTED_BASE Signed Number(17,4) DECIMAL(15,4) NOT NULL Qty Requested Base
7 MERCH_AMT_BSE Signed Number(28,3) DECIMAL(26,3) NOT NULL Base Merchandise Amount
8 CURRENCY_CD_BASE Character(3) VARCHAR2(3) NOT NULL Business Unit Base Currency
9 PEG_STATUS Character(2) VARCHAR2(2) NOT NULL 07/21/04 EGS: Created
10=Open
20=Completed
30=Canceled
40=Not Pegged

Default Value: 40

10 DISTRIB_LN_STATUS Character(1) VARCHAR2(1) NOT NULL Distribution Line Status
C=Closed
M=Mass Liquidated
O=Open
P=Unavailable for Sourcing
X=Canceled
11 INV_ITEM_ID Character(18) VARCHAR2(18) NOT NULL Item ID
12 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.
13 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
14 VENDOR_ID Character(10) VARCHAR2(10) NOT NULL Vendor Identifier
15 VNDR_LOC Character(10) VARCHAR2(10) NOT NULL Vendor Location
16 INV_ITEM_GROUP Character(15) VARCHAR2(15) NOT NULL Item Group
17 INV_PROD_FAM_CD Character(10) VARCHAR2(10) NOT NULL Family
18 UNIT_MEASURE_STD Character(3) VARCHAR2(3) NOT NULL Standard Unit of Measure