PO_SSPOLST_VW1(SQL View) |
Index Back |
---|---|
PO List without Vouchers |
SELECT DISTINCT A.PO_ID , A.PO_DT ,B.DATETIME_DISP , A.PO_STATUS , A.VENDOR_ID , A.BUSINESS_UNIT , A.VENDOR_SETID , A.BUYER_ID , A.PYMNT_TERMS_CD , A.RECV_STATUS , A.BILL_LOCATION ,A.VENDOR_SETID ,A.VNDR_LOC , A.CHNG_ORD_BATCH ,A.CURRENCY_CD FROM PS_PO_HDR A , PS_PO_DISPATCHED B WHERE (A.PO_STATUS = 'D' OR A.PO_STATUS = 'C' OR A.PO_STATUS = 'X' OR A.PO_STATUS = 'PX') AND A.BUSINESS_UNIT = B.BUSINESS_UNIT AND A.PO_ID = B.PO_ID AND B.DATETIME_DISP = ( SELECT MAX(DATETIME_DISP) FROM PS_PO_DISPATCHED C WHERE A.PO_ID = C.PO_ID AND A.BUSINESS_UNIT = C.BUSINESS_UNIT) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | PO_ID | Character(10) | VARCHAR2(10) NOT NULL | Purchase Order |
2 | PO_DT | Date(10) | DATE | Date |
3 | DATETIME_DISP | DateTime(26) | TIMESTAMP | Date and Time Dispatched |
4 | 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 |
5 | VENDOR_ID | Character(10) | VARCHAR2(10) NOT NULL | Vendor Identifier |
6 | BUSINESS_UNIT_PO | Character(5) | VARCHAR2(5) NOT NULL | PO Business Unit |
7 | SETID | Character(5) | VARCHAR2(5) NOT NULL | SetID |
8 | BUYER_ID | Character(30) | VARCHAR2(30) NOT NULL | Buyer |
9 | 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. |
10 | 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 |
11 | BILL_LOCATION | Character(10) | VARCHAR2(10) NOT NULL | Billing Location |
12 | VENDOR_SETID | Character(5) | VARCHAR2(5) NOT NULL | Vendor SetID |
13 | VNDR_LOC | Character(10) | VARCHAR2(10) NOT NULL | Vendor Location |
14 | CHNG_ORD_BATCH | Number(3,0) | SMALLINT NOT NULL | Change Order Number |
15 | CURRENCY_CD | Character(3) | VARCHAR2(3) NOT NULL | Currency Code |