AM_RET_APPR_CFS

(SQL View)
Index Back

RETIREMENT REQUEST w/ CFs


SELECT A.DATE_SUBMITTED , A.DTTM_STAMP , A.ORIGINATOR_ID , A.BUSINESS_UNIT , A.ASSET_ID , B.DEPTID , B.PROJECT_ID , %subrec(CF14_AN_SBR, B) FROM PS_AM_RETIRE_APPR A , PS_ASSET_CUSTODIAN B WHERE A.BUSINESS_UNIT = B.BUSINESS_UNIT AND A.ASSET_ID = B.ASSET_ID AND B.EFFDT = ( SELECT MAX(B1.EFFDT) FROM PS_ASSET_CUSTODIAN B1 WHERE B1.BUSINESS_UNIT = B.BUSINESS_UNIT AND B1.ASSET_ID = B.ASSET_ID AND B1.EFFDT <= %CurrentDateIn) AND B.EFFSEQ = ( SELECT MAX(B2.EFFSEQ) FROM PS_ASSET_CUSTODIAN B2 WHERE B2.BUSINESS_UNIT = B.BUSINESS_UNIT AND B2.ASSET_ID = B.ASSET_ID AND B2.EFFDT = B.EFFDT)

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 DATE_SUBMITTED Date(10) DATE Date Submitted
2 DTTM_STAMP DateTime(26) TIMESTAMP Specifies the date and time of the last update to an entry. This field is maintained by PeopleSoft and is used in a variety of contexts.
3 ORIGINATOR_ID Character(30) VARCHAR2(30) NOT NULL Originator
4 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
5 ASSET_ID Character(12) VARCHAR2(12) NOT NULL Asset Identification
6 DEPTID Character(10) VARCHAR2(10) NOT NULL Department
7 PROJECT_ID Character(15) VARCHAR2(15) NOT NULL Project Id ChartField
8 OPERATING_UNIT Character(8) VARCHAR2(8) NOT NULL Operating Unit ChartField

Prompt Table: OPER_UNIT_TBL

9 PRODUCT Character(6) VARCHAR2(6) NOT NULL Product ChartField

Prompt Table: PRODUCT_TBL

10 FUND_CODE Character(5) VARCHAR2(5) NOT NULL Fund Code

Prompt Table: FUND_TBL

11 CLASS_FLD Character(5) VARCHAR2(5) NOT NULL Class Field

Prompt Table: CLASS_CF_TBL

12 PROGRAM_CODE Character(5) VARCHAR2(5) NOT NULL Program Code ChartField

Prompt Table: PROGRAM_TBL

13 BUDGET_REF Character(8) VARCHAR2(8) NOT NULL Budget Reference

Prompt Table: BUD_REF_TBL

14 AFFILIATE Character(5) VARCHAR2(5) NOT NULL Affiliate

Prompt Table: AFFILIATE_VW

15 AFFILIATE_INTRA1 Character(10) VARCHAR2(10) NOT NULL IntraUnit Affiliate1

Prompt Table: %EDIT_INTRA01

16 AFFILIATE_INTRA2 Character(10) VARCHAR2(10) NOT NULL Operating Unit Affiliate

Prompt Table: %EDIT_INTRA02

17 CHARTFIELD1 Character(10) VARCHAR2(10) NOT NULL Expansion chartfield 1

Prompt Table: CHARTFIELD1_TBL

18 CHARTFIELD2 Character(10) VARCHAR2(10) NOT NULL Expansion Chartfield 2

Prompt Table: CHARTFIELD2_TBL

19 CHARTFIELD3 Character(10) VARCHAR2(10) NOT NULL Expansion Chartfield 3

Prompt Table: CHARTFIELD3_TBL