IN_PO_PS_VW(SQL View) |
Index Back |
---|---|
IN Peg PO Search View06/22/04 EGS: Created |
SELECT D.BUSINESS_UNIT , D.PO_ID , D.LINE_NBR , D.SCHED_NBR , D.DISTRIB_LINE_NUM , '010' , D.BUSINESS_UNIT_IN , L.INV_ITEM_ID , D.QTY_PO_STD_EXP , SUM(IP.QTY_PEGGED) , SUM(IP.QTY_COMPLETE) , SUM(IP.QTY_RECEIVED) , D.QTY_PO_STD_EXP , %DatePart(IP.SUP_DTTM) , %TimePart(IP.SUP_DTTM) , IP.SUP_DTTM , A.HASH_KEY , D.PEG_STATUS , H.VENDOR_ID , H.VNDR_LOC , H.BUYER_ID , D.DISTRIB_LN_STATUS , C.CATEGORY_CD , L.DESCR254_MIXED FROM PS_PO_LINE_DISTRIB D , PS_PO_LINE L , PS_PO_HDR H , PS_IN_PEGGING IP , PS_PO_HASH A , PS_ITM_CAT_TBL C , PS_SET_CNTRL_REC SCR , PS_INSTALLATION_IN X WHERE D.DST_ACCT_TYPE = 'DST' AND D.PEG_STATUS < '40' AND L.BUSINESS_UNIT = D.BUSINESS_UNIT AND L.PO_ID = D.PO_ID AND L.LINE_NBR = D.LINE_NBR AND H.BUSINESS_UNIT = D.BUSINESS_UNIT AND H.PO_ID = D.PO_ID AND A.BUSINESS_UNIT = D.BUSINESS_UNIT AND A.PO_ID = D.PO_ID AND A.LINE_NBR = D.LINE_NBR AND A.SCHED_NBR = D.SCHED_NBR AND A.DISTRIB_LINE_NUM = D.DISTRIB_LINE_NUM AND IP.SUPPLY_HASH = A.HASH_KEY AND IP.SUP_ORDER_TYPE = '010' AND L.CATEGORY_ID = C.CATEGORY_ID AND C.SETID = SCR.SETID AND SCR.SETCNTRLVALUE = D.BUSINESS_UNIT AND SCR.RECNAME = 'ITM_CAT_TBL' AND C.EFFDT = ( SELECT MAX(C1.EFFDT) FROM PS_ITM_CAT_TBL C1 WHERE C.SETID = C1.SETID AND C.CATEGORY_TYPE = C1.CATEGORY_TYPE AND C.CATEGORY_CD = C1.CATEGORY_CD AND C.CATEGORY_ID = C1.CATEGORY_ID AND C1.EFFDT <= %CurrentDateIn ) GROUP BY D.BUSINESS_UNIT, D.PO_ID, D.LINE_NBR, D.SCHED_NBR, D.DISTRIB_LINE_NUM, D.BUSINESS_UNIT_IN, L.INV_ITEM_ID, D.QTY_PO_STD_EXP, IP.SUP_DTTM, A.HASH_KEY, D.PEG_STATUS, H.VENDOR_ID, H.VNDR_LOC, H.BUYER_ID, D.DISTRIB_LN_STATUS, C.CATEGORY_CD, L.DESCR254_MIXED |
# | 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 | DISTRIB_LINE_NUM | Number(5,0) | INTEGER NOT NULL | Distribution Line |
6 | PEG_ORDER_TYPE | Character(4) | VARCHAR2(4) NOT NULL |
Used by Pegging Maintenance/Inquiry
010=Purchase 020=Production 030=Transfer Demand 035=Transfer Supply 070=Stock Request 090=Sales Order 100=Requisition 110=WO Inventory 115=WO Non-Inventory |
7 | BUSINESS_UNIT_IN | Character(5) | VARCHAR2(5) NOT NULL | Inventory Unit |
8 | INV_ITEM_ID | Character(18) | VARCHAR2(18) NOT NULL | Item ID |
9 | QTY_AVAILABLE | Signed Number(17,4) | DECIMAL(15,4) NOT NULL | Qty Available |
10 | QTY_PEGGED | Signed Number(17,4) | DECIMAL(15,4) NOT NULL | 06/16/04 EGS: Created. |
11 | QTY_COMPLETE | Number(16,4) | DECIMAL(15,4) NOT NULL | Quantity Complete |
12 | QTY_RECEIVED | Number(16,4) | DECIMAL(15,4) NOT NULL | Received Qty |
13 | QTY_ORDER | Signed Number(17,4) | DECIMAL(15,4) NOT NULL | 06/21/04 EGS: Created |
14 | SCHED_DATE | Date(10) | DATE | Schedule Date |
15 | SCHED_TIME | Time(15) | TIMESTAMP | Schedule Time |
16 | SCHED_DTTM | DateTime(26) | TIMESTAMP | 08/16/01 JNW (CN#PL900-1.0): Added |
17 | PEG_HASH | Character(28) | VARCHAR2(28) NOT NULL | 07/29/04 EGS: Created |
18 | PEG_STATUS | Character(2) | VARCHAR2(2) NOT NULL |
07/21/04 EGS: Created
10=Open 20=Completed 30=Canceled 40=Not Pegged |
19 | VENDOR_ID | Character(10) | VARCHAR2(10) NOT NULL | Vendor Identifier |
20 | VNDR_LOC | Character(10) | VARCHAR2(10) NOT NULL | Vendor Location |
21 | BUYER_ID | Character(30) | VARCHAR2(30) NOT NULL | Buyer |
22 | 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 |
23 | CATEGORY_CD | Character(18) | VARCHAR2(18) NOT NULL | Category Code |
24 | DESCR254_MIXED | Character(254) | VARCHAR2(254) NOT NULL | Description |