PO_BUY_PO_VW(SQL View) |
Index Back |
---|---|
Purchase Order View - online01/19/01 SCC CN#WV802-1.0: Supplier Collaboration - New View Used by the online workbenches. This view is similar to po_buy_po2_vw. They need to be kept in synch. PO2_vw does the exact same joins but also joins to the itm_vnd_bu_attr table. Had problems on Db2 with performance if we used this view inside po2_vw ... so just duplicated the where clause. (Saw it first with the planning views .. so may have something to do with the volume.) |
SELECT %subrec(PO_BUY_PO_SBR, A) , B.SCHED_GROUP_CD FROM PS_PO_BUY_POALL_VW A , PS_ITM_VND_BU_ATTR B WHERE A.PO_STATUS <> 'C' AND B.SETID=A.ITM_SETID AND B.INV_ITEM_ID=A.INV_ITEM_ID AND B.VENDOR_SETID=A.VENDOR_SETID AND B.VENDOR_ID=A.VENDOR_ID AND B.VNDR_LOC = A.VNDR_LOC AND B.BUSINESS_UNIT_IN=A.BUSINESS_UNIT_IN AND B.SCHED_FLAG = 'Y' |
# | 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 | VENDOR_SETID | Character(5) | VARCHAR2(5) NOT NULL | Vendor SetID |
7 | VENDOR_ID | Character(10) | VARCHAR2(10) NOT NULL | Vendor Identifier |
8 | VNDR_LOC | Character(10) | VARCHAR2(10) NOT NULL | Vendor Location |
9 | BUYER_ID | Character(30) | VARCHAR2(30) NOT NULL | Buyer |
10 | 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 |
11 | ITM_SETID | Character(5) | VARCHAR2(5) NOT NULL | Item SetID |
12 | INV_ITEM_ID | Character(18) | VARCHAR2(18) NOT NULL | Item ID |
13 | CONFIG_CODE | Character(50) | VARCHAR2(50) NOT NULL | Product Configurator |
14 | UNIT_OF_MEASURE | Character(3) | VARCHAR2(3) NOT NULL |
Used on an approval rule set.
MHR=Muti Hourly PER=Percentage SQF=Square Footage |
15 | 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. |
16 | DUE_TIME | Time(15) | TIMESTAMP | Due Time |
17 | REVISION | Character(4) | VARCHAR2(4) NOT NULL | 01/27/2000 RML Added "As of" label |
18 | FROZEN_FLG | Character(1) | VARCHAR2(1) NOT NULL |
Frozen Flag
B=Both N=No Y=Yes |
19 | BUSINESS_UNIT_IN | Character(5) | VARCHAR2(5) NOT NULL | Inventory Unit |
20 | QTY_PO | Number(16,4) | DECIMAL(15,4) NOT NULL | Purchase Order Quantity |
21 | UNIT_MEASURE_STD | Character(3) | VARCHAR2(3) NOT NULL | Standard Unit of Measure |
22 | CATEGORY_CD | Character(18) | VARCHAR2(18) NOT NULL | Category Code |
23 | SRC_METHOD | Character(1) | VARCHAR2(1) NOT NULL |
Sourcing Method
B=Basic F=Flexible H=Cumulative Split S=Sched Split |
24 | PRIMARY_BUYER | Character(30) | VARCHAR2(30) NOT NULL | Primary Buyer |
25 | SCHED_GROUP_CD | Character(6) | VARCHAR2(6) NOT NULL | 04/01/02 SCC CN#WV900-1.0: Supplier Collaboration - New Field |