EX_EXC4601_L_VW(SQL View) |
Index Back |
---|---|
EX Transactions BU ViewExpenses Sheet Transactions by Business Unit View. Used by queries for Crystal Report generation |
SELECT A.SHEET_ID , E1.LANGUAGE_CD , A.EMPLID , A.REFERENCE_ID , A.BUSINESS_PURPOSE , A.SUBMISSION_DATE , B.BUSINESS_UNIT_GL , B.ACCOUNT , B.ALTACCT , B.DEPTID , %subrec(CF16_AN_SBR,B) , B.PROJECT_ID , C.NAME , D.DESCR , E1.DESCRSHORT , F1.DESCR , B.TXN_CURRENCY_CD , SUM(B.TXN_AMOUNT) FROM PS_EX_SHEET_HDR A , PS_EX_SHEET_DIST B , PS_PERSONAL_DATA C , PS_BUS_UNIT_LANG D , PS_GL_ACCOUNT_TBL E , PS_GL_ACCOUNT_LANG E1 , PS_SET_CNTRL_REC E2 , PS_EX_PURPOSE_TBL F , PS_EX_PURPOSE_LNG F1 WHERE E.ACCOUNT = B.ACCOUNT AND E1.ACCOUNT=B.ACCOUNT AND E1.SETID=E.SETID AND E1.EFFDT=E.EFFDT AND E2.SETCNTRLVALUE = B.BUSINESS_UNIT_GL AND E2.RECNAME = 'GL_ACCOUNT_TBL' AND E2.SETID = E.SETID AND F.BUSINESS_PURPOSE = A.BUSINESS_PURPOSE AND F.SETID = A.SETID AND F1.BUSINESS_PURPOSE=F.BUSINESS_PURPOSE AND F1.SETID=F.SETID AND A.SHEET_ID = B.SHEET_ID AND A.EMPLID = C.EMPLID AND B.BUSINESS_UNIT_GL = D.BUSINESS_UNIT AND E.EFFDT = ( SELECT MAX(EFFDT) FROM PS_GL_ACCOUNT_TBL WHERE E.SETID = SETID AND E.ACCOUNT = ACCOUNT AND EFFDT <= %CurrentDateIn) AND E.EFF_STATUS = 'A' AND F.EFFDT = ( SELECT MAX(EFFDT) FROM PS_EX_PURPOSE_TBL WHERE F.SETID = SETID AND F.BUSINESS_PURPOSE = BUSINESS_PURPOSE AND EFFDT <= %CurrentDateIn) AND F.EFF_STATUS = 'A' GROUP BY A.SHEET_ID, A.EMPLID, A.REFERENCE_ID, A.BUSINESS_PURPOSE, A.SUBMISSION_DATE, B.BUSINESS_UNIT_GL, B.ACCOUNT, B.ALTACCT, B.DEPTID, %subrec(CF16_AN_SBR,B), B.PROJECT_ID, C.NAME, D.DESCR, E1.DESCRSHORT, E1.LANGUAGE_CD, F1.DESCR, B.TXN_CURRENCY_CD |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | SHEET_ID | Character(10) | VARCHAR2(10) NOT NULL | Report ID |
2 | LANGUAGE_CD | Character(3) | VARCHAR2(3) NOT NULL | Language Code |
3 | EMPLID | Character(11) | VARCHAR2(11) NOT NULL | Employee ID |
4 | REFERENCE_ID | Character(10) | VARCHAR2(10) NOT NULL | Reference ID |
5 | BUSINESS_PURPOSE | Character(5) | VARCHAR2(5) NOT NULL | Business Purpose |
6 | SUBMISSION_DATE | Date(10) | DATE | Submission Date |
7 | BUSINESS_UNIT_GL | Character(5) | VARCHAR2(5) NOT NULL | GL Business Unit |
8 | ACCOUNT | Character(10) | VARCHAR2(10) NOT NULL | Account |
9 | ALTACCT | Character(10) | VARCHAR2(10) NOT NULL | Alternate Account |
10 | DEPTID | Character(10) | VARCHAR2(10) NOT NULL |
Department
Prompt Table: DEPTID_BUGL_VW |
11 | OPERATING_UNIT | Character(8) | VARCHAR2(8) NOT NULL |
Operating Unit ChartField
Prompt Table: OPERUNT_BUGL_VW |
12 | PRODUCT | Character(6) | VARCHAR2(6) NOT NULL |
Product ChartField
Prompt Table: PRODUCT_BUGL_VW |
13 | FUND_CODE | Character(5) | VARCHAR2(5) NOT NULL |
Fund Code
Prompt Table: FUND_BUGL_VW |
14 | CLASS_FLD | Character(5) | VARCHAR2(5) NOT NULL |
Class Field
Prompt Table: CLASSCF_BUGL_VW |
15 | PROGRAM_CODE | Character(5) | VARCHAR2(5) NOT NULL |
Program Code ChartField
Prompt Table: PROGRAM_BUGL_VW |
16 | BUDGET_REF | Character(8) | VARCHAR2(8) NOT NULL |
Budget Reference
Prompt Table: BUD_REF_BUGL_VW |
17 | AFFILIATE | Character(5) | VARCHAR2(5) NOT NULL |
Affiliate
Prompt Table: AFFILIATE_VW |
18 | AFFILIATE_INTRA1 | Character(10) | VARCHAR2(10) NOT NULL |
IntraUnit Affiliate1
Prompt Table: %EDIT_INTRA01 |
19 | AFFILIATE_INTRA2 | Character(10) | VARCHAR2(10) NOT NULL |
Operating Unit Affiliate
Prompt Table: %EDIT_INTRA02 |
20 | CHARTFIELD1 | Character(10) | VARCHAR2(10) NOT NULL |
Expansion chartfield 1
Prompt Table: CF1_BUGL_VW |
21 | CHARTFIELD2 | Character(10) | VARCHAR2(10) NOT NULL |
Expansion Chartfield 2
Prompt Table: CF2_BUGL_VW |
22 | CHARTFIELD3 | Character(10) | VARCHAR2(10) NOT NULL |
Expansion Chartfield 3
Prompt Table: CF3_BUGL_VW |
23 | PROJECT_ID | Character(15) | VARCHAR2(15) NOT NULL | Project Id ChartField |
24 | NAME | Character(50) | VARCHAR2(50) NOT NULL | Name |
25 | DESCR_BU | Character(30) | VARCHAR2(30) NOT NULL | Business Unit Description |
26 | DESCRSHORT | Character(10) | VARCHAR2(10) NOT NULL | Short Description |
27 | DESCR | Character(30) | VARCHAR2(30) NOT NULL | Description |
28 | CURRENCY_CD | Character(3) | VARCHAR2(3) NOT NULL | Currency Code |
29 | MONETARY_AMOUNT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Specifies the monetary amount of a debit or credit in the business unit base currency. Debit entries are positive and credit entries are negative. This amount is only zero if associated with a statistical account. |