GL_K_STDLED2_VW

(SQL View)
Index Back

Budget Ledger for Insights

Budget Ledger View for Insights

SELECT DISTINCT A.BUSINESS_UNIT , B.LEDGER , B.SETID , D.LEDGER , A.LEDGER_GROUP , C.LEDGER_GROUP , A.BASE_CURRENCY FROM PS_BU_LED_GRP_TBL A , PS_LED_GRP_LED_TBL B , PS_BU_LED_GRP_TBL C , PS_LED_GRP_LED_TBL D , PS_LED_DEFN_TBL E , PS_LED_TMPLT_TBL F WHERE B.LEDGER_GROUP = A.LEDGER_GROUP AND A.BUSINESS_UNIT = C.BUSINESS_UNIT AND A.LEDGER_TYPE = C.LEDGER_TYPE AND B.SETID = D.SETID AND C.LEDGER_GROUP = D.LEDGER_GROUP AND A.BASE_CURRENCY = C.BASE_CURRENCY AND A.CALENDAR_ID = C.CALENDAR_ID AND ((B.INHERIT_BASE_CUR = 'Y' AND D.INHERIT_BASE_CUR = 'Y') OR (B.INHERIT_BASE_CUR = 'N' AND D.INHERIT_BASE_CUR = 'N' AND B.BASE_CURRENCY = D.BASE_CURRENCY ) OR (B.INHERIT_BASE_CUR = 'Y' AND D.INHERIT_BASE_CUR = 'N' AND A.BASE_CURRENCY = D.BASE_CURRENCY) OR (B.INHERIT_BASE_CUR = 'N' AND D.INHERIT_BASE_CUR = 'Y' AND B.BASE_CURRENCY = A.BASE_CURRENCY)) AND B.SETID=( SELECT SETID FROM PS_SET_CNTRL_REC WHERE SETCNTRLVALUE = A.BUSINESS_UNIT AND RECNAME = 'LED_DEFN_TBL') AND E.SETID = D.SETID AND E.LEDGER = D.LEDGER AND E.LEDGER_TEMPLATE = F.LEDGER_TEMPLATE AND F.DEFAULT_LEDGER = 'B'

# 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 SETID Character(5) VARCHAR2(5) NOT NULL SetID
4 LEDGER_2 Character(10) VARCHAR2(10) NOT NULL Ledger
5 LEDGER_GROUP Character(10) VARCHAR2(10) NOT NULL Ledger Group
6 LEDGER_GROUP_2 Character(10) VARCHAR2(10) NOT NULL Ledger Group
7 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. "