PO_EE_REVSL_VW

(SQL View)
Index Back

PO Acctg Entry Table


SELECT DISTINCT EE.BUSINESS_UNIT , EE.PO_ID , EE.UNPOST_SEQ , 'EE_REVRSAL' , EE.LINE_NBR , EE.SCHED_NBR , EE.DISTRIB_LINE_NUM , EE.MOD_SEQ_NBR , EE.DST_ACCT_TYPE , EE.VOUCHER_ID , EE.EVENT_LINE , HDR.VENDOR_ID , HDR.CHNG_ORD_BATCH , HDR.PO_STATUS , H.KK_SOURCE_TRAN , EE.KK_TRAN_ID , EE.KK_TRAN_DT , EE.GL_DISTRIB_STATUS , EE.ENTRY_EVENT , EE.BUSINESS_UNIT_GL , EE.LEDGER_GROUP , EE.LEDGER , EE.JOURNAL_ID , EE.ACCOUNT , EE.ALTACCT , EE.MONETARY_AMOUNT , EE.FOREIGN_CURRENCY , EE.CLOSED_VALUE , EE.ACCOUNTING_PERIOD , EE.FISCAL_YEAR , EE.DEPTID , %subrec(CF16_AN_SBR , EE) , %subrec(CFCC1_AN_SBR, EE) , ' ' FROM PS_EE_PO_ACCTG_LN EE , PS_KK_SOURCE_HDR H , PS_PO_HDR HDR WHERE EE.BUSINESS_UNIT = H.BUSINESS_UNIT AND EE.BUSINESS_UNIT = HDR.BUSINESS_UNIT AND EE.PO_ID = HDR.PO_ID AND EE.APPL_JRNL_ID <> ' ' AND EE_EVENT_STEP = 'POREVERSAL' AND EE.KK_TRAN_ID = H.KK_TRAN_ID AND EE.KK_TRAN_DT = H.KK_TRAN_DT

# 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 APPL_JRNL_ID Character(10) VARCHAR2(10) NOT NULL Journal Template
5 LINE_NBR Number(5,0) INTEGER NOT NULL Line Number: 11/24/08 - Added TARGET label [PC product]
6 SCHED_NBR Number(3,0) SMALLINT NOT NULL Schedule Number
7 DISTRIB_LINE_NUM Number(5,0) INTEGER NOT NULL Distribution Line
8 MOD_SEQ_NBR Number(3,0) SMALLINT NOT NULL Modification Sequence Nbr
9 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
10 VOUCHER_ID Character(8) VARCHAR2(8) NOT NULL Voucher ID
11 EVENT_LINE Number(5,0) INTEGER NOT NULL Entry Event Line Number
12 VENDOR_ID Character(10) VARCHAR2(10) NOT NULL Vendor Identifier
13 CHNG_ORD_BATCH Number(3,0) SMALLINT NOT NULL Change Order Number
14 PO_STATUS Character(2) VARCHAR2(2) NOT NULL PO Status
A=Approved
C=Complete
D=Dispatched
DA=Denied
I=Initial
LD=Line Denied
O=Open
PA=Pending Approval/Approved
PX=Pending Cancel
X=Canceled
15 KK_SOURCE_TRAN Character(10) VARCHAR2(10) NOT NULL Source Transaction Type
16 KK_TRAN_ID Character(10) VARCHAR2(10) NOT NULL Commitment Control Foreign Key for Transaction Identification.
17 KK_TRAN_DT Date(10) DATE Commitment Control Transaction Original processing date. Primary key with KK_TRAN_ID.
18 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
19 ENTRY_EVENT Character(10) VARCHAR2(10) NOT NULL Entry Event
20 BUSINESS_UNIT_GL Character(5) VARCHAR2(5) NOT NULL GL Business Unit
21 LEDGER_GROUP Character(10) VARCHAR2(10) NOT NULL Ledger Group
22 LEDGER Character(10) VARCHAR2(10) NOT NULL Ledger
23 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.
24 ACCOUNT Character(10) VARCHAR2(10) NOT NULL Account
25 ALTACCT Character(10) VARCHAR2(10) NOT NULL Alternate Account
26 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.
27 BASE_CURRENCY Character(3) VARCHAR2(3) NOT NULL "Specifies the primary currency for a general ledger business unit, and is sometimes referred to as the ""book"" currency. Each business unit has one base currency. which is usually, but not always, the local currency for the organization. Journal entries are posted to a business unit in its base currency. "
28 CLOSED_VALUE Character(1) VARCHAR2(1) NOT NULL Closed Status field value
29 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.
30 FISCAL_YEAR Number(4,0) SMALLINT NOT NULL Fiscal Year
31 DEPTID Character(10) VARCHAR2(10) NOT NULL Department
32 OPERATING_UNIT Character(8) VARCHAR2(8) NOT NULL Operating Unit ChartField

Prompt Table: OPERUNT_BUGL_VW

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

Prompt Table: PRODUCT_BUGL_VW

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

Prompt Table: FUND_BUGL_VW

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

Prompt Table: CLASSCF_BUGL_VW

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

Prompt Table: PROGRAM_BUGL_VW

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

Prompt Table: BUD_REF_BUGL_VW

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

Prompt Table: AFFILIATE_VW

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

Prompt Table: %EDIT_INTRA01

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

Prompt Table: %EDIT_INTRA02

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

Prompt Table: CF1_BUGL_VW

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

Prompt Table: CF2_BUGL_VW

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

Prompt Table: CF3_BUGL_VW

44 BUSINESS_UNIT_PC Character(5) VARCHAR2(5) NOT NULL PC Business Unit
45 PROJECT_ID Character(15) VARCHAR2(15) NOT NULL Project Id ChartField
46 ACTIVITY_ID Character(15) VARCHAR2(15) NOT NULL Activity ID
47 RESOURCE_TYPE Character(5) VARCHAR2(5) NOT NULL Source Type
48 BUDGET_PERIOD Character(8) VARCHAR2(8) NOT NULL Budget Period
49 REF_REVERSAL_ID Character(10) VARCHAR2(10) NOT NULL Reference Reversal ID