Pulling correct reqline receipt date

Sort:
You are not authorized to post a reply.
Author
Messages
Normajean
New Member
Posts: 3
New Member
    Hello Lawson folks;
    I am a new member of the Enterprise data warehouse team and am working on the Lawson Supply Chain project.
    Prior to my coming on board logic had been written to pull the received date for requisition line items by using the following process:
    1. join to polinesrc to get the ponumber\poline number for the requisition line
    (Join is polinesrc.source_doc_n = reqline.req_number and polinesrc.src_line_nbr = reqline.line_nbr)
    2. join to porecline to get the received date for the po_number\po_line we found in #1 above (join is poreceive.po_number and poreceive.po_line_nbr.)

    Comment: This logic is faulty as join #1 can produce multiples rows (there can be multiple polinesrc records associated with the same req_number\reqline_line_nbr.) AND join #2 can produce mulitple rows because the same po_number\po_line can be received multiple times.

    So, now I need to find a clean, accurate way to find the receive date for each requisition line.  I looked around and saw that there is a table called RQTRANS that looks like it might fill the bill. 
    The description of this table says "This file is the history of all deliveries for all requisitions.  This file contains all requisition types: inventory, nonstock, special order, and services."
    We don't currently bring this table into our enterprise data warehouse - and it will involve quite a bit of work to do so.  We would for sure do this if it would fill the need but I thought I'd post something here to see if I could get some feedback prior to starting the project to let us know that we are on the right track.  
    Many thanks in advance for any feedback, tips or input you might be able to provide about this approach (or perhaps an even better one.)
    JonA
    Veteran Member
    Posts: 1162
    Veteran Member
      This is a good table to find the information you're looking for but you could still find multiple records if there are multiple receipts for the req line.
      Jon Athey - Sr. Supply Chain Analyst - Materials Management - MyMichigan Health
      You are not authorized to post a reply.