WV_PRCR_AAA_VW(SQL View) |
Index Back |
---|---|
Procurement History Item ViewAdded for CN#WV802-2.0 |
SELECT A.REPORT_ENTITY ,A.PRCR_YEAR ,A.PRCR_PERIOD ,A.VENDOR_SETID ,A.VENDOR_ID ,SUM(A.QTY_PO) ,SUM(A.QTY_CANCEL) , %Round(%DecDiv(%DecMult(SUM(A.QTY_CANCEL), 100), (SUM(A.QTY_PO) + .0001) ), 2) ,SUM(A.QTY_SH_RECVD_SUOM) ,SUM(A.QTY_SH_RECVD_SUOM - A.QTY_SH_REJCT_SUOM - A.QTY_RETURN) ,%Round(%DecDiv(%DecMult(SUM(A.QTY_SH_RECVD_SUOM - A.QTY_SH_REJCT_SUOM - A.QTY_RETURN), 100), (SUM(A.QTY_SH_RECVD_SUOM ) + .0001) ), 4) ,SUM(A.QTY_SH_REJCT_SUOM) , %Round(%DecDiv(%DecMult(SUM(A.QTY_SH_REJCT_SUOM), 100), (SUM(A.QTY_SH_RECVD_SUOM) + .0001) ), 2) ,SUM(A.QTY_RETURN) , %Round(%DecDiv(%DecMult(SUM(A.QTY_RETURN), 100), (SUM(A.QTY_SH_RECVD_SUOM) + .0001) ), 2) ,SUM(A.QTY_VCHR) ,SUM(A.QTY_DEFECTIVE) , %Round(%DecDiv(%DecMult(SUM(A.QTY_DEFECTIVE), 100), (SUM(A.QTY_SH_RECVD_SUOM) + .0001) ), 2) ,%Round(%DecDiv(%DecMult(SUM(A.QTY_SH_RECVD_SUOM - A.QTY_EARLY - A.QTY_LATE), 100), (SUM(A.QTY_SH_RECVD_SUOM ) + .0001) ), 2) ,SUM(A.QTY_EARLY) , %Round(%DecDiv(%DecMult(SUM(A.QTY_EARLY), 100), (SUM(A.QTY_SH_RECVD_SUOM) + .0001) ), 2) ,SUM(A.QTY_LATE) , %Round(%DecDiv(%DecMult(SUM(A.QTY_LATE), 100), (SUM(A.QTY_SH_RECVD_SUOM) + .0001) ), 2) ,SUM(A.QTY_OPEN) , %Round(%DecDiv(%DecMult(SUM(A.QTY_PO - A.QTY_OPEN), 100), (SUM(A.QTY_PO) + .0001) ), 2) ,SUM(A.AMT_ORDERED) , %Round(%DecDiv(%DecMult(SUM(A.AMT_ORDERED), 100), (SUM(A.QTY_PO) + .0001) ), 2) ,SUM(A.AMT_CANCELED) ,SUM(A.AMT_RECEIVED) , %Round(%DecDiv(%DecMult(SUM(A.AMT_RECEIVED), 100), (SUM(A.QTY_SH_RECVD_SUOM) + .0001) ), 0) ,SUM(A.AMT_REJECTED) ,SUM(A.AMT_RETURNED) ,SUM(A.AMT_INVOICED) , %Round(%DecDiv(%DecMult(SUM(A.AMT_INVOICED), 100), (SUM(A.QTY_VCHR) + .0001) ), 0) ,SUM(A.PAID_AMT_GROSS) ,SUM(A.PAID_AMT) ,SUM(A.PRICE_LIST) ,SUM(A.NUM_OF_ORDERS) ,SUM(A.NUM_OF_RECEIPTS) , %Round(%DecDiv(%DecMult((SUM(A.NUM_OF_RECEIPTS) - SUM(A.EARLY_SHIPMENTS) - SUM(A.LATE_SHIPMENTS)), 100), (SUM(A.NUM_OF_RECEIPTS) + .0001) ), 0) , %Round(%DecDiv(%DecMult((SUM(A.NUM_OF_RECEIPTS) - SUM(A.OVER_SHIPMENTS) - SUM(A.UNDER_SHIPMENTS)), 100), (SUM(A.NUM_OF_RECEIPTS) + .0001) ), 0) ,SUM(A.EARLY_SHIPMENTS) , %Round(%DecDiv(%DecMult(SUM(A.EARLY_SHIPMENTS), 100), (SUM(A.NUM_OF_RECEIPTS) + .0001) ), 0) ,SUM(A.LATE_SHIPMENTS) , %Round(%DecDiv(%DecMult(SUM(A.LATE_SHIPMENTS), 100), (SUM(A.NUM_OF_RECEIPTS) + .0001) ), 0) ,SUM(A.NUM_OF_RETURNS) ,SUM(A.OVER_SHIPMENTS) , %Round(%DecDiv(%DecMult(SUM(A.OVER_SHIPMENTS), 100), (SUM(A.NUM_OF_RECEIPTS) + .0001) ), 0) ,SUM(A.UNDER_SHIPMENTS) , %Round(%DecDiv(%DecMult(SUM(A.UNDER_SHIPMENTS), 100), (SUM(A.NUM_OF_RECEIPTS) + .0001) ), 0) ,SUM(A.NUM_DAYS_DEVIATION) ,SUM(A.LEAD_TIME_MAD) ,0 ,0 ,0 ,' ' FROM PS_PRCR_ITEM_HST A GROUP BY A.REPORT_ENTITY ,A.PRCR_YEAR ,A.PRCR_PERIOD ,A.VENDOR_SETID ,A.VENDOR_ID |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | REPORT_ENTITY | Character(5) | VARCHAR2(5) NOT NULL | Reporting Entity ID |
2 | PRCR_YEAR | Number(4,0) | SMALLINT NOT NULL | Procurement Year |
3 | PRCR_PERIOD | Number(3,0) | SMALLINT NOT NULL | Procurement Period |
4 | VENDOR_SETID | Character(5) | VARCHAR2(5) NOT NULL | Vendor SetID |
5 | VENDOR_ID | Character(10) | VARCHAR2(10) NOT NULL | Vendor Identifier |
6 | QTY_PO | Number(16,4) | DECIMAL(15,4) NOT NULL | Purchase Order Quantity |
7 | QTY_CANCEL | Number(16,4) | DECIMAL(15,4) NOT NULL | Quantity Canceled |
8 | QTY_CANCEL_PER | Signed Number(9,2) | DECIMAL(7,2) NOT NULL | Quantity Cancel Percent |
9 | QTY_SH_RECVD_SUOM | Number(16,4) | DECIMAL(15,4) NOT NULL | Receipt Quantity |
10 | QTY_ACCEPTED | Number(16,4) | DECIMAL(15,4) NOT NULL | Qty Accepted |
11 | QTY_ACCEPT_PER | Signed Number(17,4) | DECIMAL(15,4) NOT NULL | Added for CN#WV802-2.0 |
12 | QTY_SH_REJCT_SUOM | Number(16,4) | DECIMAL(15,4) NOT NULL | Rejected Quantity |
13 | QTY_REJECT_PER | Signed Number(9,2) | DECIMAL(7,2) NOT NULL | Quantity Reject Percent |
14 | QTY_RETURN | Number(16,4) | DECIMAL(15,4) NOT NULL | Quantity Returned |
15 | QTY_RETURN_PER | Signed Number(9,2) | DECIMAL(7,2) NOT NULL | Quantity Return Percent |
16 | QTY_VCHR | Signed Number(17,4) | DECIMAL(15,4) NOT NULL | Quantity Vouchered |
17 | QTY_DEFECTIVE | Number(16,4) | DECIMAL(15,4) NOT NULL | Quantity Defective |
18 | QTY_DEFECTIVE_PER | Signed Number(9,2) | DECIMAL(7,2) NOT NULL | Quantity Defective Percentage |
19 | QTY_ON_TIME_PER | Signed Number(9,2) | DECIMAL(7,2) NOT NULL | Quantity On-Time Percentage |
20 | QTY_EARLY | Number(16,4) | DECIMAL(15,4) NOT NULL | Quantity Early |
21 | QTY_EARLY_PER | Signed Number(9,2) | DECIMAL(7,2) NOT NULL | Quantity Early Percentage |
22 | QTY_LATE | Number(16,4) | DECIMAL(15,4) NOT NULL | Quantity Late |
23 | QTY_LATE_PER | Signed Number(9,2) | DECIMAL(7,2) NOT NULL | Quantity Late Percentage |
24 | QTY_OPEN | Number(16,4) | DECIMAL(15,4) NOT NULL | Open Quantity |
25 | QTY_OPEN_PER | Signed Number(9,2) | DECIMAL(7,2) NOT NULL | Quantity Open Percentage |
26 | AMT_ORDERED | Number(27,3) | DECIMAL(26,3) NOT NULL | Amount Ordered |
27 | AVG_PO_PRICE | Signed Number(17,2) | DECIMAL(15,2) NOT NULL | Average PO Price |
28 | AMT_CANCELED | Number(27,3) | DECIMAL(26,3) NOT NULL | Amount Canceled |
29 | AMT_RECEIVED | Number(27,3) | DECIMAL(26,3) NOT NULL | Amount Received |
30 | AVG_RECV_PRICE | Signed Number(17,2) | DECIMAL(15,2) NOT NULL | Average Receipt Price |
31 | AMT_REJECTED | Number(27,3) | DECIMAL(26,3) NOT NULL | Amount Rejected |
32 | AMT_RETURNED | Number(27,3) | DECIMAL(26,3) NOT NULL | Amount Returned |
33 | AMT_INVOICED | Number(27,3) | DECIMAL(26,3) NOT NULL | Amount Invoiced |
34 | AVG_INV_PRICE | Signed Number(17,2) | DECIMAL(15,2) NOT NULL | Average Invoice Price |
35 | PAID_AMT_GROSS | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Gross Paid Amount |
36 | PAID_AMT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Paid Amount |
37 | PRICE_LIST | Number(16,5) | DECIMAL(15,5) NOT NULL | Standard Price |
38 | NUM_OF_ORDERS | Number(7,0) | INTEGER NOT NULL | Number of Orders |
39 | NUM_OF_RECEIPTS | Number(7,0) | INTEGER NOT NULL | Number of Receipts |
40 | SHIP_ON_TIME_PER | Signed Number(9,2) | DECIMAL(7,2) NOT NULL | Shipments on time Percent |
41 | FULL_SHIP_PER | Signed Number(17,4) | DECIMAL(15,4) NOT NULL | Added for CN#WV802-2.0 |
42 | EARLY_SHIPMENTS | Number(7,0) | INTEGER NOT NULL | Number of Early Shipments |
43 | SHIP_EARLY_PER | Signed Number(9,2) | DECIMAL(7,2) NOT NULL | Shipments Early Percent |
44 | LATE_SHIPMENTS | Number(7,0) | INTEGER NOT NULL | Number of Late Shipments |
45 | SHIP_LATE_PER | Signed Number(9,2) | DECIMAL(7,2) NOT NULL | Shipments Late Percent |
46 | NUM_OF_RETURNS | Number(7,0) | INTEGER NOT NULL | Number of Returns |
47 | OVER_SHIPMENTS | Number(7,0) | INTEGER NOT NULL | Number of Over Shipments |
48 | OVER_SHIP_PER | Signed Number(9,2) | DECIMAL(7,2) NOT NULL | Over Shipment Percent |
49 | UNDER_SHIPMENTS | Number(7,0) | INTEGER NOT NULL | Number of Under Shipments |
50 | UNDER_SHIP_PER | Signed Number(9,2) | DECIMAL(7,2) NOT NULL | Under Shipment Percent |
51 | NUM_DAYS_DEVIATION | Number(9,0) | DECIMAL(9) NOT NULL | Number Days of Deviation |
52 | LEAD_TIME_MAD | Signed Number(9,2) | DECIMAL(7,2) NOT NULL | Lead Time Deviation |
53 | COLOR | Number(10,0) | DECIMAL(10) NOT NULL | Color |
54 | METRIC_1_TGT | Number(8,4) | DECIMAL(7,4) NOT NULL | Added for CN#WV802-2.0 |
55 | METRIC_1_TOL | Number(8,4) | DECIMAL(7,4) NOT NULL | Added for CN#WV802-2.0 |
56 | TEXT254 | Character(254) | VARCHAR2(254) NOT NULL | Text |