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

RS_ASSN_SOCS_VW

(SQL View)
Index Back

SELECT A.BUSINESS_UNIT , A.CUST_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 CUST_ID Character(15) VARCHAR2(15) NOT NULL Uniquely identifies an organizational entity that purchases goods or services from the enterprise. Represents the sold-to customer which is the customer organization that places orders. The CUST_ID may or may not be the same as the identifiers for the bill-to and ship-to locations.
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