CAL_CUR_YR_VW

(SQL View)
Index Back

Current Fiscal Year by BU


select b.business_unit, c.calendar_id, c.fiscal_year, c.accounting_period from PS_BUS_UNIT_TBL_AR b, ps_cal_detp_tbl c where c.setid=( SELECT SETID FROM PS_SET_CNTRL_REC WHERE SETCNTRLVALUE = b.business_unit AND RECNAME = 'CAL_DEFN_TBL') and c.calendar_id = (select calendar_id from ps_bus_unit_opt_ar a where a.setid= ( SELECT SETID FROM PS_SET_CNTRL_REC WHERE SETCNTRLVALUE = b.business_unit AND RECNAME = 'BUS_UNIT_OPT_AR')) and %currentdatein between c.begin_dt and c.end_dt

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
2 CALENDAR_ID Character(2) VARCHAR2(2) NOT NULL Calendar ID

Prompt Table: CAL_DETL_VW

3 FISCAL_YEAR Number(4,0) SMALLINT NOT NULL Fiscal Year
4 ACCOUNTING_PERIOD Number(3,0) SMALLINT NOT NULL Identifies a time period to which you post transactions. Typically, an accounting period represents a month, but it can also represent a week, a day, or any user-defined interval. An accounting period has a beginning date and an ending date, and is defined in the calendar table.