FO_ORDR_APRV_VW(SQL View) |
Index Back |
---|
SELECT DISTINCT A.OWNERSHIP_ID , A.SERVICE_OPRID , F. OPRDEFNDESC , A.SO_ID , A.USER_ORDER_TYPE , A.DESCR , A.CUST_ID , B.NAME1 FROM PS_RS_SO_HDR A , PS_CUSTOMER B , PS_RS_SO_STATUS C , PS_SET_CNTRL_REC D , PSOPRDEFN F WHERE A.CUST_ID = B.CUST_ID AND A.APPR_STATUS = 'P' AND A.SO_ID = C.SO_ID AND C.LASTUPDDTTM = ( SELECT MAX(LASTUPDDTTM) FROM PS_RS_SO_STATUS E WHERE C.BUSINESS_UNIT = E.BUSINESS_UNIT AND C.SO_ID = E.SO_ID) AND C.SO_STATUS = 'D' AND A.SERVICE_OPRID = F.OPRID AND D.SETCNTRLVALUE = A.BUSINESS_UNIT AND D.RECNAME = 'CUSTOMER' AND D.SETID = B.SETID |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | OWNERSHIP_ID | Character(30) | VARCHAR2(30) NOT NULL | Owning Organization |
2 | SERVICE_OPRID | Character(30) | VARCHAR2(30) NOT NULL |
Service Operator
Prompt Table: PSOPRDEFN_VW |
3 | OPRDEFNDESC | Character(30) | VARCHAR2(30) NOT NULL | Description field for a user |
4 | ORDER_ID | Character(25) | VARCHAR2(25) NOT NULL | Order ID |
5 | USER_ORDER_TYPE | Character(5) | VARCHAR2(5) NOT NULL | User Order Type |
6 | DESCR | Character(30) | VARCHAR2(30) NOT NULL | Description |
7 | 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.
Prompt Table: CUSTOMER |
8 | NAME1 | Character(40) | VARCHAR2(40) NOT NULL | Name 1 |