PV_RECV_PO_REQ2(SQL View) |
Index Back |
---|---|
PO Line Ship View - ReceivingFor SP2 Performance tuning: Added PV_REQ_NAME and removed CATEGORY_CD SCC 8/15/06 ICE1551980000 - add Sybase viewtext |
SELECT R2.BUSINESS_UNIT_PO , R2.PO_ID , R2.LINE_NBR , R2.SCHED_NBR , R2.PO_DT , R2.BUSINESS_UNIT_REQ , R2.REQ_ID , R2.REQUESTOR_ID , R2.OPRID_ENTERED_BY , R2.REQ_LINE_NBR , R2.REQ_SCHED_NBR , R2.QTY_REQ , R2.MERCHANDISE_AMT , R2.DUE_DT , R2.DUE_TIME , R2.ORIG_PROM_DT , R2.REMAIN_RCPT_QTY , R2.SHIPTO_SETID , R2.SHIPTO_ID , SUM(R2.QTY_SH_ACCPT_VUOM) , SUM(R2.PV_QTY_SH_RTN) , SUM(R2.PV_QTY_SH_RECVD) , SUM(R2.PV_QTY_SH_NETRCV) ,R2.VENDOR_SETID , R2.VENDOR_ID , R2.VNDR_LOC , R2.ERS_ACTION ,R2.AMT_ONLY_FLG , R2.BUSINESS_UNIT_IN , R2.CATEGORY_ID , R2.CONFIG_CODE , R2.COUNTRY_IST_ORIGIN , R2.CURRENCY_CD , R2.CURRENCY_CD_BASE , R2.DESCR254_MIXED , R2.DISTRIB_MTHD_FLG , R2.INSPECT_CD , R2.INV_ITEM_ID , R2.IST_TXN_FLG , R2.ITM_ID_VNDR , R2.ITM_SETID , R2.MATCH_LINE_OPT , R2.MERCH_AMT_BSE , R2.MERCH_AMT_PO_BSE ,R2.MERCHANDISE_AMT_PO , R2.MFG_ID , R2.MFG_ITM_ID , R2.OP_SEQUENCE , R2.PRICE_PO , R2.PRICE_PO_BSE , R2.PRODUCTION_ID , R2.QTY_PO , R2.QTY_RECV_TOL_PCT ,R2.RECV_REQ ,R2.RELEASE_NBR , R2.ROUTING_ID , R2.SHIP_TYPE_ID , R2.UNIT_OF_MEASURE , R2.VNDR_CATALOG_ID , R2.REJECT_DAYS , R2.REVISION , R2.ORIG_INV_ITEM_ID , R2.PO_GROUP_ID , R2.PRIMARY_UNIT , R2.UNIT_ALLOC_QTY , R2.UNIT_ALLOC_AMT , %subrec(PUR_USR_LIN_SBR, R2) , %subrec(PUR_USR_SHP_SBR, R2) , PO.UPN_TYPE_CD , PO.UPN_ID FROM PS_PV_PERF_RCV_R2 R2 , PS_PO_LINE PO WHERE PO.BUSINESS_UNIT = R2.BUSINESS_UNIT_PO AND PO.PO_ID = R2.PO_ID AND PO.LINE_NBR = R2.LINE_NBR GROUP BY R2.BUSINESS_UNIT_PO , R2.PO_ID , R2.LINE_NBR , R2.SCHED_NBR , R2.PO_DT , R2.BUSINESS_UNIT_REQ , R2.REQ_ID , R2.REQUESTOR_ID , R2.OPRID_ENTERED_BY , R2.REQ_LINE_NBR , R2.REQ_SCHED_NBR , R2.QTY_REQ , R2.MERCHANDISE_AMT , R2.DUE_DT , R2.DUE_TIME , R2.ORIG_PROM_DT , R2.REMAIN_RCPT_QTY , R2.SHIPTO_SETID , R2.SHIPTO_ID ,R2.VENDOR_SETID , R2.VENDOR_ID , R2.VNDR_LOC , R2.ERS_ACTION ,R2.AMT_ONLY_FLG , R2.BUSINESS_UNIT_IN , R2.CATEGORY_ID , R2.CONFIG_CODE , R2.COUNTRY_IST_ORIGIN , R2.CURRENCY_CD , R2.CURRENCY_CD_BASE , R2.DESCR254_MIXED , R2.DISTRIB_MTHD_FLG , R2.INSPECT_CD , R2.INV_ITEM_ID , R2.IST_TXN_FLG , R2.ITM_ID_VNDR , R2.ITM_SETID , R2.MATCH_LINE_OPT , R2.MERCH_AMT_BSE , R2.MERCH_AMT_PO_BSE ,R2.MERCHANDISE_AMT_PO , R2.MFG_ID , R2.MFG_ITM_ID , R2.OP_SEQUENCE , R2.PRICE_PO , R2.PRICE_PO_BSE , R2.PRODUCTION_ID , R2.QTY_PO , R2.QTY_RECV_TOL_PCT ,R2.RECV_REQ ,R2.RELEASE_NBR , R2.ROUTING_ID , R2.SHIP_TYPE_ID , R2.UNIT_OF_MEASURE , R2.VNDR_CATALOG_ID , R2.REJECT_DAYS , R2.REVISION , R2.ORIG_INV_ITEM_ID , R2.PO_GROUP_ID , R2.PRIMARY_UNIT , R2.UNIT_ALLOC_QTY , R2.UNIT_ALLOC_AMT , %subrec(PUR_USR_LIN_SBR, R2) , %subrec(PUR_USR_SHP_SBR, R2), PO.UPN_TYPE_CD , PO.UPN_ID |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | BUSINESS_UNIT_PO | Character(5) | VARCHAR2(5) NOT NULL | PO 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 | PO_DT | Date(10) | DATE | Date |
6 | BUSINESS_UNIT_REQ | Character(5) | VARCHAR2(5) NOT NULL | Requesting Business Unit |
7 | REQ_ID | Character(10) | VARCHAR2(10) NOT NULL | Requisition ID |
8 | REQUESTOR_ID | Character(30) | VARCHAR2(30) NOT NULL | Requestor id |
9 | OPRID_ENTERED_BY | Character(30) | VARCHAR2(30) NOT NULL | Entered By 07/25/2011 MRAD 12383033 :Ensured that OPRID_ENTERED_BY is set with format type of MixedCase. 03/22/2013 GL 16482301: Switched OPRID_ENTERED_BY back to MixedCase again. Please don't change it to UpperCase!!! FYI - The alternatives to use a User ID as uppercase: 1) Create your own User ID, add comments in the Field Properties, and fill out the Owner ID 2) Use %Upper meta-SQL in SQL statements 3) Use Upper function in peoplecodes |
10 | REQ_LINE_NBR | Number(5,0) | INTEGER NOT NULL | Requisition Line Number |
11 | REQ_SCHED_NBR | Number(3,0) | SMALLINT NOT NULL | Requisition Schedule Number |
12 | QTY_REQ | Number(16,4) | DECIMAL(15,4) NOT NULL | Requisition Quantity |
13 | MERCHANDISE_AMT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Merchandise Amt F_KDHIL_R87H8 062804 MLM: Added new Line Amount Received Label |
14 | 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. |
15 | DUE_TIME | Time(15) | TIMESTAMP | Due Time |
16 | ORIG_PROM_DT | Date(10) | DATE | Original Promise Date |
17 | REMAIN_RCPT_QTY | Number(16,4) | DECIMAL(15,4) NOT NULL | Remaining Receipt Qty |
18 | SHIPTO_SETID | Character(5) | VARCHAR2(5) NOT NULL | ShipTo SetID |
19 | SHIPTO_ID | Character(10) | VARCHAR2(10) NOT NULL | Ship To Location |
20 | QTY_SH_ACCPT_VUOM | Number(16,4) | DECIMAL(15,4) NOT NULL | Accept QTY in Supplier UOM |
21 | PV_QTY_SH_RTN | Number(16,4) | DECIMAL(15,4) NOT NULL | Qty Returned in PO UOM |
22 | PV_QTY_SH_RECVD | Number(16,4) | DECIMAL(15,4) NOT NULL | Receipt QTY in Supplier UOM |
23 | PV_QTY_SH_NETRCV | Number(16,4) | DECIMAL(15,4) NOT NULL | Net Receipt Quantity |
24 | VENDOR_SETID | Character(5) | VARCHAR2(5) NOT NULL | Vendor SetID |
25 | VENDOR_ID | Character(10) | VARCHAR2(10) NOT NULL | Vendor Identifier |
26 | VNDR_LOC | Character(10) | VARCHAR2(10) NOT NULL | Vendor Location |
27 | ERS_ACTION | Character(1) | VARCHAR2(1) NOT NULL |
ERS Action
N=No Y=Yes |
28 | AMT_ONLY_FLG | Character(1) | VARCHAR2(1) NOT NULL |
Amount Only
N=No Y=Yes |
29 | BUSINESS_UNIT_IN | Character(5) | VARCHAR2(5) NOT NULL | Inventory Unit |
30 | CATEGORY_ID | Character(5) | VARCHAR2(5) NOT NULL | Category ID |
31 | CONFIG_CODE | Character(50) | VARCHAR2(50) NOT NULL | Product Configurator |
32 | COUNTRY_IST_ORIGIN | Character(3) | VARCHAR2(3) NOT NULL | Intrastat Country of Origin |
33 | CURRENCY_CD | Character(3) | VARCHAR2(3) NOT NULL | Currency Code |
34 | CURRENCY_CD_BASE | Character(3) | VARCHAR2(3) NOT NULL | Business Unit Base Currency |
35 | DESCR254_MIXED | Character(254) | VARCHAR2(254) NOT NULL | Description |
36 | DISTRIB_MTHD_FLG | Character(1) | VARCHAR2(1) NOT NULL |
Distribute by
A=Amount Q=Quantity |
37 | INSPECT_CD | Character(1) | VARCHAR2(1) NOT NULL |
Inspection Required
N=No Y=Yes |
38 | INV_ITEM_ID | Character(18) | VARCHAR2(18) NOT NULL | Item ID |
39 | IST_TXN_FLG | Character(1) | VARCHAR2(1) NOT NULL |
Intrastat Transaction Flag
N=No Y=Yes |
40 | ITM_ID_VNDR | Character(50) | VARCHAR2(50) NOT NULL | Vendor Item ID |
41 | ITM_SETID | Character(5) | VARCHAR2(5) NOT NULL | Item SetID |
42 | MATCH_LINE_OPT | Character(1) | VARCHAR2(1) NOT NULL |
Match Line Option
E=ERS F=Full Match N=Don't Match |
43 | MERCH_AMT_BSE | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Base Merchandise Amount |
44 | MERCH_AMT_PO_BSE | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Merchandise Amt PO Base |
45 | MERCHANDISE_AMT_PO | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | PO Merchandise Amount |
46 | MFG_ID | Character(50) | VARCHAR2(50) NOT NULL | Manufacturer ID |
47 | MFG_ITM_ID | Character(50) | VARCHAR2(50) NOT NULL | Manufacturer's Item ID |
48 | OP_SEQUENCE | Number(4,0) | SMALLINT NOT NULL | Operation Sequence |
49 | PRICE_PO | Signed Number(17,5) | DECIMAL(15,5) NOT NULL | Purchase Order Price |
50 | PRICE_PO_BSE | Signed Number(17,5) | DECIMAL(15,5) NOT NULL | Price Base |
51 | PRODUCTION_ID | Character(10) | VARCHAR2(10) NOT NULL | Production ID |
52 | QTY_PO | Number(16,4) | DECIMAL(15,4) NOT NULL | Purchase Order Quantity |
53 | QTY_RECV_TOL_PCT | Number(6,2) | DECIMAL(5,2) NOT NULL | Qty Rcvd Tolerance % |
54 | RECV_REQ | Character(1) | VARCHAR2(1) NOT NULL |
Receiving Required
N=Optional X=Do Not Y=Required |
55 | RELEASE_NBR | Number(5,0) | INTEGER NOT NULL | Release Number |
56 | ROUTING_ID | Character(10) | VARCHAR2(10) NOT NULL | Inspection Routing ID |
57 | SHIP_TYPE_ID | Character(10) | VARCHAR2(10) NOT NULL | Ship Via Code |
58 | UNIT_OF_MEASURE | Character(3) | VARCHAR2(3) NOT NULL |
Used on an approval rule set.
MHR=Muti Hourly PER=Percentage SQF=Square Footage |
59 | VNDR_CATALOG_ID | Character(20) | VARCHAR2(20) NOT NULL | Vendor's Catalog Number |
60 | REJECT_DAYS | Number(3,0) | SMALLINT NOT NULL | Early Ship Rjct Days |
61 | REVISION | Character(4) | VARCHAR2(4) NOT NULL | 01/27/2000 RML Added "As of" label |
62 | ORIG_INV_ITEM_ID | Character(18) | VARCHAR2(18) NOT NULL | Used to identify the original item ordered, in case an item substitution has taken place. |
63 | PO_GROUP_ID | Character(18) | VARCHAR2(18) NOT NULL | GroupID |
64 | PRIMARY_UNIT | Character(1) | VARCHAR2(1) NOT NULL |
Primary Unit
N=No Y=Yes |
65 | UNIT_ALLOC_QTY | Number(16,4) | DECIMAL(15,4) NOT NULL | Unit Allocation Qty |
66 | UNIT_ALLOC_AMT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Unit Allocation Amt |
67 | USER_LINE_CHAR1 | Character(1) | VARCHAR2(1) NOT NULL | Custom Character 1 |
68 | CUSTOM_C100_B1 | Character(100) | VARCHAR2(100) NOT NULL | Custom Field 1 |
69 | CUSTOM_C100_B2 | Character(100) | VARCHAR2(100) NOT NULL | Custom Field 2 |
70 | CUSTOM_C100_B3 | Character(100) | VARCHAR2(100) NOT NULL | Custom Field 3 |
71 | CUSTOM_C100_B4 | Character(100) | VARCHAR2(100) NOT NULL | Custom Field 4 |
72 | CUSTOM_DATE_B | Date(10) | DATE | Custom Date |
73 | CUSTOM_C1_B | Character(1) | VARCHAR2(1) NOT NULL | Custom Character 2 |
74 | USER_SCHED_CHAR1 | Character(1) | VARCHAR2(1) NOT NULL | Custom Character 1 |
75 | CUSTOM_C100_C1 | Character(100) | VARCHAR2(100) NOT NULL | Custom Field 1 |
76 | CUSTOM_C100_C2 | Character(100) | VARCHAR2(100) NOT NULL | Custom Field 2 |
77 | CUSTOM_C100_C3 | Character(100) | VARCHAR2(100) NOT NULL | Custom Field 3 |
78 | CUSTOM_DATE_C1 | Date(10) | DATE | Custom Date 1 |
79 | CUSTOM_DATE_C2 | Date(10) | DATE | Custom Date 2 |
80 | CUSTOM_C1_C | Character(1) | VARCHAR2(1) NOT NULL | Custom Character 2 |
81 | UPN_TYPE_CD | Character(4) | VARCHAR2(4) NOT NULL | Universal Product Number Format Type |
82 | UPN_ID | Character(20) | VARCHAR2(20) NOT NULL | Universal Product Number |