APS_PO_DTL_VW(SQL View) |
Index Back |
---|---|
APS Integ PO Detail View |
SELECT POH.BUSINESS_UNIT , POH.PO_ID , POL.LINE_NBR , POS.SCHED_NBR , POD.DISTRIB_LINE_NUM , POD.BUSINESS_UNIT_IN , POL.ITM_SETID , POL.INV_ITEM_ID , POS.DUE_DT , POS.DUE_TIME , POS.FROZEN_FLG , POS.CANCEL_STATUS , POD.QTY_PO , POD.QTY_PO_STD_EXP , 0 , 0 , 0 , POH.PO_STATUS , POH.VENDOR_SETID , POH.VENDOR_ID , POH.VNDR_LOC FROM PS_PO_LINE_SHIP POS , PS_PO_LINE_DISTRIB POD , PS_PO_LINE POL , PS_PO_HDR POH , PS_APS_ITEM_BU_VW IBU WHERE POL.BUSINESS_UNIT = POH.BUSINESS_UNIT AND POL.PO_ID = POH.PO_ID AND POS.BUSINESS_UNIT = POL.BUSINESS_UNIT AND POS.PO_ID = POL.PO_ID AND POS.LINE_NBR = POL.LINE_NBR AND POD.BUSINESS_UNIT = POS.BUSINESS_UNIT AND POD.PO_ID = POS.PO_ID AND POD.LINE_NBR = POS.LINE_NBR AND POD.SCHED_NBR = POS.SCHED_NBR AND POH.HOLD_STATUS = 'N' AND POH.PO_TYPE = 'GEN' AND POH.PO_STATUS NOT IN ('X', 'PX', 'C' ) AND POL.CANCEL_STATUS = 'A' AND POS.CANCEL_STATUS = 'A' AND POD.DISTRIB_LN_STATUS NOT IN ('X', 'C' ) AND POD.DST_ACCT_TYPE = 'DST' AND POD.SYSTEM_SOURCE <> 'SFC' AND POD.BUSINESS_UNIT_IN <> ' ' AND IBU.BUSINESS_UNIT = POD.BUSINESS_UNIT_IN AND IBU.INV_ITEM_ID = POL.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 | 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 | ITM_SETID | Character(5) | VARCHAR2(5) NOT NULL | Item SetID |
8 | INV_ITEM_ID | Character(18) | VARCHAR2(18) NOT NULL | Item ID |
9 | 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. |
10 | DUE_TIME | Time(15) | TIMESTAMP | Due Time |
11 | FROZEN_FLG | Character(1) | VARCHAR2(1) NOT NULL |
Frozen Flag
B=Both N=No Y=Yes |
12 | CANCEL_STATUS | Character(1) | VARCHAR2(1) NOT NULL |
Cancel Status
A=Active C=Closed D=Denied H=Hold O=Open P=Pending Approval X=Canceled |
13 | QTY_PO | Number(16,4) | DECIMAL(15,4) NOT NULL | Purchase Order Quantity |
14 | QTY_PO_STD | Number(16,4) | DECIMAL(15,4) NOT NULL | PO Quantity Standard |
15 | QTY_MOVED_INV | Number(16,4) | DECIMAL(15,4) NOT NULL | Received Base |
16 | QTY_AM_SHIP_SUOM | Number(16,4) | DECIMAL(15,4) NOT NULL | Returned Base |
17 | REMAINING_QTY | Signed Number(17,4) | DECIMAL(15,4) NOT NULL | 08/16/01 JNW (CN#PL900-1.0): Added |
18 | 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 |
19 | VENDOR_SETID | Character(5) | VARCHAR2(5) NOT NULL | Vendor SetID |
20 | VENDOR_ID | Character(10) | VARCHAR2(10) NOT NULL | Vendor Identifier |
21 | VNDR_LOC | Character(10) | VARCHAR2(10) NOT NULL | Vendor Location |