POS_BUDGET_VW

(SQL View)
Index Back

Position View for Budgets

Pulls in the positional records for Budgets. the fields a DEPTID, PRODUCT, PROJECT_ID, AFFILIATE, SCENARIO, are pulled in from subrec CFBD1A_AK_SBR. But since we need to prompt on each field and would need to create a union in a view to prompt on the fieldnames. So have included indiovually.

SELECT A.BUSINESS_UNIT , A.LEDGER , A.SCENARIO , A.CURRENCY_CD , A.STATISTICS_CODE , C.BEGIN_DT , C.END_DT , A.POSTED_TOTAL_AMT , A.POSTED_BASE_AMT , A.BASE_CURRENCY FROM PS_LEDGER_BUDG A , PS_BU_LED_GRP_TBL B , PS_CAL_DETP_TBL C , PS_SET_CNTRL_REC S WHERE A.BUSINESS_UNIT = B.BUSINESS_UNIT AND (A.LEDGER = B.LEDGER OR A.LEDGER = B.LEDGER_GROUP) AND B.CALENDAR_ID = C.CALENDAR_ID AND A.FISCAL_YEAR= C.FISCAL_YEAR AND A.ACCOUNTING_PERIOD = C.ACCOUNTING_PERIOD AND C.SETID = S.SETCNTRLVALUE AND S.RECNAME ='CAL_DETP_TBL'

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
2 LEDGER Character(10) VARCHAR2(10) NOT NULL Ledger
3 SCENARIO Character(10) VARCHAR2(10) NOT NULL A unique key identifier that allows a treasury to classify distinct revaluation events as varying and divergent ca
4 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code
5 STATISTICS_CODE Character(3) VARCHAR2(3) NOT NULL Statistics Code
6 START_DT Date(10) DATE Start Date
7 END_DT Date(10) DATE End Date
8 POSTED_TOTAL_AMT Signed Number(28,3) DECIMAL(26,3) NOT NULL Specifies the net balance of debit and credit amounts that have been posted to a particular ChartField combination.
9 POSTED_BASE_AMT Signed Number(28,3) DECIMAL(26,3) NOT NULL Specifies the net balance of debit and credit amounts that have been posted to a particular ChartField combination, in the base currency of the business unit. Unless the Separate Debit/Credit option is set up, the ledger stores net amounts only.
10 BASE_CURRENCY Character(3) VARCHAR2(3) NOT NULL "Specifies the primary currency for a general ledger business unit, and is sometimes referred to as the ""book"" currency. Each business unit has one base currency. which is usually, but not always, the local currency for the organization. Journal entries are posted to a business unit in its base currency. "