TD_TREE_WF_VW(SQL View) |
Index Back |
---|
SELECT DISTINCT A.SETID , A.TD_TREE_ID , A.EFFDT , C.OPRID , D.TD_NODE_LEVEL , A.CUST_ID , B.APPRV_PAY , B.APPRV_PROMO , B.APPRV_NATIONAL , B.APPRV_CLAIM , B.APPRV_FUND FROM PS_TD_TREE_NODE A , PS_TD_TREE_APPROVE B , PSOPRDEFN C , PS_TD_TREE_NODE D , PS_TD_TREE_HDR H WHERE A.SETID = B.SETID AND A.TD_TREE_ID = B.TD_TREE_ID AND A.EFFDT = B.EFFDT AND A.SETID = D.SETID AND A.TD_TREE_ID = D.TD_TREE_ID AND A.EFFDT = D.EFFDT AND ((B.TD_SECURITY_TYPE = 'U' AND B.TD_SECURITY_ID = C.OPRID) OR (B.TD_SECURITY_TYPE = 'R' AND (EXISTS ( SELECT 'X' FROM PSROLEUSER R WHERE R.ROLENAME = B.TD_SECURITY_ID AND R.ROLEUSER = C.OPRID)))) AND B.TD_NODE_ID = D.TD_NODE_ID AND A.TREE_NODE_NUM >= D.TREE_NODE_NUM AND A.TREE_NODE_NUM <= D.TREE_NODE_NUM_END AND H.SETID=A.SETID AND H.TD_TREE_ID=A.TD_TREE_ID AND H.EFFDT=A.EFFDT AND H.TD_TREE_TYPE = 'C' |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | SETID | Character(5) | VARCHAR2(5) NOT NULL |
SetID
Default Value: OPR_DEF_TBL_FS.SETID Prompt Table: SP_SETID_NONVW |
2 | TD_TREE_ID | Character(8) | VARCHAR2(8) NOT NULL | Tree ID |
3 | EFFDT | Date(10) | DATE |
Effective Date
Default Value: %date |
4 | OPRID | Character(30) | VARCHAR2(30) NOT NULL | A user's ID (see PSOPRDEFN). |
5 | TD_NODE_LEVEL | Number(3,0) | SMALLINT NOT NULL | Node Level |
6 | CUST_ID | Character(15) | VARCHAR2(15) NOT NULL | Uniquely identifies an organizational entity that purchases goods or services from the enterprise. Represents the sold-to customer which is the customer organization that places orders. The CUST_ID may or may not be the same as the identifiers for the bill-to and ship-to locations. |
7 | APPRV_PAY | Character(1) | VARCHAR2(1) NOT NULL |
Approve Payments
Y/N Table Edit Default Value: N |
8 | APPRV_PROMO | Character(1) | VARCHAR2(1) NOT NULL |
Approve Promotions
Y/N Table Edit Default Value: N |
9 | APPRV_NATIONAL | Character(1) | VARCHAR2(1) NOT NULL |
Approve National Allowances
Y/N Table Edit Default Value: N |
10 | APPRV_CLAIM | Character(1) | VARCHAR2(1) NOT NULL |
Approve Claims
Y/N Table Edit Default Value: N |
11 | APPRV_FUND | Character(1) | VARCHAR2(1) NOT NULL |
Approve Funds
Y/N Table Edit Default Value: N |