LD_SHP_INV_VW(SQL View) |
Index Back |
---|---|
Picked/Shipped Orders View |
SELECT d.business_unit , d.demand_source , d.source_bus_unit , d.order_no , d.order_int_line_no , d.sched_line_nbr , d.inv_item_id , d.demand_line_no , d.location , d.destin_bu , d.ship_to_cust_id , d.ship_id , d.load_id , d.carrier_id , d.ship_type_id , d.route_cd , m.descr , %DatePart(d.sched_dttm) , %TimePart(d.sched_dttm) , d.unit_of_measure , d.unit_measure_ship , d.qty_requested , d.qty_requested_base , d.qty_allocated , d.qty_alloc_base , d.qty_picked , d.qty_pick_base , d.qty_pick_ovr_base , d.qty_shipped_conv , d.qty_ship_base , d.last_qty_ship , d.last_qty_ship_base , d.qty_promised_base , d.qty_pack_base , ' ' , 'SH' , i.inv_item_weight , i.inv_item_volume , i.unit_measure_wt , i.unit_measure_vol , m.unit_measure_std , pick_batch_id , d.hold_flag , d.qty_backorder , d.qty_backorder_base , d.in_fulfill_state , d.in_zero_picked_flg , d.export , d.sched_dttm , d.ship_early_dttm , d.address_seq_num , d.addr_ovrd_level , ' ' , ' ' , ' ' , ' ' , ' ' , ' ' , ' ' , ' ' , ' ' , ' ' , ' ' , ' ' , ' ' , ' ' , ' ' , d.ship_cust_name1 , d.ship_cust_name2 , d.ship_dttm , d.interunit_flg , d.interunit_id , d.interunit_line , d.freight_terms , d.sched_arrv_dttm , d.request_date , d.route_stop_nbr , d.bill_of_lading , d.single_ship_flag , d.parent_prod_id , '31' , d.lot_alloc_flg , d.optional_ship , d.delivery_id FROM ps_in_demand d , PS_MASTER_ITEM_TBL m , ps_inv_items i WHERE m.setid = ( SELECT setid FROM ps_set_cntrl_rec sc WHERE setcntrlvalue = d.business_unit AND recname = 'MASTER_ITEM_TBL') AND m.inv_item_id = d.inv_item_id AND d.in_fulfill_state BETWEEN '20' AND '70' AND i.setid = ( SELECT setid FROM ps_set_cntrl_rec sc WHERE setcntrlvalue = d.business_unit AND recname = 'INV_ITEMS') AND i.inv_item_id = d.inv_item_id AND i.effdt = ( SELECT MAX(effdt) FROM ps_inv_items i2 WHERE i2.inv_item_id = i.inv_item_id AND i2.setid = i.setid AND i2.effdt <= %CurrentDateIn) AND NOT EXISTS ( SELECT 'X' FROM ps_in_demand_addr a WHERE d.business_unit = a.business_unit AND d.demand_source = a.demand_source AND d.source_bus_unit = a.source_bus_unit AND d.order_no = a.order_no AND d.order_int_line_no = a.order_int_line_no AND d.sched_line_nbr = a.sched_line_nbr AND d.inv_item_id = a.inv_item_id AND d.demand_line_no = a.demand_line_no) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL |
Business Unit
Prompt Table: SP_BUIN_NONVW |
2 | DEMAND_SOURCE | Character(2) | VARCHAR2(2) NOT NULL |
Demand Source
IN=Material Request OM=Sales Order PL=Planning Requisition PO=Purchase Order PR=Purchasing Requisition RT=Material Return SF=Production Request WM=Work Order |
3 | SOURCE_BUS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Source Bus Unit |
4 | ORDER_NO | Character(10) | VARCHAR2(10) NOT NULL | Identifies a customer order number that appears as a reference on a receivables pending item. Date Initials Issue Description 022701 mv SP2 (F-CJORGENS-3) CSR Desktop |
5 | ORDER_INT_LINE_NO | Number(5,0) | INTEGER NOT NULL | Order Line |
6 | SCHED_LINE_NBR | Number(6,0) | INTEGER NOT NULL | Schedule Line Number |
7 | INV_ITEM_ID | Character(18) | VARCHAR2(18) NOT NULL | Item ID |
8 | DEMAND_LINE_NO | Number(4,0) | SMALLINT NOT NULL | Demand Line No |
9 | LOCATION | Character(10) | VARCHAR2(10) NOT NULL | Location Code |
10 | DESTIN_BU | Character(5) | VARCHAR2(5) NOT NULL | Destination Unit |
11 | SHIP_TO_CUST_ID | Character(15) | VARCHAR2(15) NOT NULL | Ship To Customer |
12 | SHIP_ID | Character(10) | VARCHAR2(10) NOT NULL | Shipping ID |
13 | LOAD_ID | Character(10) | VARCHAR2(10) NOT NULL | Load ID |
14 | CARRIER_ID | Character(10) | VARCHAR2(10) NOT NULL | Carrier ID |
15 | SHIP_TYPE_ID | Character(10) | VARCHAR2(10) NOT NULL | Ship Via Code |
16 | ROUTE_CD | Character(6) | VARCHAR2(6) NOT NULL | A unique identifier assigned to a delivery route. Route codes can be associated with customer addresses for external orders or locations for internal orders. Route codes can be used to identify the appropriate delivery schedule for a customer/location if you are managing product shipments with your own vehicles. |
17 | DESCR | Character(30) | VARCHAR2(30) NOT NULL | Description |
18 | SCHED_DATE | Date(10) | DATE | Schedule Date |
19 | SCHED_TIME | Time(15) | TIMESTAMP | Schedule Time |
20 | UNIT_OF_MEASURE | Character(3) | VARCHAR2(3) NOT NULL |
Used on an approval rule set.
MHR=Muti Hourly PER=Percentage SQF=Square Footage |
21 | UNIT_MEASURE_SHIP | Character(3) | VARCHAR2(3) NOT NULL | Shipment Unit of Measure |
22 | QTY_REQUESTED | Signed Number(17,4) | DECIMAL(15,4) NOT NULL | Qty Requested |
23 | QTY_REQUESTED_BASE | Signed Number(17,4) | DECIMAL(15,4) NOT NULL | Qty Requested Base |
24 | QTY_ALLOCATED | Signed Number(17,4) | DECIMAL(15,4) NOT NULL | Allocated quantity |
25 | QTY_ALLOC_BASE | Signed Number(17,4) | DECIMAL(15,4) NOT NULL | Quantity allocation |
26 | QTY_PICKED | Signed Number(17,4) | DECIMAL(15,4) NOT NULL | Qty Picked |
27 | QTY_PICK_BASE | Signed Number(17,4) | DECIMAL(15,4) NOT NULL | Qty Pick Base |
28 | QTY_PICK_OVR_BASE | Signed Number(17,4) | DECIMAL(15,4) NOT NULL | Field used to override the net requested quantity in standard uom when printing the pick play for non-soft reservation items. |
29 | QTY_SHIPPED_CONV | Signed Number(17,4) | DECIMAL(15,4) NOT NULL | Qty Shipped |
30 | QTY_SHIP_BASE | Signed Number(17,4) | DECIMAL(15,4) NOT NULL | Qty Ship Base |
31 | LAST_QTY_SHIP | Signed Number(17,4) | DECIMAL(15,4) NOT NULL | Quantity Last Shipped |
32 | LAST_QTY_SHIP_BASE | Signed Number(17,4) | DECIMAL(15,4) NOT NULL | Used to save the last value of quantity shipped from the Shipping Issues Panel in Standard UOM at the DEMAND_PHYS_INV and SHIP_INF_INV level. Default to the quantity picked from the Express Issues Panel or for cases where auto ship equals 'Y'. |
33 | QTY_PROMISED_BASE | Signed Number(17,4) | DECIMAL(15,4) NOT NULL | Qty Promised Base |
34 | QTY_PACK_BASE | Signed Number(17,4) | DECIMAL(15,4) NOT NULL | Base Quantity Packed |
35 | DEM_STATUS | Character(1) | VARCHAR2(1) NOT NULL |
Demand Line Status
C=Depleted F=Confirmed H=On Hold O=Sales Order P=Picked R=Reserved S=Shipped U=Unfulfilled |
36 | LINE_SOURCE | Character(3) | VARCHAR2(3) NOT NULL | Order Source |
37 | INV_ITEM_WEIGHT | Signed Number(17,4) | DECIMAL(15,4) NOT NULL | Item Weight |
38 | INV_ITEM_VOLUME | Signed Number(17,4) | DECIMAL(15,4) NOT NULL | Volume |
39 | UNIT_MEASURE_WT | Character(3) | VARCHAR2(3) NOT NULL | Weight UOM |
40 | UNIT_MEASURE_VOL | Character(3) | VARCHAR2(3) NOT NULL | Volume UOM |
41 | UNIT_MEASURE_STD | Character(3) | VARCHAR2(3) NOT NULL | Standard Unit of Measure |
42 | PICK_BATCH_ID | Number(10,0) | DECIMAL(10) NOT NULL | Pick Batch ID |
43 | HOLD_FLAG | Character(1) | VARCHAR2(1) NOT NULL |
Hold
N=Hold Y=Hold |
44 | QTY_BACKORDER | Signed Number(17,4) | DECIMAL(15,4) NOT NULL | Backorder Qty |
45 | QTY_BACKORDER_BASE | Signed Number(17,4) | DECIMAL(15,4) NOT NULL | Backorder Base Qty |
46 | IN_FULFILL_STATE | Character(2) | VARCHAR2(2) NOT NULL |
Inventory Fulfillment State
10=Pending 20=Unfulfilled 30=Releasable 40=Released 50=Confirmed 60=Shipped 70=Depleted 90=Canceled |
47 | IN_ZERO_PICKED_FLG | Character(1) | VARCHAR2(1) NOT NULL | Zero Picked |
48 | EXPORT | Character(1) | VARCHAR2(1) NOT NULL |
Export Analytic Instance
N=No Y=Yes |
49 | SCHED_DTTM | DateTime(26) | TIMESTAMP | 08/16/01 JNW (CN#PL900-1.0): Added |
50 | SHIP_EARLY_DTTM | DateTime(26) | TIMESTAMP | Earliest Ship Date/Time |
51 | ADDRESS_SEQ_NUM | Number(5,0) | INTEGER NOT NULL | Address Sequence Number |
52 | ADDR_OVRD_LEVEL | Character(1) | VARCHAR2(1) NOT NULL |
Address Override Level
D=Demand Line H=Header L=Line S=Schedule |
53 | ADDRESS1 | Character(55) | VARCHAR2(55) NOT NULL | Address 1 |
54 | ADDRESS2 | Character(55) | VARCHAR2(55) NOT NULL | Address 2 |
55 | ADDRESS3 | Character(55) | VARCHAR2(55) NOT NULL | Address 3 |
56 | ADDRESS4 | Character(55) | VARCHAR2(55) NOT NULL | Address 4 |
57 | CITY | Character(30) | VARCHAR2(30) NOT NULL | City |
58 | COUNTY | Character(30) | VARCHAR2(30) NOT NULL | County |
59 | STATE | Character(6) | VARCHAR2(6) NOT NULL | State |
60 | COUNTRY | Character(3) | VARCHAR2(3) NOT NULL | Country |
61 | POSTAL | Character(12) | VARCHAR2(12) NOT NULL | Postal |
62 | NUM1 | Character(6) | VARCHAR2(6) NOT NULL | Number 1 |
63 | NUM2 | Character(6) | VARCHAR2(6) NOT NULL | Number 2 |
64 | HOUSE_TYPE | Character(2) | VARCHAR2(2) NOT NULL |
House Type
AB=House Boat WW=Trailer |
65 | ADDR_FIELD1 | Character(2) | VARCHAR2(2) NOT NULL | Address Field 1 |
66 | ADDR_FIELD2 | Character(4) | VARCHAR2(4) NOT NULL | Address Field 2 |
67 | ADDR_FIELD3 | Character(4) | VARCHAR2(4) NOT NULL | Address Field 3 |
68 | SHIP_CUST_NAME1 | Character(40) | VARCHAR2(40) NOT NULL | Ship To Name |
69 | SHIP_CUST_NAME2 | Character(40) | VARCHAR2(40) NOT NULL | Ship To Name 2 |
70 | SHIP_DTTM | DateTime(26) | TIMESTAMP | Ship Date/Time |
71 | INTERUNIT_FLG | Character(1) | VARCHAR2(1) NOT NULL |
InterUnit
N=No Y=Yes |
72 | INTERUNIT_ID | Character(10) | VARCHAR2(10) NOT NULL | InterUnit Order ID |
73 | INTERUNIT_LINE | Number(5,0) | INTEGER NOT NULL | InterUnit Order Line |
74 | FREIGHT_TERMS | Character(10) | VARCHAR2(10) NOT NULL | Freight Terms Code |
75 | SCHED_ARRV_DTTM | DateTime(26) | TIMESTAMP | Schedule Arrival Dt/Tm |
76 | REQUEST_DATE | Date(10) | DATE | Requested |
77 | ROUTE_STOP_NBR | Number(5,0) | INTEGER NOT NULL | An identifier used to sequence customer addresses/location for a given route. |
78 | BILL_OF_LADING | Character(30) | VARCHAR2(30) NOT NULL | Specifies a bill of lading number associated with a Receivables item. |
79 | SINGLE_SHIP_FLAG | Character(1) | VARCHAR2(1) NOT NULL |
Single Ship Flag
N=No Y=Yes |
80 | PARENT_PROD_ID | Character(18) | VARCHAR2(18) NOT NULL | Parent Product Id |
81 | RESERVE_STATUS | Character(2) | VARCHAR2(2) NOT NULL |
Reservation Status
10=Pending 11=Unreserved 12=Shortage, Rules Not Met 15=Reserved, Rules Not Met 21=Shortage, Line Rule Met 22=Reserved, Line Rule Met 31=Shortage, All Rules Met 32=Reserved, All Rules Met 40=Reserve Run 99=Invalid |
82 | LOT_ALLOC_FLG | Character(1) | VARCHAR2(1) NOT NULL | Allow Lot Allocation |
83 | OPTIONAL_SHIP | Character(1) | VARCHAR2(1) NOT NULL | OK to Ship Without |
84 | DELIVERY_ID | Character(10) | VARCHAR2(10) NOT NULL | Delivery ID |