RSF_TR_SRCH(SQL View) |
Index Back |
---|---|
Territory Search ViewView of all active territories. This is used a primary search record while searching for territories using configurable search. |
SELECT A.TREE_NAME , A.TERRITORY_ID , A.DESCR , A.SYNCID , A.BO_ID_PARTNER , B.TREE_NODE_NUM , B.TREE_NODE_NUM_END , B.PARENT_NODE_NAME FROM PS_RSF_TERRITORY A , PSTREENODE B ,PS_RSF_TR_NEW_TREE C WHERE B.EFFDT = ( SELECT MAX(B_ED.EFFDT) FROM PSTREEDEFN B_ED WHERE B.SETID = B_ED.SETID AND B.SETCNTRLVALUE = B_ED.SETCNTRLVALUE AND B.TREE_NAME = B_ED.TREE_NAME AND B_ED.EFFDT <= %CurrentDateIn) AND A.TREE_NAME = C.TREE_NAME AND B.TREE_NAME = A.TREE_NAME AND A.TERRITORY_ID = B.TREE_NODE |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | TREE_NAME | Character(18) | VARCHAR2(18) NOT NULL |
Tree Name
Prompt Table: RSF_TR_TREE_VW |
2 | TERRITORY_ID | Character(20) | VARCHAR2(20) NOT NULL | Territory ID |
3 | DESCR | Character(30) | VARCHAR2(30) NOT NULL | Description |
4 | 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. |
5 | BO_ID_PARTNER | Signed Number(32,0) | DECIMAL(31) NOT NULL | Business Object ID of Partner Company. |
6 | TREE_NODE_NUM | Number(10,0) | DECIMAL(10) NOT NULL | Internal beginning node range number |
7 | TREE_NODE_NUM_END | Number(10,0) | DECIMAL(10) NOT NULL | Internal ending node range number |
8 | TERRITORY_PARENT | Character(20) | VARCHAR2(20) NOT NULL | Territory Parent |