LD_SHP_INV_A_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_ovr_base , d.qty_shipped_conv , d.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.address_seq_num , d.addr_ovrd_level , a.address1 , a.address2 , a.address3 , a.address4 , a.city , a.county , a.state , a.country , a.postal , a.num1 , a.num2 , a.house_type , a.addr_field1 , a.addr_field2 , a.addr_field3 , d.ship_cust_name1 , d.ship_cust_name2 , d.ship_dttm , 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.optional_ship , d.lot_alloc_flg FROM ps_in_demand d , ps_in_demand_addr a , 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 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

  • Related Language Record: LD_SHP_LNG_VW
  • # 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_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.
    28 QTY_SHIPPED_CONV Signed Number(17,4) DECIMAL(15,4) NOT NULL Qty Shipped
    29 QTY_SHIP_BASE Signed Number(17,4) DECIMAL(15,4) NOT NULL Qty Ship Base
    30 QTY_PROMISED_BASE Signed Number(17,4) DECIMAL(15,4) NOT NULL Qty Promised Base
    31 QTY_PACK_BASE Signed Number(17,4) DECIMAL(15,4) NOT NULL Base Quantity Packed
    32 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
    33 LINE_SOURCE Character(3) VARCHAR2(3) NOT NULL Order Source
    34 INV_ITEM_WEIGHT Signed Number(17,4) DECIMAL(15,4) NOT NULL Item Weight
    35 INV_ITEM_VOLUME Signed Number(17,4) DECIMAL(15,4) NOT NULL Volume
    36 UNIT_MEASURE_WT Character(3) VARCHAR2(3) NOT NULL Weight UOM
    37 UNIT_MEASURE_VOL Character(3) VARCHAR2(3) NOT NULL Volume UOM
    38 UNIT_MEASURE_STD Character(3) VARCHAR2(3) NOT NULL Standard Unit of Measure
    39 PICK_BATCH_ID Number(10,0) DECIMAL(10) NOT NULL Pick Batch ID
    40 HOLD_FLAG Character(1) VARCHAR2(1) NOT NULL Hold
    N=Hold
    Y=Hold
    41 QTY_BACKORDER Signed Number(17,4) DECIMAL(15,4) NOT NULL Backorder Qty
    42 QTY_BACKORDER_BASE Signed Number(17,4) DECIMAL(15,4) NOT NULL Backorder Base Qty
    43 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
    44 IN_ZERO_PICKED_FLG Character(1) VARCHAR2(1) NOT NULL Zero Picked
    45 EXPORT Character(1) VARCHAR2(1) NOT NULL Export Analytic Instance
    N=No
    Y=Yes
    46 SCHED_DTTM DateTime(26) TIMESTAMP 08/16/01 JNW (CN#PL900-1.0): Added
    47 ADDRESS_SEQ_NUM Number(5,0) INTEGER NOT NULL Address Sequence Number
    48 ADDR_OVRD_LEVEL Character(1) VARCHAR2(1) NOT NULL Address Override Level
    D=Demand Line
    H=Header
    L=Line
    S=Schedule
    49 ADDRESS1 Character(55) VARCHAR2(55) NOT NULL Address 1
    50 ADDRESS2 Character(55) VARCHAR2(55) NOT NULL Address 2
    51 ADDRESS3 Character(55) VARCHAR2(55) NOT NULL Address 3
    52 ADDRESS4 Character(55) VARCHAR2(55) NOT NULL Address 4
    53 CITY Character(30) VARCHAR2(30) NOT NULL City
    54 COUNTY Character(30) VARCHAR2(30) NOT NULL County
    55 STATE Character(6) VARCHAR2(6) NOT NULL State
    56 COUNTRY Character(3) VARCHAR2(3) NOT NULL Country
    57 POSTAL Character(12) VARCHAR2(12) NOT NULL Postal
    58 NUM1 Character(6) VARCHAR2(6) NOT NULL Number 1
    59 NUM2 Character(6) VARCHAR2(6) NOT NULL Number 2
    60 HOUSE_TYPE Character(2) VARCHAR2(2) NOT NULL House Type
    AB=House Boat
    WW=Trailer
    61 ADDR_FIELD1 Character(2) VARCHAR2(2) NOT NULL Address Field 1
    62 ADDR_FIELD2 Character(4) VARCHAR2(4) NOT NULL Address Field 2
    63 ADDR_FIELD3 Character(4) VARCHAR2(4) NOT NULL Address Field 3
    64 SHIP_CUST_NAME1 Character(40) VARCHAR2(40) NOT NULL Ship To Name
    65 SHIP_CUST_NAME2 Character(40) VARCHAR2(40) NOT NULL Ship To Name 2
    66 SHIP_DTTM DateTime(26) TIMESTAMP Ship Date/Time
    67 INTERUNIT_ID Character(10) VARCHAR2(10) NOT NULL InterUnit Order ID
    68 INTERUNIT_LINE Number(5,0) INTEGER NOT NULL InterUnit Order Line
    69 FREIGHT_TERMS Character(10) VARCHAR2(10) NOT NULL Freight Terms Code
    70 SCHED_ARRV_DTTM DateTime(26) TIMESTAMP Schedule Arrival Dt/Tm
    71 REQUEST_DATE Date(10) DATE Requested
    72 ROUTE_STOP_NBR Number(5,0) INTEGER NOT NULL An identifier used to sequence customer addresses/location for a given route.
    73 BILL_OF_LADING Character(30) VARCHAR2(30) NOT NULL Specifies a bill of lading number associated with a Receivables item.
    74 SINGLE_SHIP_FLAG Character(1) VARCHAR2(1) NOT NULL Single Ship Flag
    N=No
    Y=Yes
    75 PARENT_PROD_ID Character(18) VARCHAR2(18) NOT NULL Parent Product Id
    76 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
    77 OPTIONAL_SHIP Character(1) VARCHAR2(1) NOT NULL OK to Ship Without
    78 LOT_ALLOC_FLG Character(1) VARCHAR2(1) NOT NULL Allow Lot Allocation