MSCM Received Not Delivered

 5 Replies
 1 Subscribed to this topic
 38 Subscribed to this forum
Sort:
Author
Messages
Me
Veteran Member
Posts: 96
Veteran Member
    I'm looking to see if anyone has a SQL script they'd be willing to share.  We're trying to put together one that provides everything that has been received but not delivered.  We're struggling with the MSCM tables and was hoping someone else has already put something similar together.
    StephanieD
    Veteran Member
    Posts: 39
    Veteran Member
      select
      delt.creation_dt receipt_date,
      delt.rcv_user_id receiver,
      delt.receiver_no receipt,
      delt.delivery_ticket_id lawson_tracking,
      delu.tracking_no carrier_tracking,
      loc.location_code,
      loc.name deliver_to_location
      from mscm10.delivery_ticket delt,
      mscm10.delivery_unit delu,
      mscm10.location loc
      where delt.delivery_ticket_id = delu.delivery_ticket_id
      and delt.delivery_location_id = loc.location_id
      and delt.delivery_ticket_type = 'P'
      and delt.delivered = 'F'
      and delt.creation_dt >= sysdate -1
      and delt.delivery_location_id <> delt.recv_location_id
      Me
      Veteran Member
      Posts: 96
      Veteran Member
        Thank you Stephanie!  This got us to where we needed to be.
        ddickerson
        New Member
        Posts: 1
        New Member
          Much appreciated!
          Kat V
          Veteran Member
          Posts: 1020
          Veteran Member
            Also grabbing - Thank you!
            brupp
            Veteran Member
            Posts: 165
            Veteran Member

              Very helpful - thanks much!!

              Anyone willing to share sql for the error log?  Having trouble with output showing all items instead of just the ones with an insufficient SOH error.  We think we're missing a table.