CNTCT_SLDCST_VW(SQL View) |
Index Back |
---|---|
Sold toCustomer Contact RecordThis is view of all sold to customers of the contact. |
SELECT A.SETID , A.CONTACT_ID , A.EFFDT , B.CUSTOMER_SETID , B.CUST_ID , C.NAME1 FROM PS_CONTACT A , PS_CONTACT_CUST B , PS_CUSTOMER C WHERE A.SETID = B.SETID AND A.CONTACT_ID = B.CONTACT_ID AND %EffdtCheck(CONTACT,A,%currentdatein) AND A.EFFDT = B.EFFDT AND A.EFF_STATUS = 'A' AND B.SOLD_TO_FLG = 'Y' AND B.CUSTOMER_SETID = C.SETID AND B.CUST_ID = C.CUST_ID AND C.CUST_STATUS IN ('A','I') |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | SETID | Character(5) | VARCHAR2(5) NOT NULL | SetID |
2 | CONTACT_ID | Character(15) | VARCHAR2(15) NOT NULL | Contact Identifier for Treasury Contacts |
3 | EFFDT | Date(10) | DATE NOT NULL | Effective Date |
4 | CUSTOMER_SETID | Character(5) | VARCHAR2(5) NOT NULL |
Customer SetID
Prompt Table: SP_SETID_NONVW |
5 | 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: CUST_ALL_CNT_VW |
6 | NAME1 | Character(40) | VARCHAR2(40) NOT NULL | Name 1 |