PO_POA_SRC_N_VW(SQL View) |
Index Back |
---|---|
POA left panel - NEW statusDerived from PS_PO_POA_SRCH_VW2 to avoid phantom NEW row |
SELECT DISTINCT A.BUSINESS_UNIT , A.PO_ID , 'NEW' , A.DATETIME_DISP , B.VENDOR_ID , B.VENDOR_SETID , B.VNDR_LOC , B.PO_STATUS , B.CHNG_ORD_BATCH , B.BUYER_ID ,B.CURRENCY_CD , B.PO_DT , B.BUSINESS_UNIT , B.PYMNT_TERMS_CD , B.BILL_LOCATION , B.RECV_STATUS , B.VENDOR_SETID FROM PS_PO_DISPATCHED A , PS_PO_HDR B WHERE A.PO_ID = B.PO_ID AND A.BUSINESS_UNIT = B.BUSINESS_UNIT AND B.PO_STATUS = 'D' AND B.CHNG_ORD_BATCH <> 0 AND A.DATETIME_DISP = ( SELECT MAX(Z.DATETIME_DISP) FROM PS_PO_DISPATCHED Z WHERE Z.PO_ID = A.PO_ID AND Z.BUSINESS_UNIT = A.BUSINESS_UNIT) AND NOT EXISTS ( SELECT 'X' FROM PS_PO_POA_HDR_HIST X WHERE X.BUSINESS_UNIT = A.BUSINESS_UNIT AND X.PO_ID = A.PO_ID AND X.CHNG_ORD_BATCH = B.CHNG_ORD_BATCH AND X.DATETIME_DISP = A.DATETIME_DISP) AND NOT EXISTS ( SELECT 'X' FROM PS_PO_HDR_EC Y WHERE Y.BUSINESS_UNIT = A.BUSINESS_UNIT AND Y.PO_ID = A.PO_ID AND Y.CHNG_ORD_BATCH = B.CHNG_ORD_BATCH AND Y.DATETIME_DISP = A.DATETIME_DISP ) |
# | 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 | PO_POA_STATUS | Character(3) | VARCHAR2(3) NOT NULL |
08/07/01 RML Created for Supplier Portal Acknowledgment
BAC=Buyer Accepted CMP=EDX compare needed NEW=New SRP=Supplier Responded SRV=Supplier Review |
4 | DATETIME_DISP | DateTime(26) | TIMESTAMP | Date and Time Dispatched |
5 | VENDOR_ID | Character(10) | VARCHAR2(10) NOT NULL | Vendor Identifier |
6 | VENDOR_SETID | Character(5) | VARCHAR2(5) NOT NULL | Vendor SetID |
7 | VNDR_LOC | Character(10) | VARCHAR2(10) NOT NULL | Vendor Location |
8 | 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 |
9 | CHNG_ORD_BATCH | Number(3,0) | SMALLINT NOT NULL | Change Order Number |
10 | BUYER_ID | Character(30) | VARCHAR2(30) NOT NULL | Buyer |
11 | CURRENCY_CD | Character(3) | VARCHAR2(3) NOT NULL | Currency Code |
12 | PO_DT | Date(10) | DATE | Date |
13 | BUSINESS_UNIT_PO | Character(5) | VARCHAR2(5) NOT NULL | PO Business Unit |
14 | PYMNT_TERMS_CD | Character(5) | VARCHAR2(5) NOT NULL | Specifies how the payment due date and discount due date are calculated. A payment terms code is associated with various business units bill-to customers vendors as well as sales orders purchase orders and vouchers. |
15 | BILL_LOCATION | Character(10) | VARCHAR2(10) NOT NULL | Billing Location |
16 | RECV_STATUS | Character(1) | VARCHAR2(1) NOT NULL |
Receipt Status
C=Closed Receipt H=Hold Receipt M=Moved to Destination N=PO Not Received O=Open P=PO Partially Received R=Fully Received X=Canceled |
17 | SETID | Character(5) | VARCHAR2(5) NOT NULL | SetID |