IN_SDA_PO_VW1

(SQL View)
Index Back

Sup/Dmd Dbrd: PO, Not Rcvd

Incoming PO receipts, not received yet. (Not used for PAR analytic)

SELECT D.BUSINESS_UNIT_IN , D.BUSINESS_UNIT_IN , D.BUSINESS_UNIT , D.PO_ID , D.LINE_NBR , D.SCHED_NBR , D.QTY_PO , D.QTY_PO_STD_EXP , D.MERCHANDISE_AMT , D.MERCH_AMT_BSE , D.CURRENCY_CD , D.CURRENCY_CD_BASE , D.PEG_STATUS , D.DISTRIB_LN_STATUS , L.INV_ITEM_ID , L.INV_ITEM_ID , L.UNIT_OF_MEASURE , S.DUE_DT , H.PO_STATUS , H.VENDOR_ID , H.VNDR_LOC , V.NAME1 , M.INV_ITEM_GROUP , M.INV_PROD_FAM_CD , M.UNIT_MEASURE_STD , CASE WHEN R.QTY_DS_ACCPT_SUOM IS NULL THEN 0 ELSE R.QTY_DS_ACCPT_SUOM END , '10' 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_VENDOR V ON V.SETID = H.VENDOR_SETID AND V.VENDOR_ID = H.VENDOR_ID 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 LEFT OUTER JOIN PS_ATP_RECVQTY_VW R ON R.BUSINESS_UNIT_PO = D.BUSINESS_UNIT AND R.PO_ID = D.PO_ID AND R.LINE_NBR = D.LINE_NBR AND R.SCHED_NBR = D.SCHED_NBR

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
2 BUSINESS_UNIT_IN Character(5) VARCHAR2(5) NOT NULL Inventory Unit
3 BUSINESS_UNIT_PO Character(5) VARCHAR2(5) NOT NULL PO Business Unit
4 PO_ID Character(10) VARCHAR2(10) NOT NULL Purchase Order
5 LINE_NBR Number(5,0) INTEGER NOT NULL Line Number: 11/24/08 - Added TARGET label [PC product]
6 SCHED_NBR Number(3,0) SMALLINT NOT NULL Schedule Number
7 QTY_REQUESTED Signed Number(17,4) DECIMAL(15,4) NOT NULL Qty Requested
8 QTY_REQUESTED_BASE Signed Number(17,4) DECIMAL(15,4) NOT NULL Qty Requested Base
9 MERCHANDISE_AMT Signed Number(28,3) DECIMAL(26,3) NOT NULL Merchandise Amt F_KDHIL_R87H8 062804 MLM: Added new Line Amount Received Label
10 MERCH_AMT_BSE Signed Number(28,3) DECIMAL(26,3) NOT NULL Base Merchandise Amount
11 CURRENCY_CD2 Character(3) VARCHAR2(3) NOT NULL Currency Code
12 CURRENCY_CD_BASE Character(3) VARCHAR2(3) NOT NULL Business Unit Base Currency
13 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

14 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
15 INV_ITEM_ID Character(18) VARCHAR2(18) NOT NULL Item ID
16 INV_ITEM_ID_PO Character(18) VARCHAR2(18) NOT NULL Item Number PO
17 UNIT_OF_MEASURE Character(3) VARCHAR2(3) NOT NULL Used on an approval rule set.
MHR=Muti Hourly
PER=Percentage
SQF=Square Footage
18 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.
19 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
20 VENDOR_ID Character(10) VARCHAR2(10) NOT NULL Vendor Identifier
21 VNDR_LOC Character(10) VARCHAR2(10) NOT NULL Vendor Location
22 NAME1 Character(40) VARCHAR2(40) NOT NULL Name 1
23 INV_ITEM_GROUP2 Character(15) VARCHAR2(15) NOT NULL Item Group
24 INV_PROD_FAM_CD2 Character(10) VARCHAR2(10) NOT NULL Item Family
25 UNIT_MEASURE_STD2 Character(3) VARCHAR2(3) NOT NULL Standard UOM
26 QTY_RECV_BASE Signed Number(17,4) DECIMAL(15,4) NOT NULL Qty Received
27 SUPPLY_SOURCE Character(2) VARCHAR2(2) NOT NULL Supply Source
10=PO, Not Received
20=No PO, Recvd, Not Staged
30=Staged in Staged_inf_inv
40=Staged in Staged_item_inv
IN=Inventory - MSRs
PO=Purchase Orders
PR=Requisitions