EE_PO_PST_VW

(SQL View)
Index Back

PO Entry Event Post View

PRJ707756: Populate CURRENCY_CD field by value of KK_ACTIVITY_LOG.BASE_CURRENCY.

SELECT A.BUSINESS_UNIT , A.PO_ID , C.UNPOST_SEQ , C.LINE_NBR , C.SCHED_NBR , C.DISTRIB_LINE_NUM , 0 , C.DST_ACCT_TYPE , B.VOUCHER_ID , 'POPOST' , D.KK_TRAN_ID , D.KK_TRAN_DT , D.KK_TRAN_LN , D.RVRSL_FLG , D.SEQNBR , D.BALANCING_LINE , D.REFERENCED_BUDGET , D.CLOSED_VALUE , D.STATISTICS_CODE , D.FOREIGN_CURRENCY , D.STATISTIC_AMOUNT , ' ' , D.BASE_CURRENCY , D.ACCOUNTING_DT , D.ACCOUNTING_PERIOD , D.FISCAL_YEAR , D.BUSINESS_UNIT , E.ASSOCIATED_LED_GRP , ' ' , ' ' , 0 , D.ACCOUNT , D.DEPTID , %subrec(CF16_AN_SBR, D) , %subrec(CFCC1_AN_SBR, D) , D.MONETARY_AMOUNT , D.FOREIGN_AMOUNT , 'N' , B.PROCESS_INSTANCE , D.ENTRY_EVENT , ' ' , ' ' , D.EE_PROC_STATUS , A.MID_ROLL_STATUS , B.KK_ROLLED , D.MONETARY_AMOUNT , D.FOREIGN_AMOUNT , C.EE_SEQ_NUM FROM PS_PO_HDR A , PS_KK_SOURCE_HDR B , PS_KK_SOURCE_LN C , PS_KK_ACTIVITY_LOG D , PS_BU_LED_GRP_TBL E , PS_BUL_CNTL_BUD F WHERE A.BUSINESS_UNIT = B.BUSINESS_UNIT AND A.PO_ID = B.PO_ID AND B.KK_SOURCE_TRAN = 'PO_POENC' AND B.KK_TRAN_ID = C.KK_TRAN_ID AND B.KK_TRAN_DT = C.KK_TRAN_DT AND B.KK_TRAN_ID = D.KK_TRAN_ID AND B.KK_TRAN_DT = D.KK_TRAN_DT AND C.KK_TRAN_LN = D.KK_TRAN_LN AND D.ENTRY_EVENT <> ' ' AND D.EXPIRED_YEAR = 'N' AND D.REFERENCED_BUDGET = 'N' AND D.BUSINESS_UNIT = E.BUSINESS_UNIT AND D.LEDGER_GROUP = E.LEDGER_GROUP AND E.BUSINESS_UNIT = F.BUSINESS_UNIT AND E.LEDGER_GROUP = F.KK_LEDGER_GROUP AND F.KK_DETAIL_LED = 'Y' AND NOT EXISTS ( SELECT 'X' FROM PS_KK_ACTIVITY_LOG DD WHERE D.SEQNBR = DD.SEQNBR AND D.KK_TRAN_ID = DD.KK_TRAN_ID AND D.KK_TRAN_DT = DD.KK_TRAN_DT AND D.KK_TRAN_LN = DD.KK_TRAN_LN AND D.REFERENCED_BUDGET = DD.REFERENCED_BUDGET AND D.BALANCING_LINE = DD.BALANCING_LINE AND D.LEDGER_GROUP = DD.LEDGER_GROUP AND D.LEDGER = DD.LEDGER AND D.FISCAL_YEAR = DD.FISCAL_YEAR AND D.ACCOUNTING_PERIOD = DD.ACCOUNTING_PERIOD AND D.CLOSED_VALUE = 'Y')

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
2 PO_ID Character(10) VARCHAR2(10) NOT NULL Purchase Order
3 UNPOST_SEQ Number(2,0) SMALLINT NOT NULL Identifies the sequence of journal entries when a journal is "unposted". When a journal is posted the UnPost Sequence is automatically set to "0". When a journal is unposted, a new reversing entry is automatically created with an UnPost Sequence of "1".
4 LINE_NBR Number(5,0) INTEGER NOT NULL Line Number: 11/24/08 - Added TARGET label [PC product]
5 SCHED_NBR Number(3,0) SMALLINT NOT NULL Schedule Number
6 DISTRIB_LINE_NUM Number(5,0) INTEGER NOT NULL Distribution Line
7 MOD_SEQ_NBR Number(3,0) SMALLINT NOT NULL Modification Sequence Nbr
8 DST_ACCT_TYPE Character(4) VARCHAR2(4) NOT NULL 07/20/04 st: added RCN for Advance Reconciliation 02/16/98 ebn CN#CM800-2.0 : Added for MISC type for Landed Cost Enhancement 11/11/99 llr: Added ADVP for Payables Advance Payment
9 VOUCHER_ID Character(8) VARCHAR2(8) NOT NULL Voucher ID
10 EE_EVENT_STEP Character(10) VARCHAR2(10) NOT NULL Entry Event Step
11 KK_TRAN_ID Character(10) VARCHAR2(10) NOT NULL Commitment Control Foreign Key for Transaction Identification.
12 KK_TRAN_DT Date(10) DATE Commitment Control Transaction Original processing date. Primary key with KK_TRAN_ID.
13 KK_TRAN_LN Number(9,0) DECIMAL(9) NOT NULL Commitment Control Transaction Line number.
14 RVRSL_FLG Character(1) VARCHAR2(1) NOT NULL Commitment Control Reversal Flag
15 SEQNBR Number(5,0) INTEGER NOT NULL Sequence Number
16 BALANCING_LINE Character(1) VARCHAR2(1) NOT NULL Balancing Line
17 REFERENCED_BUDGET Character(1) VARCHAR2(1) NOT NULL Referenced Budget
18 CLOSED_VALUE Character(1) VARCHAR2(1) NOT NULL Closed Status field value
19 STATISTICS_CODE Character(3) VARCHAR2(3) NOT NULL Statistics Code
20 FOREIGN_CURRENCY Character(3) VARCHAR2(3) NOT NULL Foreign Currency Code
21 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.
22 JRNL_LN_REF Character(10) VARCHAR2(10) NOT NULL Identifies a document, person, invoice, date, or any other piece of information that is associated with a journal line. It can be manually entered, or be defaulted from an accounting entry definition or from a Journal Generator Template. The journal line reference is optional, but helpful if you need to trace back to the source of the transaction.
23 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code
24 ACCOUNTING_DT Date(10) DATE The accounting entry construction date for a given transaction (a generic field that crosses multiple
25 ACCOUNTING_PERIOD Number(3,0) SMALLINT NOT NULL Identifies a time period to which you post transactions. Typically, an accounting period represents a month, but it can also represent a week, a day, or any user-defined interval. An accounting period has a beginning date and an ending date, and is defined in the calendar table.
26 FISCAL_YEAR Number(4,0) SMALLINT NOT NULL Fiscal Year
27 BUSINESS_UNIT_GL Character(5) VARCHAR2(5) NOT NULL GL Business Unit
28 LEDGER_GROUP Character(10) VARCHAR2(10) NOT NULL Ledger Group
29 LEDGER Character(10) VARCHAR2(10) NOT NULL Ledger
30 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.
31 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.
32 ACCOUNT Character(10) VARCHAR2(10) NOT NULL Account
33 DEPTID Character(10) VARCHAR2(10) NOT NULL Department
34 OPERATING_UNIT Character(8) VARCHAR2(8) NOT NULL Operating Unit ChartField

Prompt Table: OPERUNT_BUGL_VW

35 PRODUCT Character(6) VARCHAR2(6) NOT NULL Product ChartField

Prompt Table: PRODUCT_BUGL_VW

36 FUND_CODE Character(5) VARCHAR2(5) NOT NULL Fund Code

Prompt Table: FUND_BUGL_VW

37 CLASS_FLD Character(5) VARCHAR2(5) NOT NULL Class Field

Prompt Table: CLASSCF_BUGL_VW

38 PROGRAM_CODE Character(5) VARCHAR2(5) NOT NULL Program Code ChartField

Prompt Table: PROGRAM_BUGL_VW

39 BUDGET_REF Character(8) VARCHAR2(8) NOT NULL Budget Reference

Prompt Table: BUD_REF_BUGL_VW

40 AFFILIATE Character(5) VARCHAR2(5) NOT NULL Affiliate

Prompt Table: AFFILIATE_VW

41 AFFILIATE_INTRA1 Character(10) VARCHAR2(10) NOT NULL IntraUnit Affiliate1

Prompt Table: %EDIT_INTRA01

42 AFFILIATE_INTRA2 Character(10) VARCHAR2(10) NOT NULL Operating Unit Affiliate

Prompt Table: %EDIT_INTRA02

43 CHARTFIELD1 Character(10) VARCHAR2(10) NOT NULL Expansion chartfield 1

Prompt Table: CF1_BUGL_VW

44 CHARTFIELD2 Character(10) VARCHAR2(10) NOT NULL Expansion Chartfield 2

Prompt Table: CF2_BUGL_VW

45 CHARTFIELD3 Character(10) VARCHAR2(10) NOT NULL Expansion Chartfield 3

Prompt Table: CF3_BUGL_VW

46 BUSINESS_UNIT_PC Character(5) VARCHAR2(5) NOT NULL PC Business Unit
47 PROJECT_ID Character(15) VARCHAR2(15) NOT NULL Project Id ChartField
48 ACTIVITY_ID Character(15) VARCHAR2(15) NOT NULL Activity ID
49 RESOURCE_TYPE Character(5) VARCHAR2(5) NOT NULL Source Type
50 BUDGET_PERIOD Character(8) VARCHAR2(8) NOT NULL Budget Period
51 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.
52 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.
53 GL_DISTRIB_STATUS Character(1) VARCHAR2(1) NOT NULL Distribution Status
C=Available to Contracts
D=Distributed
G=Generated
H=Hold
I=Ignored
J=Creating Journals
M=Modified
N=None
P=To be processed
X=Waiting for Reversal
54 PROCESS_INSTANCE Number(10,0) DECIMAL(10) NOT NULL Process Instance
55 ENTRY_EVENT Character(10) VARCHAR2(10) NOT NULL Entry Event
56 JRNL_DESCR Character(30) VARCHAR2(30) NOT NULL Journal Description
57 OPEN_ITEM_KEY Character(30) VARCHAR2(30) NOT NULL Open Item Key
58 EE_PROC_STATUS Character(1) VARCHAR2(1) NOT NULL Entry Event Line Status
59 MID_ROLL_STATUS Character(1) VARCHAR2(1) NOT NULL Mid Roll Status
60 KK_ROLLED Character(1) VARCHAR2(1) NOT NULL PO Rolled Flag
61 MONETARY_AMOUNT3 Signed Number(28,3) DECIMAL(26,3) NOT NULL Monetary Amount 3
62 FOREIGN_AMOUNT3 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.
63 EE_SEQ_NUM Number(8,0) INTEGER NOT NULL Entry Event Sequence Number