RSF_TR_ACCT_VW(SQL View) |
Index Back |
---|---|
Account Team ViewAccounts and their Account Team members. Gets only Active Accounts with active relationships to account team members. |
SELECT B.PERSON_ID , B.BO_ID , A.BO_ID_2 , A.ROLE_TYPE_ID_2 , A.REL_TYPE_ID , B.PERSON_ID , B.BO_ID , ' ' , A.BO_REL_ID , C.BO_NAME_DISPLAY , D.CUST_STATUS , A.ACCT_OWNER , %subrec(RB_AUDIT_SBR, B) FROM PS_RD_PERSON B ,PS_RD_ACCT_TM_VW A ,PS_BO_NAME C ,PS_BC D WHERE A.BO_ID_1 = B.BO_ID AND C.BO_ID = A.BO_ID_2 AND D.CUST_STATUS = 'A' AND C.PRIMARY_IND = 'Y' AND A.BO_ID_2 = D.BO_ID AND A.START_DT <= %CurrentDateIn AND A.END_DT > %CurrentDateIn |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | FROM_SALES_REP | Character(15) | VARCHAR2(15) NOT NULL |
Current Sales Representative
Prompt Table: RSF_ACC_FROM_VW |
2 | FROM_BO_ID | Signed Number(32,0) | DECIMAL(31) NOT NULL | Current Sales Rep BOID |
3 | BO_ID | Signed Number(32,0) | DECIMAL(31) NOT NULL | Business Object ID |
4 | ROLE_TYPE_ID | Number(12,0) | DECIMAL(12) NOT NULL | Role Type ID |
5 | REL_TYPE_ID | Number(12,0) | DECIMAL(12) NOT NULL | Relationship Type ID |
6 | TO_SALES_REP | Character(15) | VARCHAR2(15) NOT NULL |
New Sales Representative
Prompt Table: RSF_ACC_TO_VW |
7 | TO_BO_ID | Signed Number(32,0) | DECIMAL(31) NOT NULL | New Sales Rep BOID |
8 | FROM_TERRITORY | Character(20) | VARCHAR2(20) NOT NULL | Current Territory |
9 | BO_REL_ID | Signed Number(32,0) | DECIMAL(31) NOT NULL | Relationship ID of a Business Object |
10 | BO_NAME_DISPLAY | Character(80) | VARCHAR2(80) NOT NULL | Full name of the Business Object |
11 | CUST_STATUS | Character(1) | VARCHAR2(1) NOT NULL |
Customer Status Indicator. BC.CUST_STATUS
A=Active I=Inactive |
12 | ACCT_OWNER | Character(1) | VARCHAR2(1) NOT NULL |
Account Team Owners....................
N=No Y=Yes |
13 | ROW_ADDED_DTTM | DateTime(26) | TIMESTAMP | This is a datetime field for record creation. |
14 | ROW_ADDED_OPRID | Character(30) | VARCHAR2(30) NOT NULL | ID of user who added the row. |
15 | ROW_LASTMANT_DTTM | DateTime(26) | TIMESTAMP | The date and time that the row was last updated. |
16 | ROW_LASTMANT_OPRID | Character(30) | VARCHAR2(30) NOT NULL | ID of user who last modified the row. |
17 | SYNCID | Number(10,0) | DECIMAL(10) NOT NULL | The Synchronization ID field stores a value generated by the sync processor. The value is used to identify the type of object that the sync processor is about to handle. |
18 | SYNCDTTM | DateTime(26) | TIMESTAMP | Synchronization Last Update Date Time |