RSF_TR_BUS_VW

(SQL View)
Index Back

Territories based on SETID

This view will retrieve all territories based on the Business Unit to SETID indirection.

SELECT DISTINCT %TrimSubstr(B.SETID, 1, 5) , A.TREE_NAME , A.TERRITORY_ID FROM PS_RSF_TERRITORY A , PS_SET_CNTRL_REC B WHERE B.SETCNTRLVALUE = A.BUSINESS_UNIT AND B.RECNAME = 'RD_COMPANY'

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 SETID Character(5) VARCHAR2(5) NOT NULL This field is used to store the value of SetID on various setup tables.
2 TREE_NAME Character(18) VARCHAR2(18) NOT NULL Tree Name

Prompt Table: RSF_TR_TREE_VW

3 TERRITORY_PARENT Character(20) VARCHAR2(20) NOT NULL Territory Parent