CNTRCT_DSTRQ_VW

(SQL View)
Index Back

Contract Req Xref Distribution

This view contains the same fields and key structure as CNTRCT_DSTPO_VW, except this one joins with CNTRCT_RFQ_XREF to obtain the distribution information that originated from a requisition.

SELECT A.SETID , A.CNTRCT_ID , A.VERSION_NBR , A.CNTRCT_LINE_NBR , A.BUSINESS_UNIT , A.CNTRCT_TYPE , A.DISTRIB_LINE_NUM , A.LOCATION , A.ACCOUNT , A.ALTACCT , A.DEPTID , A.STATISTICS_CODE , A.STATISTIC_AMOUNT , A.BUSINESS_UNIT_GL , A.DESCR , A.CURRENCY_CD ,%subrec(CF16_AN_SBR,A) , A.PROJECT_ID , A.BUSINESS_UNIT_PC , A.ACTIVITY_ID , A.ANALYSIS_TYPE , A.RESOURCE_TYPE , A.RESOURCE_CATEGORY , A.RESOURCE_SUB_CAT , A.PROFILE_ID , A.BUSINESS_UNIT_AM , A.FINANCIAL_ASSET_SW , A.BUSINESS_UNIT_IN , A.RT_TYPE , B.DISTRIB_PCT , A.COST_TYPE , A.CAP_NUM , A.CAP_SEQUENCE FROM PS_CNTRCT_DSTRB A , PS_CNTRCT_RFQ_XREF B WHERE A.CNTRCT_TYPE = 'PO' AND %Join(COMMON_KEYS, CNTRCT_DSTRB A, CNTRCT_RFQ_XREF B)

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 SETID Character(5) VARCHAR2(5) NOT NULL SetID
2 CNTRCT_ID Character(25) VARCHAR2(25) NOT NULL Buying Agreement ID
3 VERSION_NBR Number(5,0) INTEGER NOT NULL Contract Version number
4 CNTRCT_LINE_NBR Number(5,0) INTEGER NOT NULL Buying Agreement Line Nbr
5 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
6 CNTRCT_TYPE Character(2) VARCHAR2(2) NOT NULL Contract Type
AP=Recurring Voucher
GN=General Contract
MS=Master Contract
PO=Purchase Order
7 DISTRIB_LINE_NUM Number(5,0) INTEGER NOT NULL Distribution Line
8 LOCATION Character(10) VARCHAR2(10) NOT NULL Location Code

Prompt Table: LOCATION_TBL

9 ACCOUNT Character(10) VARCHAR2(10) NOT NULL Account

Prompt Table: %EDIT_ACCOUNT

10 ALTACCT Character(10) VARCHAR2(10) NOT NULL Alternate Account

Prompt Table: %EDIT_ALTACCT
Set Control Field: BUSINESS_UNIT_GL

11 DEPTID Character(10) VARCHAR2(10) NOT NULL Department

Prompt Table: DEPTID_BUGL_VW
Set Control Field: BUSINESS_UNIT_GL

12 STATISTICS_CODE Character(3) VARCHAR2(3) NOT NULL Statistics Code

Prompt Table: STAT_BUGL_VW

13 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.
14 BUSINESS_UNIT_GL Character(5) VARCHAR2(5) NOT NULL GL Business Unit

Prompt Table: SP_BUPRCR_NONVW

15 DESCR Character(30) VARCHAR2(30) NOT NULL Description
16 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code

Prompt Table: CURRENCY_CD_TBL

17 OPERATING_UNIT Character(8) VARCHAR2(8) NOT NULL Operating Unit ChartField

Prompt Table: OPERUNT_BUGL_VW

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

Prompt Table: PRODUCT_BUGL_VW

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

Prompt Table: FUND_BUGL_VW

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

Prompt Table: CLASSCF_BUGL_VW

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

Prompt Table: PROGRAM_BUGL_VW

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

Prompt Table: BUD_REF_BUGL_VW

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

Prompt Table: AFFILIATE_VW

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

Prompt Table: %EDIT_INTRA01

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

Prompt Table: %EDIT_INTRA02

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

Prompt Table: CF1_BUGL_VW

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

Prompt Table: CF2_BUGL_VW

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

Prompt Table: CF3_BUGL_VW

29 PROJECT_ID Character(15) VARCHAR2(15) NOT NULL Project Id ChartField
30 BUSINESS_UNIT_PC Character(5) VARCHAR2(5) NOT NULL PC Business Unit
31 ACTIVITY_ID Character(15) VARCHAR2(15) NOT NULL Activity ID
32 ANALYSIS_TYPE Character(3) VARCHAR2(3) NOT NULL Analysis Type
33 RESOURCE_TYPE Character(5) VARCHAR2(5) NOT NULL Source Type
34 RESOURCE_CATEGORY Character(5) VARCHAR2(5) NOT NULL Category
35 RESOURCE_SUB_CAT Character(5) VARCHAR2(5) NOT NULL Subcategory
36 PROFILE_ID Character(10) VARCHAR2(10) NOT NULL Asset Profile ID

Prompt Table: %EDIT_PROFILE

37 BUSINESS_UNIT_AM Character(5) VARCHAR2(5) NOT NULL AM Business Unit

Prompt Table: %EDIT_BU_AM

38 FINANCIAL_ASSET_SW Character(1) VARCHAR2(1) NOT NULL Capitalized Asset
N=Non Cap
Y=Capitalize
39 BUSINESS_UNIT_IN Character(5) VARCHAR2(5) NOT NULL Inventory Unit

Prompt Table: %EDIT_BU_IN

40 RT_TYPE Character(5) VARCHAR2(5) NOT NULL Defines a category of market rates for currency conversion. Some examples of rate types are commercial, average, floating, and historical.

Prompt Table: RT_TYPE_TBL

41 DISTRIB_PCT Number(8,4) DECIMAL(7,4) NOT NULL Distribution Percentage
42 COST_TYPE Character(1) VARCHAR2(1) NOT NULL Cost Type

Prompt Table: COST_TYPE_TBL

43 CAP_NUM Character(15) VARCHAR2(15) NOT NULL Capital Acquisition Plan #

Prompt Table: CAP_VW

44 CAP_SEQUENCE Number(3,0) SMALLINT NOT NULL CAP Sequence

Prompt Table: CAP_DET_VW1