SUJ--Modified to list only for Resource Management Service Orders

RS_ASSN_SOPJ_VW

(SQL View)
Index Back

SELECT A.BUSINESS_UNIT , A.PROJECT_ID , A.SO_ID , A.DESCR60 , 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.SO_STATUS NOT IN ('C', 'X','D') AND A.SYSTEM_SOURCE = 'RS' 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 PROJECT_ID Character(15) VARCHAR2(15) NOT NULL Project Id ChartField
3 SO_ID Character(15) VARCHAR2(15) NOT NULL Service Order ID
4 DESCR60 Character(60) VARCHAR2(60) NOT NULL Description
5 SO_STATUS Character(1) VARCHAR2(1) NOT NULL Service Order Status
C=Closed
D=Draft
I=In Process
N=New
O=Open
X=Canceled