GM_PT_PRN_C_VW

(SQL View)
Index Back

Cost Share pre encumbrance


SELECT D.OPRID , A.BUSINESS_UNIT_PC , A.PROJECT_ID , A.ACTIVITY_ID , A.TRANS_ID , F.BUSINESS_UNIT , F.CONTRACT_NUM , A.BUDGET_PERIOD_GM , A.ACCOUNTING_DT , A.TRANSACTION_DT , A.ACCOUNT , B.DESCR , A.PRE_ENCUMBERED_AMT , A.REQ_ID , A.CURRENCY_CD , A.DEPTID , %subrec(CF12_AN_SBR, A) , A.RESOURCE_TYPE , A.RESOURCE_CATEGORY , A.RESOURCE_SUB_CAT FROM PS_GM_PT_PRJ_TRN A , PS_GL_ACCOUNT_TBL B , PS_GM_PT_ACC_LVL3 C , PSOPRDEFN D , PS_GM_PT_PROJECT F WHERE (A.AMOUNT_TYPE = 'CSD' OR A.AMOUNT_TYPE = 'CSF') AND A.AMOUNT_TYPE1 = '3' AND F.BUSINESS_UNIT_PC = A.BUSINESS_UNIT_PC AND F.PROJECT_ID = A.PROJECT_ID AND C.BUSINESS_UNIT_PC = A.BUSINESS_UNIT_PC AND C.PROJECT_ID = A.PROJECT_ID AND D.EMPLID = C.EMPLID AND B.ACCOUNT = A.ACCOUNT AND B.SETID = ( SELECT CTRL.SETID FROM PS_SET_CNTRL_REC CTRL WHERE A.BUSINESS_UNIT_PC = CTRL.SETCNTRLVALUE AND CTRL.RECNAME = 'GL_ACCOUNT_TBL' ) AND B.EFFDT = ( SELECT MAX(B1.EFFDT) FROM PS_GL_ACCOUNT_TBL B1 WHERE B1.SETID = B.SETID AND B1.ACCOUNT = B.ACCOUNT AND B1.EFFDT <= %CurrentDateIn AND B1.EFF_STATUS = 'A')

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 OPRID Character(30) VARCHAR2(30) NOT NULL A user's ID (see PSOPRDEFN).
2 BUSINESS_UNIT_PC Character(5) VARCHAR2(5) NOT NULL PC Business Unit
3 PROJECT_ID Character(15) VARCHAR2(15) NOT NULL Project Id ChartField
4 ACTIVITY_ID Character(15) VARCHAR2(15) NOT NULL Activity ID
5 TRANS_ID Character(50) VARCHAR2(50) NOT NULL Transaction ID
6 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
7 CONTRACT_NUM Character(25) VARCHAR2(25) NOT NULL Contract
8 BUDGET_PERIOD_GM Number(3,0) SMALLINT NOT NULL BUDGET_PERIOD_GM
9 ACCOUNTING_DT Date(10) DATE The accounting entry construction date for a given transaction (a generic field that crosses multiple
10 TRANSACTION_DT Date(10) DATE Transaction date (often used as trade date)
11 ACCOUNT Character(10) VARCHAR2(10) NOT NULL Account
12 DESCR Character(30) VARCHAR2(30) NOT NULL Description
13 AMOUNT Signed Number(28,3) DECIMAL(26,3) NOT NULL Amount
14 REQ_ID Character(10) VARCHAR2(10) NOT NULL Requisition ID
15 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code
16 DEPTID Character(10) VARCHAR2(10) NOT NULL Department
17 OPERATING_UNIT Character(8) VARCHAR2(8) NOT NULL Operating Unit ChartField
18 PRODUCT Character(6) VARCHAR2(6) NOT NULL Product ChartField
19 FUND_CODE Character(5) VARCHAR2(5) NOT NULL Fund Code
20 CLASS_FLD Character(5) VARCHAR2(5) NOT NULL Class Field
21 PROGRAM_CODE Character(5) VARCHAR2(5) NOT NULL Program Code ChartField
22 BUDGET_REF Character(8) VARCHAR2(8) NOT NULL Budget Reference
23 AFFILIATE Character(5) VARCHAR2(5) NOT NULL Affiliate
24 AFFILIATE_INTRA1 Character(10) VARCHAR2(10) NOT NULL IntraUnit Affiliate1
25 AFFILIATE_INTRA2 Character(10) VARCHAR2(10) NOT NULL Operating Unit Affiliate
26 CHARTFIELD1 Character(10) VARCHAR2(10) NOT NULL Expansion chartfield 1
27 CHARTFIELD2 Character(10) VARCHAR2(10) NOT NULL Expansion Chartfield 2
28 CHARTFIELD3 Character(10) VARCHAR2(10) NOT NULL Expansion Chartfield 3
29 RESOURCE_TYPE Character(5) VARCHAR2(5) NOT NULL Source Type
30 RESOURCE_CATEGORY Character(5) VARCHAR2(5) NOT NULL Category
31 RESOURCE_SUB_CAT Character(5) VARCHAR2(5) NOT NULL Subcategory