RSF_TR_PTNR_VW(SQL View) |
Index Back |
---|---|
Partner Territories ViewView of all Partner Territories for a known Partner. |
SELECT A.TREE_NAME , C.BO_ID_PARTNER , C.TERRITORY_ID , C.DESCR FROM %Table(PSTREEDEFN) A , %Table(PSTREENODE) B , %Table(RSF_TERRITORY) C , %Table(RD_PARTNER) D WHERE A.TREE_STRCT_ID = 'TERRITORY_TREE' AND B.SETID = A.SETID AND B.SETCNTRLVALUE = A.SETCNTRLVALUE AND B.EFFDT = A.EFFDT AND B.TREE_NODE <> ' ' AND %EffdtCheck(PSTREEDEFN D, A, %CurrentDateIn) AND B.TREE_NAME = C.TREE_NAME AND B.TREE_NODE = C.TERRITORY_ID AND C.BO_ID_PARTNER = D.BO_ID |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | TREE_NAME | Character(18) | VARCHAR2(18) NOT NULL | Tree Name |
2 | BO_ID_PARTNER | Signed Number(32,0) | DECIMAL(31) NOT NULL | Business Object ID of Partner Company. |
3 | TERRITORY_ID | Character(20) | VARCHAR2(20) NOT NULL | Territory ID |
4 | DESCR | Character(30) | VARCHAR2(30) NOT NULL | Description |