RS_SO_STAT_VW2

(SQL View)
Index Back

SELECT A.BUSINESS_UNIT , A.SO_ID , B.SO_STATUS FROM %Table(RS_SO_HDR) A , %Table(RS_SO_STATUS) B WHERE A.BUSINESS_UNIT = B.BUSINESS_UNIT AND A.SO_ID = B.SO_ID AND B.LASTUPDDTTM = ( SELECT MAX(C.LASTUPDDTTM) FROM %Table(RS_SO_STATUS) C WHERE C.BUSINESS_UNIT = B.BUSINESS_UNIT AND C.SO_ID = B.SO_ID)

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
2 SO_ID Character(15) VARCHAR2(15) NOT NULL Service Order ID
3 SO_STATUS Character(1) VARCHAR2(1) NOT NULL Service Order Status
C=Closed
D=Draft
I=In Process
N=New
O=Open
X=Canceled