KK_K_LEDTYPE_VW

(SQL View)
Index Back

BU, Ledger Group and Ledger


SELECT A.BUSINESS_UNIT , A.LEDGER_GROUP , B.LEDGER , B.LEDGER_TYPE_KK , A.CALENDAR_ID , B.AFFECT_SPEND_OPTN , A.KK_INCLUDE_PRE_ENC , C.LEDGER_GROUP_TYPE , X.XLATLONGNAME FROM PS_BU_LED_GRP_TBL A , PS_LED_GRP_LED_TBL B , PS_LED_GRP_TBL C , PS_SET_CNTRL_REC D , PSXLATITEM X WHERE A.LEDGER_GROUP = B.LEDGER_GROUP AND A.BUSINESS_UNIT = D.SETCNTRLVALUE AND D.RECNAME = 'LED_GRP_TBL' AND D.SETID = C.SETID AND B.SETID = C.SETID AND B.LEDGER_GROUP = C.LEDGER_GROUP AND ((C.LEDGER_GROUP_TYPE = 'E' AND X.FIELDNAME = 'LEDGER_TYPE_KK_E') OR (C.LEDGER_GROUP_TYPE = 'R' AND X.FIELDNAME = 'LEDGER_TYPE_KK_R')) AND X.FIELDVALUE = B.LEDGER_TYPE_KK AND %EffdtCheck(PSXLATITEM X1, X, %CurrentDateIn) AND X.EFF_STATUS = 'A'

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
2 LEDGER_GROUP Character(10) VARCHAR2(10) NOT NULL Ledger Group
3 LEDGER Character(10) VARCHAR2(10) NOT NULL Ledger
4 LEDGER_TYPE_KK Character(1) VARCHAR2(1) NOT NULL Commitment Control Ledger Type
0=Budget
1=Expense or Recognized Revenue
2=Encumbrance
3=Pre-Encumbrance
4=Collected Revenue
5=Planned
5 CALENDAR_ID Character(2) VARCHAR2(2) NOT NULL Calendar ID
6 AFFECT_SPEND_OPTN Character(1) VARCHAR2(1) NOT NULL Affect Spending Authority
7 KK_INCLUDE_PRE_ENC Character(1) VARCHAR2(1) NOT NULL Indicator - Include Pre-Encumbrance in RSA
1=Include
2=Exclude
3=Default
8 LEDGER_GROUP_TYPE Character(1) VARCHAR2(1) NOT NULL Ledger Group Type
A=Average Daily Balance
B=Budget
E=Commitment Control Expense
R=Commitment Control Revenue
S=Standard
T=Translation
9 DESCR Character(30) VARCHAR2(30) NOT NULL Description