EE_PO_DN_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 , 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 , 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 = 'Y' AND D.REFERENCED_BUDGET = 'N' AND D.RVRSL_FLG <> 'Y' 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'

# 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 KK_TRAN_ID Character(10) VARCHAR2(10) NOT NULL Commitment Control Foreign Key for Transaction Identification.
11 KK_TRAN_DT Date(10) DATE Commitment Control Transaction Original processing date. Primary key with KK_TRAN_ID.
12 KK_TRAN_LN Number(9,0) DECIMAL(9) NOT NULL Commitment Control Transaction Line number.
13 RVRSL_FLG Character(1) VARCHAR2(1) NOT NULL Commitment Control Reversal Flag
14 SEQNBR Number(5,0) INTEGER NOT NULL Sequence Number
15 BALANCING_LINE Character(1) VARCHAR2(1) NOT NULL Balancing Line
16 REFERENCED_BUDGET Character(1) VARCHAR2(1) NOT NULL Referenced Budget
17 CLOSED_VALUE Character(1) VARCHAR2(1) NOT NULL Closed Status field value
18 STATISTICS_CODE Character(3) VARCHAR2(3) NOT NULL Statistics Code
19 FOREIGN_CURRENCY Character(3) VARCHAR2(3) NOT NULL Foreign Currency Code
20 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.
21 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.
22 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code
23 ACCOUNTING_DT Date(10) DATE The accounting entry construction date for a given transaction (a generic field that crosses multiple
24 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.
25 FISCAL_YEAR Number(4,0) SMALLINT NOT NULL Fiscal Year
26 BUSINESS_UNIT_GL Character(5) VARCHAR2(5) NOT NULL GL Business Unit
27 LEDGER_GROUP Character(10) VARCHAR2(10) NOT NULL Ledger Group
28 LEDGER Character(10) VARCHAR2(10) NOT NULL Ledger
29 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.
30 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.
31 ACCOUNT Character(10) VARCHAR2(10) NOT NULL Account
32 DEPTID Character(10) VARCHAR2(10) NOT NULL Department
33 OPERATING_UNIT Character(8) VARCHAR2(8) NOT NULL Operating Unit ChartField

Prompt Table: OPERUNT_BUGL_VW

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

Prompt Table: PRODUCT_BUGL_VW

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

Prompt Table: FUND_BUGL_VW

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

Prompt Table: CLASSCF_BUGL_VW

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

Prompt Table: PROGRAM_BUGL_VW

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

Prompt Table: BUD_REF_BUGL_VW

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

Prompt Table: AFFILIATE_VW

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

Prompt Table: %EDIT_INTRA01

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

Prompt Table: %EDIT_INTRA02

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

Prompt Table: CF1_BUGL_VW

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

Prompt Table: CF2_BUGL_VW

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

Prompt Table: CF3_BUGL_VW

45 BUSINESS_UNIT_PC Character(5) VARCHAR2(5) NOT NULL PC Business Unit
46 PROJECT_ID Character(15) VARCHAR2(15) NOT NULL Project Id ChartField
47 ACTIVITY_ID Character(15) VARCHAR2(15) NOT NULL Activity ID
48 RESOURCE_TYPE Character(5) VARCHAR2(5) NOT NULL Source Type
49 BUDGET_PERIOD Character(8) VARCHAR2(8) NOT NULL Budget Period
50 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.
51 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.
52 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
53 PROCESS_INSTANCE Number(10,0) DECIMAL(10) NOT NULL Process Instance
54 ENTRY_EVENT Character(10) VARCHAR2(10) NOT NULL Entry Event
55 JRNL_DESCR Character(30) VARCHAR2(30) NOT NULL Journal Description
56 OPEN_ITEM_KEY Character(30) VARCHAR2(30) NOT NULL Open Item Key
57 EE_PROC_STATUS Character(1) VARCHAR2(1) NOT NULL Entry Event Line Status
58 MID_ROLL_STATUS Character(1) VARCHAR2(1) NOT NULL Mid Roll Status
59 KK_ROLLED Character(1) VARCHAR2(1) NOT NULL PO Rolled Flag
60 EE_SEQ_NUM Number(8,0) INTEGER NOT NULL Entry Event Sequence Number