RBT_BACT_PER_VW

(SQL View)
Index Back

Billing Account/Person View

This view is used to derive all the persons related to an account

SELECT BACT.RBTACCTID ,BACT.RBTACCTNO ,BACT.RBTACCTNAME ,BACT.RBTACCTSTATUS ,BACT.RBTACCTTYPE ,BACT.RBTCUST_BO_ID ,BACT.RBTCONT_BO_ID ,BACT.BO_ID ,PERS.PERSON_ID ,PERS.BO_ID ,BON.BO_NAME ,BON.BO_NAME_DISPLAY ,NM.BO_NAME_DISPLAY ,REL.ROLE_TYPE_ID_1 FROM PS_RBT_ACCOUNT BACT , PS_BO_REL REL , PS_RD_PERSON PERS ,PS_BO_NAME BON ,PS_BO_NAME NM WHERE REL.BO_ID_2 = BACT.BO_ID AND REL.BO_ID_1 = PERS.BO_ID AND PERS.BO_ID = BON.BO_ID AND BON.PRIMARY_IND = 'Y' AND BACT.RBTCONT_BO_ID = NM.BO_ID AND NM.PRIMARY_IND = 'Y' AND REL.REL_TYPE_ID IN ( 535,536) AND REL.START_DT <= %CurrentDateIn AND REL.END_DT > %CurrentDateIn

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 RBTACCTID Character(15) VARCHAR2(15) NOT NULL Unique service account indentifier
2 RBTACCTNO Character(20) VARCHAR2(20) NOT NULL Account No
3 RBTACCTNAME Character(30) VARCHAR2(30) NOT NULL Account Name
4 RBTACCTSTATUS Character(4) VARCHAR2(4) NOT NULL Account Status
ACT=Active
CLOS=Closed
HOLD=On Hold
PEND=Pending Activation
5 RBTACCTTYPE Character(4) VARCHAR2(4) NOT NULL Determines the type of Billing Account.
IND=Individual Account
NSUB=Parent Account
PRE=Prepaid Account
SPNR=Sponsored Account
SPON=Sponsoring Account
SUB=Subordinate Account
6 RBTCUST_BO_ID Number(31,0) DECIMAL(31) NOT NULL Customer BO ID
7 RBTCONT_BO_ID Number(31,0) DECIMAL(31) NOT NULL Contact BO ID
8 BO_ID Signed Number(32,0) DECIMAL(31) NOT NULL Business Object ID
9 PERSON_ID Character(15) VARCHAR2(15) NOT NULL Person ID
10 BO_ID_PERSON Number(31,0) DECIMAL(31) NOT NULL Business Object ID
11 BO_NAME Character(50) VARCHAR2(50) NOT NULL Name Description of Business Object
12 BO_NAME_DISPLAY Character(80) VARCHAR2(80) NOT NULL Full name of the Business Object
13 BO_NAME_DISPLAY_1 Character(80) VARCHAR2(80) NOT NULL This field represents the Display Name for a business object
14 ROLE_TYPE_ID_1 Number(12,0) DECIMAL(12) NOT NULL Role Type ID