PO_SS_POHIST_VW(SQL View) |
Index Back |
---|---|
PO historyView used on Supplier Purchase Order to show history of PO (change order/dispatch times) |
SELECT DISTINCT B.BUSINESS_UNIT , B.PO_ID ,B.DATETIME_DISP , B.CHNG_ORD_BATCH FROM PS_PO_DISPATCHED B WHERE B.DATETIME_DISP = ( SELECT MAX(Z.DATETIME_DISP) FROM PS_PO_DISPATCHED Z WHERE Z.PO_ID = B.PO_ID AND Z.BUSINESS_UNIT = B.BUSINESS_UNIT AND Z.CHNG_ORD_BATCH = B.CHNG_ORD_BATCH) |
# | 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 | DATETIME_DISP | DateTime(26) | TIMESTAMP | Date and Time Dispatched |
4 | CHNG_ORD_BATCH | Number(3,0) | SMALLINT NOT NULL | Change Order Number |