KK_AF_SRCH_L_VW(SQL View) |
Index Back |
---|---|
Journal Line Data For AFJournal Line Data For AF Line Level Approval |
SELECT DISTINCT H.BUSINESS_UNIT , H.JOURNAL_ID , H.JOURNAL_DATE , L.JOURNAL_LINE , H.LEDGER_GROUP , L.LEDGER , L.BUDGET_PERIOD , L.ACCOUNT , L.DEPTID , %subrec(CF12_AN_SBR, L) , L.BUSINESS_UNIT_PC , L.PROJECT_ID , L.ACTIVITY_ID , L.RESOURCE_TYPE , L.LINE_DESCR , L.FOREIGN_CURRENCY , L.FOREIGN_AMOUNT , L.CURRENCY_CD , L.MONETARY_AMOUNT , L.STATISTICS_CODE , L.STATISTIC_AMOUNT , L.KK_APPR_STATUS_LN , X.EOAWREQUESTOR_ID , U.OPRID , U.EOAWSTEP_STATUS , H.ATTACHMENT_EXIST , H.KK_BUDG_TRANS_TYPE FROM PS_KK_BUDGET_HDR H , PS_KK_BUDGET_LN L , PS_KK_AF_XREF X , PS_EOAW_STEPINST S , PS_EOAW_USERINST U WHERE H.BUSINESS_UNIT = L.BUSINESS_UNIT AND H.JOURNAL_ID = L.JOURNAL_ID AND H.JOURNAL_DATE = L.JOURNAL_DATE AND H.UNPOST_SEQ = L.UNPOST_SEQ AND H.BUSINESS_UNIT = X.BUSINESS_UNIT AND H.JOURNAL_ID = X.JOURNAL_ID AND H.JOURNAL_DATE = X.JOURNAL_DATE AND X.JOURNAL_LINE = L.JOURNAL_LINE AND X.EOAWPARENT_THREAD = ( SELECT MAX(X1.EOAWPARENT_THREAD) FROM PS_KK_AF_XREF X1 WHERE X1.BUSINESS_UNIT=X.BUSINESS_UNIT AND X1.JOURNAL_ID=X.JOURNAL_ID AND X1.JOURNAL_DATE=X.JOURNAL_DATE ) AND X.EOAWTHREAD_ID = S.EOAWTHREAD_ID AND X.EOAWPRCS_ID = S.EOAWPRCS_ID AND X.EOAWDEFN_ID = S.EOAWDEFN_ID AND S.EOAWSTEP_INSTANCE = U.EOAWSTEP_INSTANCE |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL |
Business Unit
Prompt Table: SP_BU_GL_NONVW |
2 | JOURNAL_ID | Character(10) | VARCHAR2(10) NOT NULL | Identifies a journal entry, consisting of a header and one or more lines. The Journal ID itself does not have to be unique, but together with the journal business unit and journal date, it forms a unique journal identifier. |
3 | JOURNAL_DATE | Date(10) | DATE | Specifies the date the journal was created. |
4 | JOURNAL_LINE | Number(9,0) | DECIMAL(9) NOT NULL | Uniquely identifies a journal line with a sequence number. Within a single journal entry, the line sequence begins with 1 and automatically increments by 1 for each succeeding journal line. There can be any number of lines associated with a journal header. |
5 | LEDGER_GROUP | Character(10) | VARCHAR2(10) NOT NULL | Ledger Group |
6 | LEDGER | Character(10) | VARCHAR2(10) NOT NULL | Ledger |
7 | BUDGET_PERIOD | Character(8) | VARCHAR2(8) NOT NULL | Budget Period |
8 | ACCOUNT | Character(10) | VARCHAR2(10) NOT NULL | Account |
9 | DEPTID | Character(10) | VARCHAR2(10) NOT NULL | Department |
10 | OPERATING_UNIT | Character(8) | VARCHAR2(8) NOT NULL | Operating Unit ChartField |
11 | PRODUCT | Character(6) | VARCHAR2(6) NOT NULL | Product ChartField |
12 | FUND_CODE | Character(5) | VARCHAR2(5) NOT NULL | Fund Code |
13 | CLASS_FLD | Character(5) | VARCHAR2(5) NOT NULL | Class Field |
14 | PROGRAM_CODE | Character(5) | VARCHAR2(5) NOT NULL | Program Code ChartField |
15 | BUDGET_REF | Character(8) | VARCHAR2(8) NOT NULL | Budget Reference |
16 | AFFILIATE | Character(5) | VARCHAR2(5) NOT NULL | Affiliate |
17 | AFFILIATE_INTRA1 | Character(10) | VARCHAR2(10) NOT NULL | IntraUnit Affiliate1 |
18 | AFFILIATE_INTRA2 | Character(10) | VARCHAR2(10) NOT NULL | Operating Unit Affiliate |
19 | CHARTFIELD1 | Character(10) | VARCHAR2(10) NOT NULL | Expansion chartfield 1 |
20 | CHARTFIELD2 | Character(10) | VARCHAR2(10) NOT NULL | Expansion Chartfield 2 |
21 | CHARTFIELD3 | Character(10) | VARCHAR2(10) NOT NULL | Expansion Chartfield 3 |
22 | BUSINESS_UNIT_PC | Character(5) | VARCHAR2(5) NOT NULL | PC Business Unit |
23 | PROJECT_ID | Character(15) | VARCHAR2(15) NOT NULL | Project Id ChartField |
24 | ACTIVITY_ID | Character(15) | VARCHAR2(15) NOT NULL | Activity ID |
25 | RESOURCE_TYPE | Character(5) | VARCHAR2(5) NOT NULL | Source Type |
26 | LINE_DESCR | Character(30) | VARCHAR2(30) NOT NULL | Describes the nature of a journal line. It is defaulted from the description of the Account ChartField or manually entered. |
27 | FOREIGN_CURRENCY | Character(3) | VARCHAR2(3) NOT NULL | Foreign Currency Code |
28 | FOREIGN_AMOUNT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Specifies the monetary amount of a debit or credit (accounting entry line) in the entry currency of the item. The sum of FOREIGN_AMOUNT values on AR lines should equal the ENTRY_AMT on the pending item. |
29 | CURRENCY_CD | Character(3) | VARCHAR2(3) NOT NULL | Currency Code |
30 | 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. |
31 | STATISTICS_CODE | Character(3) | VARCHAR2(3) NOT NULL | Statistics Code |
32 | STATISTIC_AMOUNT | Signed Number(17,2) | DECIMAL(15,2) NOT NULL | Specifies the amount associated with a statistical account on a journal line or a distribution line. It represents a quantity rather than a monetary amount and is qualified by the Unit of Measure associated with the STATISTICS_CODE or statistics ACCOUNT. |
33 | KK_APPR_STATUS_LN | Character(1) | VARCHAR2(1) NOT NULL |
Approval Line Status
0=Not Required 1=Not Submitted 2=Pending 3=Approved 4=Denied 6=Canceled |
34 | REQUESTOR_ID | Character(30) | VARCHAR2(30) NOT NULL | Requestor id |
35 | OPRID | Character(30) | VARCHAR2(30) NOT NULL | A user's ID (see PSOPRDEFN). |
36 | GL_APPR_STATUS | Character(1) | VARCHAR2(1) NOT NULL |
Approval Status
A=Approved B=Pushed Back D=Denied H=On Hold P=Pending |
37 | ATTACHMENT_EXIST | Character(1) | VARCHAR2(1) NOT NULL |
Attachments Exist
N=N Y=Y |
38 | KK_BUDG_TRANS_TYPE | Character(1) | VARCHAR2(1) NOT NULL |
Budget Entry Type
0=Original 1=Adjustment 2=Transfer Adjustment 3=Transfer Original 4=Closing 5=Roll Forward |