PC_ACT_TYPE_VW

(SQL View)
Index Back

3PI: Get Activity Type View


SELECT B.SETCNTRLVALUE , A.SETID , A.ACTIVITY_TYPE , A.DESCR , A.EFFDT , A.EFF_STATUS , B.RECNAME FROM PS_PROJ_ACT_TBL A , PS_SET_CNTRL_REC B WHERE A.EFFDT = ( SELECT MAX(A_ED.EFFDT) FROM PS_PROJ_ACT_TBL A_ED WHERE A.SETID = A_ED.SETID AND A.ACTIVITY_TYPE = A_ED.ACTIVITY_TYPE AND A_ED.EFFDT <= %CurrentDateIn) AND A.EFF_STATUS = 'A' AND B.SETID = A.SETID AND B.RECNAME = 'PROJ_ACT_TBL'

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 SETCNTRLVALUE Character(20) VARCHAR2(20) NOT NULL Tree Definition User Key Value

Prompt Table: SP_BU_PC_NONVW

2 SETID Character(5) VARCHAR2(5) NOT NULL SetID

Prompt Table: SP_SETID_NONVW

3 ACTIVITY_TYPE Character(5) VARCHAR2(5) NOT NULL Activity Type
A=Activity Type
E=Entry Type
G=Group Type/Origin
O=Activity Type/Origin
R=Entry Type/Reason
4 DESCR Character(30) VARCHAR2(30) NOT NULL Description
5 EFFDT Date(10) DATE Effective Date

Default Value: %date

6 EFF_STATUS Character(1) VARCHAR2(1) NOT NULL Effective Status
A=Active
I=Inactive
7 RECNAME Character(15) VARCHAR2(15) NOT NULL Record (Table) Name (see PSRECDEFN).