IN_SDA_RPAR_VW

(SQL View)
Index Back

Sup/Dmd Dbrd: Par Loc Reqs

Requisitions for Par Location demand. In order to share the same structure as purchase orders, REQ_ID is mapped to PO_ID and REQ_STATUS is mapped to PO_STATUS

SELECT D.BUSINESS_UNIT , D.BUSINESS_UNIT , D.BUSINESS_UNIT , D.REQ_ID , D.LINE_NBR , D.SCHED_NBR , D.DISTRIB_LN_STATUS , D.QTY_REQ , D.QTY_REQ_STD , 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 , L.VENDOR_ID , L.VNDR_LOC , V.NAME1 , S.DUE_DT , CASE WHEN H.REQ_STATUS = 'D' THEN 'DA' ELSE %Substring(H.REQ_STATUS ,1 ,2) END , M.INV_ITEM_GROUP , M.INV_PROD_FAM_CD , M.UNIT_MEASURE_STD , 'PR' FROM PS_REQ_LN_DISTRIB D , PS_REQ_LINE_SHIP S , PS_REQ_LINE L , PS_REQ_HDR H , PS_CART_ATTRIB_INV C , PS_VENDOR V , PS_MASTER_ITEM_TBL M , PS_SET_CNTRL_REC SC WHERE H.REQ_STATUS IN ('O' ,'A', 'LA', 'C', 'P') AND V.SETID = L.VENDOR_SETID AND V.VENDOR_ID = L.VENDOR_ID AND C.BUSINESS_UNIT = D.BUSINESS_UNIT AND C.BUSINESS_UNIT_PO = D.BUSINESS_UNIT AND C.LOCATION = D.LOCATION AND L.BUSINESS_UNIT = H.BUSINESS_UNIT AND L.REQ_ID = H.REQ_ID AND S.BUSINESS_UNIT = L.BUSINESS_UNIT AND S.REQ_ID = L.REQ_ID AND S.LINE_NBR = L.LINE_NBR AND D.BUSINESS_UNIT = S.BUSINESS_UNIT AND D.REQ_ID = S.REQ_ID AND D.LINE_NBR = S.LINE_NBR AND D.SCHED_NBR = S.SCHED_NBR AND D.DISTRIB_LN_STATUS IN ('O','P') AND M.SETID = SC.SETID AND SC.SETCNTRLVALUE = L.BUSINESS_UNIT AND SC.RECNAME = 'MASTER_ITEM_TBL' AND M.INV_ITEM_ID = L.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 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 Character(18) VARCHAR2(18) NOT NULL Item ID
18 INV_ITEM_ID_PO Character(18) VARCHAR2(18) NOT NULL Item Number PO
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 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 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.
24 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
25 INV_ITEM_GROUP2 Character(15) VARCHAR2(15) NOT NULL Item Group
26 INV_PROD_FAM_CD2 Character(10) VARCHAR2(10) NOT NULL Item Family
27 UNIT_MEASURE_STD2 Character(3) VARCHAR2(3) NOT NULL Standard UOM
28 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