ITEM_DST_CF_VW(SQL View) |
Index Back |
---|---|
Customer Items With Distributn |
SELECT DISTINCT I.BUSINESS_UNIT , I.CUST_ID , I.ITEM , I.ITEM_LINE , I.ACCOUNT , I.ALTACCT , I.DEPTID , I.CURRENCY_CD , %subrec(CF12_AN_SBR, I) , %subrec(PC_CF1_N_SBR, I) FROM PS_ITEM_DST I , PS_ITEM A WHERE I.SYSTEM_DEFINED NOT IN ('U','C','L') AND A.ITEM_STATUS = 'O' AND I.BUSINESS_UNIT = A.BUSINESS_UNIT AND I.CUST_ID = A.CUST_ID AND I.ITEM = A.ITEM AND I.ITEM_LINE = A.ITEM_LINE AND EXISTS( SELECT 'X' FROM PS_PENDING_ITEM B WHERE A.BUSINESS_UNIT = B.BUSINESS_UNIT AND A.CUST_ID =B.CUST_ID AND A.ITEM =B.ITEM AND A.ITEM_LINE =B.ITEM_LINE AND A.DST_ID_AR <> B.DST_ID_AR AND B.POSTED_FLAG = 'Y' AND B.ENTRY_USE_ID IN ('WS-04', 'WS-05')) GROUP BY I.BUSINESS_UNIT , I.CUST_ID , I.ITEM , I.ITEM_LINE , I.ACCOUNT , I.ALTACCT , I.DEPTID ,I.CURRENCY_CD, %subrec(CF12_AN_SBR, I) , %subrec(PC_CF1_N_SBR, I) HAVING SUM(I.MONETARY_AMOUNT) = 0 |
# | 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_FS.BUSINESS_UNIT Prompt Table: SP_BUARDS_NONVW |
2 | CUST_ID | Character(15) | VARCHAR2(15) NOT NULL |
Uniquely identifies an organizational entity that purchases goods or services from the enterprise. Represents the sold-to customer which is the customer organization that places orders. The CUST_ID may or may not be the same as the identifiers for the bill-to and ship-to locations.
Prompt Table: CUST_SRCH_VW |
3 | ITEM | Character(30) | VARCHAR2(30) NOT NULL | Uniquely identifies an invoice credit memo or debit memo. The item ID is also called the invoice number. |
4 | ITEM_LINE | Number(6,0) | INTEGER NOT NULL | Item Line |
5 | ACCOUNT | Character(10) | VARCHAR2(10) NOT NULL | Account |
6 | ALTACCT | Character(10) | VARCHAR2(10) NOT NULL | Alternate Account |
7 | DEPTID | Character(10) | VARCHAR2(10) NOT NULL | Department |
8 | CURRENCY_CD | Character(3) | VARCHAR2(3) NOT NULL | Currency Code |
9 | OPERATING_UNIT | Character(8) | VARCHAR2(8) NOT NULL | Operating Unit ChartField |
10 | PRODUCT | Character(6) | VARCHAR2(6) NOT NULL | Product ChartField |
11 | FUND_CODE | Character(5) | VARCHAR2(5) NOT NULL | Fund Code |
12 | CLASS_FLD | Character(5) | VARCHAR2(5) NOT NULL | Class Field |
13 | PROGRAM_CODE | Character(5) | VARCHAR2(5) NOT NULL | Program Code ChartField |
14 | BUDGET_REF | Character(8) | VARCHAR2(8) NOT NULL | Budget Reference |
15 | AFFILIATE | Character(5) | VARCHAR2(5) NOT NULL | Affiliate |
16 | AFFILIATE_INTRA1 | Character(10) | VARCHAR2(10) NOT NULL | IntraUnit Affiliate1 |
17 | AFFILIATE_INTRA2 | Character(10) | VARCHAR2(10) NOT NULL | Operating Unit Affiliate |
18 | CHARTFIELD1 | Character(10) | VARCHAR2(10) NOT NULL | Expansion chartfield 1 |
19 | CHARTFIELD2 | Character(10) | VARCHAR2(10) NOT NULL | Expansion Chartfield 2 |
20 | CHARTFIELD3 | Character(10) | VARCHAR2(10) NOT NULL | Expansion Chartfield 3 |
21 | BUSINESS_UNIT_PC | Character(5) | VARCHAR2(5) NOT NULL |
PC Business Unit
Prompt Table: %EDIT_BU_PC |
22 | PROJECT_ID | Character(15) | VARCHAR2(15) NOT NULL |
Project Id ChartField
Prompt Table: %EDIT_PROJECT |
23 | ACTIVITY_ID | Character(15) | VARCHAR2(15) NOT NULL |
Activity ID
Prompt Table: %EDIT_ACTIVITY |
24 | RESOURCE_TYPE | Character(5) | VARCHAR2(5) NOT NULL |
Source Type
Prompt Table:
PROJ_RESTYPE_FS
|
25 | RESOURCE_CATEGORY | Character(5) | VARCHAR2(5) NOT NULL |
Category
Prompt Table:
%EDIT_RES_CAT
|
26 | RESOURCE_SUB_CAT | Character(5) | VARCHAR2(5) NOT NULL |
Subcategory
Prompt Table:
%EDIT_RES_SUB
|
27 | ANALYSIS_TYPE | Character(3) | VARCHAR2(3) NOT NULL |
Analysis Type
Prompt Table:
%EDIT_ANALYSIS
|