IN_POR_PEGV_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 , D.BUSINESS_UNIT_IN , L.INV_ITEM_ID , D.QTY_PO_STD_EXP - SUM(QTY_DS_ACCPT_SUOM) FROM PS_PO_LINE_DISTRIB D , PS_PO_LINE L , PS_RECV_LN_DISTRIB R WHERE D.BUSINESS_UNIT = L.BUSINESS_UNIT AND D.PO_ID = L.PO_ID AND D.LINE_NBR = L.LINE_NBR AND D.DST_ACCT_TYPE = 'DST' AND D.DISTRIB_LN_STATUS = 'O' AND 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 R.PO_DIST_LINE_NUM = D.DISTRIB_LINE_NUM AND R.RECV_DS_STATUS <> 'X' 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 |
# | 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 | BUSINESS_UNIT_IN | Character(5) | VARCHAR2(5) NOT NULL | Inventory Unit |
7 | INV_ITEM_ID | Character(18) | VARCHAR2(18) NOT NULL | Item ID |
8 | QTY_AVAILABLE | Signed Number(17,4) | DECIMAL(15,4) NOT NULL | Qty Available |