SP_PO_ENCUM_D_V

(SQL View)
Index Back

PO Encumbrance view

PO Encumbrance view

SELECT DISTINCT KKVW.BUSINESS_UNIT , WOREC.WORK_ORDER_ID , KKVW.PO_ID , KKVW.LINE_NBR , KKVW.SCHED_NBR , KKVW.DISTRIB_LINE_NUM , KKVW.ENCUM_BALANCE , KKVW.CURRENCY_CD , KKVW.FOREIGN_AMOUNT , KKVW.FOREIGN_CURRENCY , KKVW.LEDGER_GROUP , PODISTRB.BUDGET_LINE_STATUS FROM PS_SPF_WORDERREC WOREC , PS_SPF_WOPO_DISTRB WODISTRB , PS_SPF_WO_PO_DTL WODTL , PS_PO_HDR POHDR , PS_PO_LINE_DISTRIB PODISTRB , PS_PO_KK_VW KKVW WHERE WOREC.BUSINESS_UNIT = WODISTRB.BUSINESS_UNIT AND WOREC.WORK_ORDER_ID = WODISTRB.WORK_ORDER_ID AND WOREC.PO_ID <> ' ' AND WOREC.BUSINESS_UNIT = WODTL.BUSINESS_UNIT AND WOREC.WORK_ORDER_ID = WODTL.WORK_ORDER_ID AND WODTL.PO_ID <> ' ' AND WODTL.BUSINESS_UNIT = POHDR.BUSINESS_UNIT AND WODTL.PO_ID = POHDR.PO_ID AND WODTL.BUSINESS_UNIT = PODISTRB.BUSINESS_UNIT AND WODTL.PO_ID = PODISTRB.PO_ID AND WODTL.PO_LINE_NBR = PODISTRB.LINE_NBR AND WODTL.SCHED_NBR = PODISTRB.SCHED_NBR AND WODISTRB.DISTRIB_LINE_NUM = PODISTRB.DISTRIB_LINE_NUM AND PODISTRB.BUSINESS_UNIT = KKVW.BUSINESS_UNIT AND PODISTRB.PO_ID = KKVW.PO_ID AND PODISTRB.LINE_NBR = KKVW.LINE_NBR AND PODISTRB.SCHED_NBR = KKVW.SCHED_NBR

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
2 WORK_ORDER_ID Character(15) VARCHAR2(15) NOT NULL Work Order ID
3 PO_ID Character(10) VARCHAR2(10) NOT NULL Purchase Order
4 LINE_NBR Number(5,0) INTEGER NOT NULL Line Number: 11/24/08 - Added TARGET label [PC product]
5 SCHED_NBR Number(3,0) SMALLINT NOT NULL Schedule Number
6 DISTRIB_LINE_NUM Number(5,0) INTEGER NOT NULL Distribution Line
7 ENCUM_BALANCE Signed Number(28,3) DECIMAL(26,3) NOT NULL Encumbrance Balances
8 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code
9 FOREIGN_AMOUNT Signed Number(28,3) DECIMAL(26,3) NOT NULL Specifies the monetary amount of a debit or credit (accounting entry line) in the entry currency of the item. The sum of FOREIGN_AMOUNT values on AR lines should equal the ENTRY_AMT on the pending item.
10 FOREIGN_CURRENCY Character(3) VARCHAR2(3) NOT NULL Foreign Currency Code
11 LEDGER_GROUP Character(10) VARCHAR2(10) NOT NULL Ledger Group
12 BUDGET_LINE_STATUS Character(1) VARCHAR2(1) NOT NULL -> SL - 15-AUG-2002 MISC_CRITERIA label has been added <-
B=Bypass
E=Error
N=Not Chk'd
V=Valid
W=Warning