CA_AP_SRCHG_VW

(SQL View)
Index Back

SELECT DISTINCT D.BUSINESS_UNIT , A.CONTRACT_NUM ,A.ACCT_PLAN_ID ,D.CONTRACT_ADMIN ,A.CONTRACT_LINE_NUM ,A.EVENT_NUM ,B.AP_EVENT_STATUS ,CHG.AP_EVENT_STATUS ,A.DST_SEQ_NUM ,A.DST_USE ,A.DST_ID ,A.BUSINESS_UNIT_GL ,A.SEQ_NUM ,C.DESCR ,B.ACCOUNTING_DT ,CHG.ACCOUNTING_DT ,A.ACCOUNT ,A.ALTACCT ,A.DEPTID ,%subrec(CF16_AN_SBR,A) ,%subrec(PC_CF1_N_SBR,A) ,A.STATISTICS_CODE ,A.AMOUNT ,A.CURRENCY_CD ,A.GL_DISTRIB_STATUS FROM PS_CA_AP_SCHEDULE A , PS_CA_AP_EVENT B , PS_CA_DETAIL C , PS_CA_CONTR_HDR D , PS_CA_AP_EVT_CHG CHG WHERE A.CONTRACT_NUM = B.CONTRACT_NUM AND A.CONTRACT_NUM = D.CONTRACT_NUM AND A.ACCT_PLAN_ID = B.ACCT_PLAN_ID AND A.EVENT_NUM = B.EVENT_NUM AND A.CONTRACT_NUM = C.CONTRACT_NUM AND A.CONTRACT_LINE_NUM = C.CONTRACT_LINE_NUM AND a.CONTRACT_NUM = CHG.CONTRACT_NUM AND a.ACCT_PLAN_ID = chg.aCCT_PLAN_ID AND a.EVENT_NUM = chg.EVENT_NUM AND (chg.AP_EVENT_STATUS = 'NEW' OR chg.AP_EVENT_STATUS = 'RDY')

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit

Default Value: OPR_DEF_TBL_CA.BUSINESS_UNIT

Prompt Table: SP_BU_CA_NONVW

2 CONTRACT_NUM Character(25) VARCHAR2(25) NOT NULL Contract

Prompt Table: CA_CNTR_SRCH_VW

3 ACCT_PLAN_ID Character(10) VARCHAR2(10) NOT NULL Revenue Recognition Plan
4 CONTRACT_ADMIN Character(40) VARCHAR2(40) NOT NULL Contract Administrator defined on CABU.
5 CONTRACT_LINE_NUM Number(3,0) SMALLINT NOT NULL Contract Line Num
6 EVENT_NUM Number(3,0) SMALLINT NOT NULL Event Number
7 AP_EVENT_STATUS Character(3) VARCHAR2(3) NOT NULL Event Status
CAN=Cancelled
DON=Completed
HLD=Hold Event
NEW=Pending
PRG=In Progress
RDY=Ready
RIN=Reversal Initiated
RIP=Reversal In Progress
RVS=Reversed
8 AP_CHGEVENT_STATUS Character(3) VARCHAR2(3) NOT NULL Event Status
DON=Completed
HLD=Hold Event
NEW=Pending
PRG=In Progress
RDY=Ready
RIN=Reversal Initiated
RIP=Reveral In Progress
RVS=Reversed
9 DST_SEQ_NUM Number(6,0) INTEGER NOT NULL Distribution Sequence
10 DST_USE Character(3) VARCHAR2(3) NOT NULL Added the following inactive translates for Contracts 8.4: AP Accounts Payable Liability AS Fixed Asset CA Contra Asset CG Cost of Goods Sold CL Contra Liability EX Expense IN Inventory WP Work In Progress
11 DST_ID Character(10) VARCHAR2(10) NOT NULL Distribution Code
12 BUSINESS_UNIT_GL Character(5) VARCHAR2(5) NOT NULL GL Business Unit
13 SEQ_NUM Number(3,0) SMALLINT NOT NULL Sequence
14 DESCR Character(30) VARCHAR2(30) NOT NULL Description
15 ACCOUNTING_DT Date(10) DATE The accounting entry construction date for a given transaction (a generic field that crosses multiple
16 ACCT_DATE Date(10) DATE ACCT_DATE
17 ACCOUNT Character(10) VARCHAR2(10) NOT NULL Account
18 ALTACCT Character(10) VARCHAR2(10) NOT NULL Alternate Account
19 DEPTID Character(10) VARCHAR2(10) NOT NULL Department
20 OPERATING_UNIT Character(8) VARCHAR2(8) NOT NULL Operating Unit ChartField

Prompt Table: OPERUNT_BUGL_VW

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

Prompt Table: PRODUCT_BUGL_VW

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

Prompt Table: FUND_BUGL_VW

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

Prompt Table: CLASSCF_BUGL_VW

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

Prompt Table: PROGRAM_BUGL_VW

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

Prompt Table: BUD_REF_BUGL_VW

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

Prompt Table: AFFILIATE_VW

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

Prompt Table: %EDIT_INTRA01

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

Prompt Table: %EDIT_INTRA02

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

Prompt Table: CF1_BUGL_VW

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

Prompt Table: CF2_BUGL_VW

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

Prompt Table: CF3_BUGL_VW

32 BUSINESS_UNIT_PC Character(5) VARCHAR2(5) NOT NULL PC Business Unit

Prompt Table: %EDIT_BU_PC

33 PROJECT_ID Character(15) VARCHAR2(15) NOT NULL Project Id ChartField

Prompt Table: %EDIT_PROJECT

34 ACTIVITY_ID Character(15) VARCHAR2(15) NOT NULL Activity ID

Prompt Table: %EDIT_ACTIVITY

35 RESOURCE_TYPE Character(5) VARCHAR2(5) NOT NULL Source Type

Prompt Table: PROJ_RESTYPE_FS
Set Control Field: BUSINESS_UNIT_PC

36 RESOURCE_CATEGORY Character(5) VARCHAR2(5) NOT NULL Category

Prompt Table: %EDIT_RES_CAT
Set Control Field: BUSINESS_UNIT_PC

37 RESOURCE_SUB_CAT Character(5) VARCHAR2(5) NOT NULL Subcategory

Prompt Table: %EDIT_RES_SUB
Set Control Field: BUSINESS_UNIT_PC

38 ANALYSIS_TYPE Character(3) VARCHAR2(3) NOT NULL Analysis Type

Prompt Table: %EDIT_ANALYSIS
Set Control Field: BUSINESS_UNIT_PC

39 STATISTICS_CODE Character(3) VARCHAR2(3) NOT NULL Statistics Code
40 AMOUNT Signed Number(28,3) DECIMAL(26,3) NOT NULL Amount
41 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code
42 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