PRCR_HST_AAA_VW(SQL View) |
Index Back |
---|---|
Procurement History Item View |
SELECT A.REPORT_ENTITY ,A.PRCR_YEAR ,A.PRCR_PERIOD ,A.ITM_SETID ,A.INV_ITEM_ID ,A.CATEGORY_ID ,A.VENDOR_SETID ,A.VENDOR_ID ,A.BUSINESS_UNIT_PO ,A.SHIPTO_SETID ,A.SHIPTO_ID ,A.CURRENCY_CD ,A.UNIT_MEASURE_STD ,A.UNIT_MEASURE_WT ,A.QTY_PO ,A.QTY_CANCEL , %Round(%DecDiv(%DecMult(A.QTY_CANCEL, 100), (A.QTY_PO + .0001) ), 2) ,A.QTY_SH_RECVD_SUOM , %Round(%DecDiv(%DecMult((A.QTY_SH_RECVD_SUOM - A.QTY_SH_REJCT_SUOM - A.QTY_RETURN), 100), (A.QTY_SH_RECVD_SUOM + .0001) ), 2) ,A.QTY_SH_REJCT_SUOM , %Round(%DecDiv(%DecMult(A.QTY_SH_REJCT_SUOM, 100), (A.QTY_SH_RECVD_SUOM + .0001) ), 2) ,A.QTY_RETURN , %Round(%DecDiv(%DecMult(A.QTY_RETURN, 100), (A.QTY_SH_RECVD_SUOM + .0001) ), 2) ,A.QTY_VCHR ,A.QTY_DEFECTIVE , %Round(%DecDiv(%DecMult(A.QTY_DEFECTIVE, 100), (A.QTY_SH_RECVD_SUOM + .0001) ), 2) ,A.QTY_EARLY , %Round(%DecDiv(%DecMult(A.QTY_EARLY, 100), (A.QTY_SH_RECVD_SUOM + .0001) ), 2) ,A.QTY_LATE , %Round(%DecDiv(%DecMult(A.QTY_LATE, 100), (A.QTY_SH_RECVD_SUOM + .0001) ), 2) ,A.QTY_OPEN , %Round(%DecDiv(%DecMult(A.QTY_PO - A.QTY_OPEN, 100), (A.QTY_PO + .0001) ) , 2) ,A.AMT_ORDERED , %Round(%DecDiv(%DecMult(A.AMT_ORDERED, 100), (A.QTY_PO + .0001) ), 2) ,A.AMT_CANCELED ,A.AMT_RECEIVED , %Round(%DecDiv(%DecMult(A.AMT_RECEIVED, 100), (A.QTY_SH_RECVD_SUOM + .0001) ), 2) ,A.AMT_REJECTED ,A.AMT_RETURNED ,A.AMT_INVOICED , %Round(%DecDiv(%DecMult(A.AMT_INVOICED, 100), (A.QTY_VCHR + .0001) ), 2) ,A.CURRENCY_PYMNT ,A.PAID_AMT_GROSS ,A.PAID_AMT ,A.PRICE_LIST ,A.BANK_SETID ,A.BANK_CD ,A.WT_ORDERED ,A.WT_CANCELED ,A.WT_RECEIVED ,A.WT_REJECTED ,A.WT_RETURNED ,A.NUM_OF_ORDERS ,A.NUM_OF_RECEIPTS , %Round(%DecDiv(%DecMult((A.NUM_OF_RECEIPTS - A.EARLY_SHIPMENTS - A.LATE_SHIPMENTS), 100), (A.NUM_OF_RECEIPTS + .0001) ), 2) ,A.EARLY_SHIPMENTS , %Round(%DecDiv(%DecMult(A.EARLY_SHIPMENTS, 100), (A.NUM_OF_RECEIPTS + .0001) ), 2) ,A.LATE_SHIPMENTS , %Round(%DecDiv(%DecMult(A.LATE_SHIPMENTS, 100), (A.NUM_OF_RECEIPTS + .0001) ), 2) ,A.NUM_OF_RETURNS ,A.OVER_SHIPMENTS , %Round(%DecDiv(%DecMult(A.OVER_SHIPMENTS, 100), (A.NUM_OF_RECEIPTS + .0001) ), 2) ,A.UNDER_SHIPMENTS , %Round(%DecDiv(%DecMult(A.UNDER_SHIPMENTS, 100), (A.NUM_OF_RECEIPTS + .0001) ), 2) ,A.NUM_DAYS_DEVIATION ,A.LEAD_TIME ,A.LEAD_TIME_MAD ,A.LAST_DTTM_UPDATE ,A.BUYER_ID ,A.DESCR ,V.VENDOR_NAME_SHORT ,V.NAME1 FROM PS_PRCR_ITEM_HST A , PS_VENDOR V WHERE A.VENDOR_SETID = V.SETID AND A.VENDOR_ID = V.VENDOR_ID AND A.INV_ITEM_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 | ITM_SETID | Character(5) | VARCHAR2(5) NOT NULL | Item SetID |
5 | INV_ITEM_ID | Character(18) | VARCHAR2(18) NOT NULL | Item ID |
6 | CATEGORY_ID | Character(5) | VARCHAR2(5) NOT NULL | Category ID |
7 | VENDOR_SETID | Character(5) | VARCHAR2(5) NOT NULL | Vendor SetID |
8 | VENDOR_ID | Character(10) | VARCHAR2(10) NOT NULL | Vendor Identifier |
9 | BUSINESS_UNIT_PO | Character(5) | VARCHAR2(5) NOT NULL | PO Business Unit |
10 | SHIPTO_SETID | Character(5) | VARCHAR2(5) NOT NULL | ShipTo SetID |
11 | SHIPTO_ID | Character(10) | VARCHAR2(10) NOT NULL | Ship To Location |
12 | CURRENCY_CD | Character(3) | VARCHAR2(3) NOT NULL | Currency Code |
13 | UNIT_MEASURE_STD | Character(3) | VARCHAR2(3) NOT NULL | Standard Unit of Measure |
14 | UNIT_MEASURE_WT | Character(3) | VARCHAR2(3) NOT NULL | Weight UOM |
15 | QTY_PO | Number(16,4) | DECIMAL(15,4) NOT NULL | Purchase Order Quantity |
16 | QTY_CANCEL | Number(16,4) | DECIMAL(15,4) NOT NULL | Quantity Canceled |
17 | QTY_CANCEL_PER | Signed Number(9,2) | DECIMAL(7,2) NOT NULL | Quantity Cancel Percent |
18 | QTY_SH_RECVD_SUOM | Number(16,4) | DECIMAL(15,4) NOT NULL | Receipt Quantity |
19 | QTY_RECEIPT_PER | Number(8,2) | DECIMAL(7,2) NOT NULL | Quantity Receipt Percent |
20 | QTY_SH_REJCT_SUOM | Number(16,4) | DECIMAL(15,4) NOT NULL | Rejected Quantity |
21 | QTY_REJECT_PER | Signed Number(9,2) | DECIMAL(7,2) NOT NULL | Quantity Reject Percent |
22 | QTY_RETURN | Number(16,4) | DECIMAL(15,4) NOT NULL | Quantity Returned |
23 | QTY_RETURN_PER | Signed Number(9,2) | DECIMAL(7,2) NOT NULL | Quantity Return Percent |
24 | QTY_VCHR | Signed Number(17,4) | DECIMAL(15,4) NOT NULL | Quantity Vouchered |
25 | QTY_DEFECTIVE | Number(16,4) | DECIMAL(15,4) NOT NULL | Quantity Defective |
26 | QTY_DEFECTIVE_PER | Signed Number(9,2) | DECIMAL(7,2) NOT NULL | Quantity Defective Percentage |
27 | QTY_EARLY | Number(16,4) | DECIMAL(15,4) NOT NULL | Quantity Early |
28 | QTY_EARLY_PER | Signed Number(9,2) | DECIMAL(7,2) NOT NULL | Quantity Early Percentage |
29 | QTY_LATE | Number(16,4) | DECIMAL(15,4) NOT NULL | Quantity Late |
30 | QTY_LATE_PER | Signed Number(9,2) | DECIMAL(7,2) NOT NULL | Quantity Late Percentage |
31 | QTY_OPEN | Number(16,4) | DECIMAL(15,4) NOT NULL | Open Quantity |
32 | QTY_OPEN_PER | Signed Number(9,2) | DECIMAL(7,2) NOT NULL | Quantity Open Percentage |
33 | AMT_ORDERED | Number(27,3) | DECIMAL(26,3) NOT NULL | Amount Ordered |
34 | AVG_PO_PRICE | Signed Number(17,2) | DECIMAL(15,2) NOT NULL | Average PO Price |
35 | AMT_CANCELED | Number(27,3) | DECIMAL(26,3) NOT NULL | Amount Canceled |
36 | AMT_RECEIVED | Number(27,3) | DECIMAL(26,3) NOT NULL | Amount Received |
37 | AVG_RECV_PRICE | Signed Number(17,2) | DECIMAL(15,2) NOT NULL | Average Receipt Price |
38 | AMT_REJECTED | Number(27,3) | DECIMAL(26,3) NOT NULL | Amount Rejected |
39 | AMT_RETURNED | Number(27,3) | DECIMAL(26,3) NOT NULL | Amount Returned |
40 | AMT_INVOICED | Number(27,3) | DECIMAL(26,3) NOT NULL | Amount Invoiced |
41 | AVG_INV_PRICE | Signed Number(17,2) | DECIMAL(15,2) NOT NULL | Average Invoice Price |
42 | CURRENCY_PYMNT | Character(3) | VARCHAR2(3) NOT NULL | Payment Currency |
43 | PAID_AMT_GROSS | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Gross Paid Amount |
44 | PAID_AMT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Paid Amount |
45 | PRICE_LIST | Number(16,5) | DECIMAL(15,5) NOT NULL | Standard Price |
46 | BANK_SETID | Character(5) | VARCHAR2(5) NOT NULL | The PeopleSoft tableset ID associated with a given bank/counterparty. |
47 | BANK_CD | Character(5) | VARCHAR2(5) NOT NULL | Bank Code |
48 | WT_ORDERED | Number(16,4) | DECIMAL(15,4) NOT NULL | Weight Ordered |
49 | WT_CANCELED | Number(16,4) | DECIMAL(15,4) NOT NULL | Weight Canceled |
50 | WT_RECEIVED | Number(16,4) | DECIMAL(15,4) NOT NULL | Weight Received |
51 | WT_REJECTED | Number(16,4) | DECIMAL(15,4) NOT NULL | Weight Rejected |
52 | WT_RETURNED | Number(16,4) | DECIMAL(15,4) NOT NULL | Weight Returned |
53 | NUM_OF_ORDERS | Number(7,0) | INTEGER NOT NULL | Number of Orders |
54 | NUM_OF_RECEIPTS | Number(7,0) | INTEGER NOT NULL | Number of Receipts |
55 | SHIP_ON_TIME_PER | Signed Number(9,2) | DECIMAL(7,2) NOT NULL | Shipments on time Percent |
56 | EARLY_SHIPMENTS | Number(7,0) | INTEGER NOT NULL | Number of Early Shipments |
57 | SHIP_EARLY_PER | Signed Number(9,2) | DECIMAL(7,2) NOT NULL | Shipments Early Percent |
58 | LATE_SHIPMENTS | Number(7,0) | INTEGER NOT NULL | Number of Late Shipments |
59 | SHIP_LATE_PER | Signed Number(9,2) | DECIMAL(7,2) NOT NULL | Shipments Late Percent |
60 | NUM_OF_RETURNS | Number(7,0) | INTEGER NOT NULL | Number of Returns |
61 | OVER_SHIPMENTS | Number(7,0) | INTEGER NOT NULL | Number of Over Shipments |
62 | OVER_SHIP_PER | Signed Number(9,2) | DECIMAL(7,2) NOT NULL | Over Shipment Percent |
63 | UNDER_SHIPMENTS | Number(7,0) | INTEGER NOT NULL | Number of Under Shipments |
64 | UNDER_SHIP_PER | Signed Number(9,2) | DECIMAL(7,2) NOT NULL | Under Shipment Percent |
65 | NUM_DAYS_DEVIATION | Number(9,0) | DECIMAL(9) NOT NULL | Number Days of Deviation |
66 | LEAD_TIME | Number(3,0) | SMALLINT NOT NULL | Lead Time Days |
67 | LEAD_TIME_MAD | Signed Number(9,2) | DECIMAL(7,2) NOT NULL | Lead Time Deviation |
68 | LAST_DTTM_UPDATE | DateTime(26) | TIMESTAMP | Specifies the date and time of the last update to an entry. This field is maintained by PeopleSoft and is used in a variety of contexts. |
69 | BUYER_ID | Character(30) | VARCHAR2(30) NOT NULL | Buyer |
70 | ITM_DESCR | Character(30) | VARCHAR2(30) NOT NULL | Item Description |
71 | VENDOR_NAME_SHORT | Character(14) | VARCHAR2(14) NOT NULL | Short Vendor Name |
72 | NAME1 | Character(40) | VARCHAR2(40) NOT NULL | Name 1 |