RTV_PO_DIST_VW(SQL View) |
Index Back |
---|---|
RTV PO Distribution View |
SELECT D.BUSINESS_UNIT , D.PO_ID , D.LINE_NBR , D.SCHED_NBR , D.DISTRIB_LINE_NUM , D.ACCOUNT , D.ALTACCT , D.DEPTID , D.BUSINESS_UNIT_AM , D.BUSINESS_UNIT_GL , D.BUSINESS_UNIT_IN , ' ' , D.CHARTFIELD_STATUS , D.CURRENCY_CD , D.CURRENCY_CD_BASE , D.DISTRIB_TYPE , D.DST_ACCT_TYPE , D.FINANCIAL_ASSET_SW , D.LOCATION , D.MERCH_AMT_BSE , D.MERCHANDISE_AMT , D.PROFILE_ID , D.QTY_PO , D.REQ_ID , D.STATISTIC_AMOUNT , D.STATISTICS_CODE , %subrec(CF15_AN_SBR,D) , %subrec(PC_CF1_N_SBR,D) , %subrec(PUR_USR_DST_SBR,D) FROM PS_PO_HDR A , PS_PO_LINE B , PS_PO_LINE_SHIP C , PS_PO_LINE_DISTRIB D WHERE A.PO_STATUS IN( 'O','A','PA','D', 'C') AND A.BUSINESS_UNIT = B.BUSINESS_UNIT AND A.PO_ID = B.PO_ID AND B.BUSINESS_UNIT = C.BUSINESS_UNIT AND B.PO_ID = C.PO_ID AND B.LINE_NBR = C.LINE_NBR AND C.BUSINESS_UNIT = D.BUSINESS_UNIT AND C.PO_ID = D.PO_ID AND C.LINE_NBR = D.LINE_NBR AND C.SCHED_NBR = D.SCHED_NBR AND (C.SHIP_TO_CUST_ID = ' ' OR (C.BUSINESS_UNIT_OM <> ' ' AND C.ORDER_NO <> ' ' AND C.SHIP_TO_CUST_ID <> ' ')) AND D.DST_ACCT_TYPE = 'DST' |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | BUSINESS_UNIT_PO | Character(5) | VARCHAR2(5) NOT NULL | PO Business Unit |
2 | PO_ID | Character(10) | VARCHAR2(10) NOT NULL | Purchase Order |
3 | LINE_NBR | Number(5,0) | INTEGER NOT NULL | Line Number: 11/24/08 - Added TARGET label [PC product] |
4 | SCHED_NBR | Number(3,0) | SMALLINT NOT NULL | Schedule Number |
5 | PO_DIST_LINE_NUM | Number(5,0) | INTEGER NOT NULL | PO Distribution Line Number |
6 | ACCOUNT | Character(10) | VARCHAR2(10) NOT NULL | Account |
7 | ALTACCT | Character(10) | VARCHAR2(10) NOT NULL | Alternate Account |
8 | DEPTID | Character(10) | VARCHAR2(10) NOT NULL |
Department
Prompt Table: DEPTID_BUGL_VW |
9 | BUSINESS_UNIT_AM | Character(5) | VARCHAR2(5) NOT NULL | AM Business Unit |
10 | BUSINESS_UNIT_GL | Character(5) | VARCHAR2(5) NOT NULL | GL Business Unit |
11 | BUSINESS_UNIT_IN | Character(5) | VARCHAR2(5) NOT NULL | Inventory Unit |
12 | CB_SELECT_PO | Character(1) | VARCHAR2(1) NOT NULL |
Select PO Schedule Checkbox
Y/N Table Edit |
13 | CHARTFIELD_STATUS | Character(1) | VARCHAR2(1) NOT NULL |
Chartfield Status
R=Recycled V=Valid |
14 | CURRENCY_CD | Character(3) | VARCHAR2(3) NOT NULL | Currency Code |
15 | CURRENCY_CD_BASE | Character(3) | VARCHAR2(3) NOT NULL | Business Unit Base Currency |
16 | DISTRIB_TYPE | Character(10) | VARCHAR2(10) NOT NULL | Distrib. Type |
17 | 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 |
18 | FINANCIAL_ASSET_SW | Character(1) | VARCHAR2(1) NOT NULL |
Capitalized Asset
N=Non Cap Y=Capitalize |
19 | LOCATION | Character(10) | VARCHAR2(10) NOT NULL | Location Code |
20 | MERCH_AMT_PO_BSE | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Merchandise Amt PO Base |
21 | MERCHANDISE_AMT_PO | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | PO Merchandise Amount |
22 | PROFILE_ID | Character(10) | VARCHAR2(10) NOT NULL | Asset Profile ID |
23 | QTY_PO | Number(16,4) | DECIMAL(15,4) NOT NULL | Purchase Order Quantity |
24 | REQ_ID | Character(10) | VARCHAR2(10) NOT NULL | Requisition ID |
25 | 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. |
26 | STATISTICS_CODE | Character(3) | VARCHAR2(3) NOT NULL | Statistics Code |
27 | OPERATING_UNIT | Character(8) | VARCHAR2(8) NOT NULL |
Operating Unit ChartField
Prompt Table: OPERUNT_BUGL_VW |
28 | PRODUCT | Character(6) | VARCHAR2(6) NOT NULL |
Product ChartField
Prompt Table: PRODUCT_BUGL_VW |
29 | FUND_CODE | Character(5) | VARCHAR2(5) NOT NULL |
Fund Code
Prompt Table: FUND_BUGL_VW |
30 | CLASS_FLD | Character(5) | VARCHAR2(5) NOT NULL |
Class Field
Prompt Table: CLASSCF_BUGL_VW |
31 | PROGRAM_CODE | Character(5) | VARCHAR2(5) NOT NULL |
Program Code ChartField
Prompt Table: PROGRAM_BUGL_VW |
32 | BUDGET_REF | Character(8) | VARCHAR2(8) NOT NULL |
Budget Reference
Prompt Table: BUD_REF_BUGL_VW |
33 | AFFILIATE | Character(5) | VARCHAR2(5) NOT NULL |
Affiliate
Prompt Table: AFFILIATE_VW |
34 | AFFILIATE_INTRA1 | Character(10) | VARCHAR2(10) NOT NULL |
IntraUnit Affiliate1
Prompt Table: %EDIT_INTRA01 |
35 | AFFILIATE_INTRA2 | Character(10) | VARCHAR2(10) NOT NULL |
Operating Unit Affiliate
Prompt Table: %EDIT_INTRA02 |
36 | CHARTFIELD1 | Character(10) | VARCHAR2(10) NOT NULL |
Expansion chartfield 1
Prompt Table: CF1_BUGL_VW |
37 | CHARTFIELD2 | Character(10) | VARCHAR2(10) NOT NULL |
Expansion Chartfield 2
Prompt Table: CF2_BUGL_VW |
38 | CHARTFIELD3 | Character(10) | VARCHAR2(10) NOT NULL |
Expansion Chartfield 3
Prompt Table: CF3_BUGL_VW |
39 | BUSINESS_UNIT_PC | Character(5) | VARCHAR2(5) NOT NULL |
PC Business Unit
Prompt Table: %EDIT_BU_PC |
40 | PROJECT_ID | Character(15) | VARCHAR2(15) NOT NULL |
Project Id ChartField
Prompt Table: %EDIT_PROJECT |
41 | ACTIVITY_ID | Character(15) | VARCHAR2(15) NOT NULL |
Activity ID
Prompt Table: %EDIT_ACTIVITY |
42 | RESOURCE_TYPE | Character(5) | VARCHAR2(5) NOT NULL |
Source Type
Prompt Table:
PROJ_RESTYPE_FS
|
43 | RESOURCE_CATEGORY | Character(5) | VARCHAR2(5) NOT NULL |
Category
Prompt Table:
%EDIT_RES_CAT
|
44 | RESOURCE_SUB_CAT | Character(5) | VARCHAR2(5) NOT NULL |
Subcategory
Prompt Table:
%EDIT_RES_SUB
|
45 | ANALYSIS_TYPE | Character(3) | VARCHAR2(3) NOT NULL |
Analysis Type
Prompt Table:
%EDIT_ANALYSIS
|
46 | USER_DIST_CHAR1 | Character(1) | VARCHAR2(1) NOT NULL | Custom Character 1 |
47 | CUSTOM_C100_D1 | Character(100) | VARCHAR2(100) NOT NULL | Custom Field 1 |
48 | CUSTOM_C100_D2 | Character(100) | VARCHAR2(100) NOT NULL | Custom Field 2 |
49 | CUSTOM_C100_D3 | Character(100) | VARCHAR2(100) NOT NULL | Custom Field 3 |
50 | CUSTOM_C100_D4 | Character(100) | VARCHAR2(100) NOT NULL | Custom Field 4 |
51 | CUSTOM_DATE_D | Date(10) | DATE | Custom Date |
52 | CUSTOM_C1_D | Character(1) | VARCHAR2(1) NOT NULL | Custom Character 2 |