CA_CUST_SLD_VW(SQL View) | 
Index Back | 
|---|---|
Sold To Customers - CACopy of the OM CUST_SLD_VW, but only look at CUST_STATUS = 'A' | 
| SELECT A.SETID ,A.CUST_ID ,A.NAME1 ,A.ADDRESS_SEQ_SOLD ,A.CNTCT_SEQ_SOLD ,A.CURRENCY_CD ,A.CUST_LEVEL ,A.CUR_RT_TYPE ,B.PHONE ,B.CITY ,B.STATE ,B.POSTAL FROM ps_customer A , PS_CUST_ADDRESS B WHERE A.setid = B.setid AND A.cust_id = B.cust_id AND A.CUST_STATUS = 'A' AND %EffdtCheck(cust_address,B,%currentdatein) AND B.eff_status='A' AND A.SOLD_TO_FLG = 'Y' | 
| # | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description | 
|---|---|---|---|---|
| 1 | Character(5) | VARCHAR2(5) NOT NULL | 
SetID
 Default Value: OPR_DEF_TBL_FS.SETID Prompt Table: SP_SETID_NONVW  | 
|
| 2 | 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 | NAME1 | Character(40) | VARCHAR2(40) NOT NULL | Name 1 | 
| 4 | ADDRESS_SEQ_SOLD | Number(5,0) | INTEGER NOT NULL | Primary Address - Sold To | 
| 5 | CNTCT_SEQ_SOLD | Number(5,0) | INTEGER NOT NULL | Primary Contact - Sold To | 
| 6 | CURRENCY_CD | Character(3) | VARCHAR2(3) NOT NULL | Currency Code | 
| 7 | CUST_LEVEL | Character(1) | VARCHAR2(1) NOT NULL | 
Customer Level
 N=New P=Prospect R=Regular S=Short-Term T=Temporary  | 
| 8 | RT_TYPE | Character(5) | VARCHAR2(5) NOT NULL | Defines a category of market rates for currency conversion. Some examples of rate types are commercial, average, floating, and historical. | 
| 9 | PHONE | Character(24) | VARCHAR2(24) NOT NULL | Telephone | 
| 10 | CITY | Character(30) | VARCHAR2(30) NOT NULL | City | 
| 11 | STATE | Character(6) | VARCHAR2(6) NOT NULL | State | 
| 12 | POSTAL | Character(12) | VARCHAR2(12) NOT NULL | Postal |