IN_SDA_PPAR_VW

(SQL View)
Index Back

Sup/Dmd Dbrd: Par Loc POs

PAR Replenishment Purchase Orders

SELECT D.BUSINESS_UNIT , D.BUSINESS_UNIT , D.BUSINESS_UNIT , D.PO_ID , D.LINE_NBR , D.SCHED_NBR , D.DISTRIB_LN_STATUS , 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.LOCATION , C.CART_GROUP , L.INV_ITEM_ID , L.INV_ITEM_ID , L.UNIT_OF_MEASURE , S.DUE_DT , H.PO_STATUS , H.BUYER_ID , 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 , 'PO' 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 S.PRODUCTION_ID = ' ' JOIN PS_PO_LINE L ON %Join(COMMON_KEYS, PO_LINE_DISTRIB D, PO_LINE L) JOIN PS_PO_HDR H ON %Join(COMMON_KEYS, PO_LINE_DISTRIB D, PO_HDR H) AND H.PO_STATUS IN ('O' ,'PA' ,'A' ,'D' ,'C') JOIN PS_CART_ATTRIB_INV C ON C.BUSINESS_UNIT = D.BUSINESS_UNIT AND C.BUSINESS_UNIT_PO = D.BUSINESS_UNIT AND C.LOCATION = D.LOCATION JOIN PS_VENDOR V ON V.SETID = H.VENDOR_SETID AND V.VENDOR_ID = H.VENDOR_ID JOIN PS_SET_CNTRL_REC SC ON SC.SETCNTRLVALUE = L.BUSINESS_UNIT AND SC.RECNAME = 'MASTER_ITEM_TBL' JOIN PS_MASTER_ITEM_TBL M ON M.SETID = SC.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 AND D.DISTRIB_LN_STATUS IN ('O' ,'P')

# 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 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
8 QTY_REQUESTED Signed Number(17,4) DECIMAL(15,4) NOT NULL Qty Requested
9 QTY_REQUESTED_BASE Signed Number(17,4) DECIMAL(15,4) NOT NULL Qty Requested Base
10 MERCHANDISE_AMT Signed Number(28,3) DECIMAL(26,3) NOT NULL Merchandise Amt F_KDHIL_R87H8 062804 MLM: Added new Line Amount Received Label
11 MERCH_AMT_BSE Signed Number(28,3) DECIMAL(26,3) NOT NULL Base Merchandise Amount
12 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code
13 CURRENCY_CD_BASE Character(3) VARCHAR2(3) NOT NULL Business Unit Base Currency
14 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

15 LOCATION2 Character(10) VARCHAR2(10) NOT NULL Location Code
16 CART_GROUP2 Character(5) VARCHAR2(5) NOT NULL Par Location Group
17 INV_ITEM_ID_PO Character(18) VARCHAR2(18) NOT NULL Item Number PO
18 INV_ITEM_ID Character(18) VARCHAR2(18) NOT NULL Item ID
19 UNIT_OF_MEASURE Character(3) VARCHAR2(3) NOT NULL Used on an approval rule set.
MHR=Muti Hourly
PER=Percentage
SQF=Square Footage
20 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.
21 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
22 BUYER_ID Character(30) VARCHAR2(30) NOT NULL Buyer
23 VENDOR_ID Character(10) VARCHAR2(10) NOT NULL Vendor Identifier
24 VNDR_LOC Character(10) VARCHAR2(10) NOT NULL Vendor Location
25 NAME1 Character(40) VARCHAR2(40) NOT NULL Name 1
26 INV_ITEM_GROUP2 Character(15) VARCHAR2(15) NOT NULL Item Group
27 INV_PROD_FAM_CD2 Character(10) VARCHAR2(10) NOT NULL Item Family
28 UNIT_MEASURE_STD2 Character(3) VARCHAR2(3) NOT NULL Standard UOM
29 QTY_DS_ACCPT_SUOM Number(16,4) DECIMAL(15,4) NOT NULL Distributed Quantity
30 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