INV_RECV_VW(SQL View) |
Index Back |
---|---|
Receipt view05/27/04 PWF Change reference from sched_line_no to sched_line_nbr 669108 05/04/2006 IND - Modified join to resolved performance issue in the InterUnit Transfer Search page. |
SELECT ' ' , ' ' , 0 , ' ' , inv.business_unit , inv.interunit_id , inv.interunit_line , 0 , itm.descr , inv.destin_bu , itm.inv_item_id , itm.lot_control , rphys.non_own_flag , ' ' , ' ' , 0 , rphys.qty_shipped_conv , 0 , 0 , ' ' , ' ' , ' ' , itm.serial_control , itm.ship_serial_cntrl , inv.source_bus_unit , itm.unit_measure_std , inv.unit_measure_ship , ' ' , rphys.qty_ship_base , inv.config_code , inv.account , inv.altacct , inv.DEPTID , %subrec(cf16_an_sbr,inv) , %subrec(pc_cf1_n_sbr,inv) , inv.transfer_cost , inv.transfer_cost_dest , inv.replacement_flg , inv.ist_return_flg_iut , ' ' , inv.transfer_calc_type FROM PS_MASTER_ITEM_TBL itm , ps_inv_item_uom conv , ps_set_cntrl_rec sc , ps_recv_phys_vw rphys , ps_in_demand inv WHERE sc.recname = 'MASTER_ITEM_TBL' AND sc.rec_group_id = 'FS_18' AND sc.setcntrlvalue = inv.business_unit AND sc.setcntrlvalue = rphys.business_unit AND rphys.business_unit = inv.business_unit AND rphys.demand_source = inv.demand_source AND rphys.source_bus_unit = inv.source_bus_unit AND rphys.order_no = inv.order_no AND rphys.order_int_line_no = inv.order_int_line_no AND rphys.sched_line_nbr = inv.sched_line_nbr AND rphys.demand_line_no = inv.demand_line_no AND itm.setid = sc.setid AND conv.setid = itm.setid AND sc.setid = conv.setid AND rphys.inv_item_id = inv.inv_item_id AND conv.inv_item_id = inv.inv_item_id AND itm.inv_item_id = inv.inv_item_id AND itm.inv_item_id = conv.inv_item_id AND itm.inv_item_id = rphys.inv_item_id AND conv.inv_item_id = rphys.inv_item_id AND conv.unit_of_measure = inv.unit_measure_ship AND inv.in_fulfill_state >='50' AND inv.interunit_stat IN ('O','P','I','C') AND NOT EXISTS ( SELECT 'x' FROM ps_inv_recv_ln rcv WHERE rcv.source_bus_unit = rphys.business_unit AND rcv.interunit_id = rphys.interunit_id AND rcv.interunit_line = rphys.interunit_line AND rcv.non_own_flag = rphys.non_own_flag) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | Character(5) | VARCHAR2(5) NOT NULL | RMA Business Unit | |
2 | Character(10) | VARCHAR2(10) NOT NULL | RMA Number | |
3 | Number(5,0) | INTEGER NOT NULL | RMA Line Number | |
4 | DISTRIB_TYPE | Character(10) | VARCHAR2(10) NOT NULL | Distrib. Type |
5 | Character(5) | VARCHAR2(5) NOT NULL | Inventory Unit | |
6 | Character(10) | VARCHAR2(10) NOT NULL | InterUnit Order ID | |
7 | Number(5,0) | INTEGER NOT NULL | InterUnit Order Line | |
8 | CONVERSION_RATE | Signed Number(17,8) | DECIMAL(15,8) NOT NULL | Conversion Rate |
9 | DESCR | Character(30) | VARCHAR2(30) NOT NULL | Description |
10 | DESTIN_BU | Character(5) | VARCHAR2(5) NOT NULL | Destination Unit |
11 | INV_ITEM_ID | Character(18) | VARCHAR2(18) NOT NULL | Item ID |
12 | LOT_CONTROL | Character(1) | VARCHAR2(1) NOT NULL |
Lot Control
N=N Y=Y |
13 | NON_OWN_FLAG | Character(1) | VARCHAR2(1) NOT NULL |
07/30/1998 WHS CN#ENH8.0: Created Translate Values 'Y'es and 'N'o
N=No Y=Yes Y/N Table Edit |
14 | PRODUCT_ID | Character(18) | VARCHAR2(18) NOT NULL | Product ID |
15 | PRODUCT_KIT_FLAG | Character(1) | VARCHAR2(1) NOT NULL | Product Kit |
16 | QTY_RECEIPT | Number(16,4) | DECIMAL(15,4) NOT NULL | Receipt Quantity |
17 | QTY_SHIPPED_CONV | Signed Number(17,4) | DECIMAL(15,4) NOT NULL | Qty Shipped |
18 | QTY_RETURNED | Number(16,4) | DECIMAL(15,4) NOT NULL | Qty Returned |
19 | QTY_PRIOR_RECEIPT | Number(16,4) | DECIMAL(15,4) NOT NULL | Prior Receipt Qty |
20 | RETURN_FR_CUST_ID | Character(15) | VARCHAR2(15) NOT NULL | Return From Cust ID |
21 | RETURN_FROM_BU | Character(5) | VARCHAR2(5) NOT NULL | Return From Location |
22 | RETURN_TO_IBU | Character(5) | VARCHAR2(5) NOT NULL | Return To IBU |
23 | SERIAL_CONTROL | Character(1) | VARCHAR2(1) NOT NULL |
Serial Control
N=N Y=Y |
24 | SHIP_SERIAL_CNTRL | Character(1) | VARCHAR2(1) NOT NULL | Shipping Serial Control |
25 | SOURCE_BUS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Source Bus Unit |
26 | UNIT_MEASURE_STD | Character(3) | VARCHAR2(3) NOT NULL | Standard Unit of Measure |
27 | UNIT_MEASURE_SHIP | Character(3) | VARCHAR2(3) NOT NULL |
Shipment Unit of Measure
Prompt Table: INV_UOM_VW |
28 | UOM_QTY_RETURN | Character(3) | VARCHAR2(3) NOT NULL |
UOM of Qty Returned
Prompt Table: INV_UOM_VW |
29 | QTY_SHIP_BASE | Signed Number(17,4) | DECIMAL(15,4) NOT NULL | Qty Ship Base |
30 | CONFIG_CODE | Character(50) | VARCHAR2(50) NOT NULL | Product Configurator |
31 | ACCOUNT | Character(10) | VARCHAR2(10) NOT NULL | Account |
32 | ALTACCT | Character(10) | VARCHAR2(10) NOT NULL |
Alternate Account
Prompt Table: %EDIT_ALTACCT |
33 | DEPTID | Character(10) | VARCHAR2(10) NOT NULL |
Department
Prompt Table: DEPTID_BUGL_VW |
34 | OPERATING_UNIT | Character(8) | VARCHAR2(8) NOT NULL |
Operating Unit ChartField
Prompt Table: OPERUNT_BUGL_VW |
35 | PRODUCT | Character(6) | VARCHAR2(6) NOT NULL |
Product ChartField
Prompt Table: PRODUCT_BUGL_VW |
36 | FUND_CODE | Character(5) | VARCHAR2(5) NOT NULL |
Fund Code
Prompt Table: FUND_BUGL_VW |
37 | CLASS_FLD | Character(5) | VARCHAR2(5) NOT NULL |
Class Field
Prompt Table: CLASSCF_BUGL_VW |
38 | PROGRAM_CODE | Character(5) | VARCHAR2(5) NOT NULL |
Program Code ChartField
Prompt Table: PROGRAM_BUGL_VW |
39 | BUDGET_REF | Character(8) | VARCHAR2(8) NOT NULL |
Budget Reference
Prompt Table: BUD_REF_BUGL_VW |
40 | AFFILIATE | Character(5) | VARCHAR2(5) NOT NULL |
Affiliate
Prompt Table: AFFILIATE_VW |
41 | AFFILIATE_INTRA1 | Character(10) | VARCHAR2(10) NOT NULL |
IntraUnit Affiliate1
Prompt Table: %EDIT_INTRA01 |
42 | AFFILIATE_INTRA2 | Character(10) | VARCHAR2(10) NOT NULL |
Operating Unit Affiliate
Prompt Table: %EDIT_INTRA02 |
43 | CHARTFIELD1 | Character(10) | VARCHAR2(10) NOT NULL |
Expansion chartfield 1
Prompt Table: CF1_BUGL_VW |
44 | CHARTFIELD2 | Character(10) | VARCHAR2(10) NOT NULL |
Expansion Chartfield 2
Prompt Table: CF2_BUGL_VW |
45 | CHARTFIELD3 | Character(10) | VARCHAR2(10) NOT NULL |
Expansion Chartfield 3
Prompt Table: CF3_BUGL_VW |
46 | BUSINESS_UNIT_PC | Character(5) | VARCHAR2(5) NOT NULL |
PC Business Unit
Prompt Table: %EDIT_BU_PC |
47 | PROJECT_ID | Character(15) | VARCHAR2(15) NOT NULL |
Project Id ChartField
Prompt Table: %EDIT_PROJECT |
48 | ACTIVITY_ID | Character(15) | VARCHAR2(15) NOT NULL |
Activity ID
Prompt Table: %EDIT_ACTIVITY |
49 | RESOURCE_TYPE | Character(5) | VARCHAR2(5) NOT NULL |
Source Type
Prompt Table:
PROJ_RESTYPE_FS
|
50 | RESOURCE_CATEGORY | Character(5) | VARCHAR2(5) NOT NULL |
Category
Prompt Table:
%EDIT_RES_CAT
|
51 | RESOURCE_SUB_CAT | Character(5) | VARCHAR2(5) NOT NULL |
Subcategory
Prompt Table:
%EDIT_RES_SUB
|
52 | ANALYSIS_TYPE | Character(3) | VARCHAR2(3) NOT NULL |
Analysis Type
Prompt Table:
%EDIT_ANALYSIS
|
53 | TRANSFER_COST | Signed Number(16,4) | DECIMAL(14,4) NOT NULL | Transfer Price |
54 | TRANSFER_COST_DEST | Signed Number(16,4) | DECIMAL(14,4) NOT NULL | Transfer Price Dest |
55 | REPLACEMENT_FLG | Character(2) | VARCHAR2(2) NOT NULL |
Replacement Flag
NA=Not Applicable RN=Replace Goods Not Returned RR=Replacement of Returned Goods |
56 | IST_RETURN_FLG_IUT | Character(1) | VARCHAR2(1) NOT NULL | Intrastat InterUnit Returns |
57 | UNIT_OF_MEASURE | Character(3) | VARCHAR2(3) NOT NULL |
Used on an approval rule set.
MHR=Muti Hourly PER=Percentage SQF=Square Footage |
58 | TRANSFER_CALC_TYPE | Character(1) | VARCHAR2(1) NOT NULL |
Holds information regarding when the transfer price is calculated.
0=Calculate Cost at Depletions 1=Transfer at Zero Cost Default Value: 0 |