RS_SO_SRCH_VW(SQL View) |
Index Back |
---|
SELECT A.BUSINESS_UNIT , A.SO_ID , D.SETID , A.CUST_ID , B.NAME1 , B.NAMESHORT , C.SO_STATUS , A.ENTERED_BY , A.ASSIGNED_TO , A.PROJECT_ID , A.DESCR60 FROM %Table(RS_SO_HDR) A , %Table(CUSTOMER) B , %Table(RS_SO_STATUS) C , %Table(SET_CNTRL_REC) D WHERE D.SETCNTRLVALUE = A.BUSINESS_UNIT AND D.RECNAME = 'CUSTOMER' AND D.SETID = B.SETID AND A.CUST_ID = B.CUST_ID AND A.BUSINESS_UNIT = C.BUSINESS_UNIT AND A.SO_ID = C.SO_ID AND C.LASTUPDDTTM = ( SELECT MAX(CC.LASTUPDDTTM) FROM PS_RS_SO_STATUS CC WHERE C.BUSINESS_UNIT = CC.BUSINESS_UNIT AND C.SO_ID = CC.SO_ID) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL |
Business Unit
Default Value: OPR_DEF_TBL_FS.BUSINESS_UNIT Prompt Table: SP_BU_PC_NONVW |
2 | SO_ID | Character(15) | VARCHAR2(15) NOT NULL |
Service Order ID
Default Value: NEXT |
3 | CUST_SETID | Character(5) | VARCHAR2(5) NOT NULL |
Customer SetID
Default Value: CUSTOMER.SETID |
4 | 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.
Default Value: CUSTOMER.CUST_ID Prompt Table: CUSTOMER_FS |
5 | NAME1 | Character(40) | VARCHAR2(40) NOT NULL | Name 1 |
6 | NAMESHORT | Character(10) | VARCHAR2(10) NOT NULL | Short Name |
7 | SO_STATUS | Character(1) | VARCHAR2(1) NOT NULL |
Service Order Status
C=Closed D=Draft I=In Process N=New O=Open X=Canceled |
8 | ENTERED_BY | Character(30) | VARCHAR2(30) NOT NULL |
Entered by
Prompt Table: OPRID_VW |
9 | ASSIGNED_TO | Character(30) | VARCHAR2(30) NOT NULL |
Assigned To
Prompt Table: RS_OPR_NAME_VW |
10 | PROJECT_ID | Character(15) | VARCHAR2(15) NOT NULL |
Project Id ChartField
Prompt Table: SP_PROJ_NONVW |
11 | DESCR60 | Character(60) | VARCHAR2(60) NOT NULL | Description |