RB_CUST_LIST_VW(SQL View) |
Index Back |
---|---|
Current Effective Flat Tree |
SELECT DISTINCT O.OPRID , P.PERSON_ID , F.SETID , F.CUST_ID , F.NAME1 , F.CUST_ID_DIRECT , F.NAME1_DIRECT , F.BO_ID_DIRECT , F.BO_ID , F.CUSTOMER_TYPE , 'Y' , F.TREE_LEVEL_NUM FROM PS_RB_CUST_FLAT F , PS_BO_REL R , PS_RD_PERSON P , PSOPRALIAS O WHERE R.BO_ID_1 = F.BO_ID_PARENT AND R.REL_TYPE_ID = 99999 AND R.BO_ID_2 = P.BO_ID AND O.PERSON_ID = P.PERSON_ID AND O.OPRALIASTYPE = 'PER' |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | OPRID | Character(30) | VARCHAR2(30) NOT NULL | A user's ID (see PSOPRDEFN). |
2 | PERSON_ID | Character(15) | VARCHAR2(15) NOT NULL | Person ID |
3 | SETID | Character(5) | VARCHAR2(5) NOT NULL | This field is used to store the value of SetID on various setup tables. |
4 | CUST_ID | Character(15) | VARCHAR2(15) NOT NULL | Customer ID |
5 | NAME1 | Character(50) | VARCHAR2(50) NOT NULL | Generic 50 character name field for storing names. |
6 | CUST_ID_DIRECT | 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. |
7 | NAME1_DIRECT | Character(50) | VARCHAR2(50) NOT NULL | Customer Name |
8 | BO_ID_DIRECT | Number(31,0) | DECIMAL(31) NOT NULL | Parent BO_ID |
9 | BO_ID | Signed Number(32,0) | DECIMAL(31) NOT NULL | Business Object ID |
10 | CUSTOMER_TYPE | Character(1) | VARCHAR2(1) NOT NULL |
Customer Type
1=User 1 2=User 2 3=User 3 4=User 4 |
11 | ACCT_OWNER | Character(1) | VARCHAR2(1) NOT NULL |
Account Team Owners....................
N=No Y=Yes |
12 | TREE_LEVEL_NUM | Number(3,0) | SMALLINT NOT NULL | Parent tree level if this is a part of the PSTREEBRANCH record |