CUST_BI_A5_VW(SQL View) |
Index Back |
---|---|
Active/Nonprspct BillTo/NoDir |
SELECT DISTINCT C.setid , C.cust_id , A.city , C.name1 , B.cr_analyst , B.collector , a.state FROM ps_customer C , PS_CUST_OPTION B , ps_cust_address A WHERE C.cust_status = 'A' AND C.bill_to_flg = 'Y' AND C.cust_level <> 'P' AND C.SETID = B.SETID AND C.CUST_ID = B.CUST_ID AND B.EFFDT = ( SELECT MAX(B2.EFFDT) FROM PS_CUST_OPTION B2 WHERE B2.SETID = B.SETID AND B2.CUST_ID = B.CUST_ID AND B2.EFFDT <= %CurrentDateIn AND B2.EFF_STATUS = 'A') AND C.setid = A.setid AND C.cust_id = A.cust_id AND A.effdt = ( SELECT MAX(effdt) FROM ps_cust_address X WHERE A.setid = X.setid AND A.cust_id = X.cust_id AND A.address_seq_num = X.address_seq_num AND X.effdt <= %CurrentDateIn AND X.eff_status = 'A') |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | SETID | Character(5) | VARCHAR2(5) NOT NULL | SetID |
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.
Prompt Table: CUST_BI_A2_VW |
3 | CITY | Character(30) | VARCHAR2(30) NOT NULL | City |
4 | NAME1 | Character(40) | VARCHAR2(40) NOT NULL | Name 1 |
5 | CR_ANALYST | Character(8) | VARCHAR2(8) NOT NULL |
Specifies the personnel code for the person who works with a customer to establish credit limits and payment terms. This field is required for a bill-to customer.
Prompt Table: CR_ANALYST_TBL |
6 | COLLECTOR | Character(8) | VARCHAR2(8) NOT NULL |
Specifies the personnel code for the person who works with a customer to collect overdue payments.
Prompt Table: COLLECTOR_TBL |
7 | STATE | Character(6) | VARCHAR2(6) NOT NULL |
State
Prompt Table: STATE_TBL |