Crystal Report - Need Vendor for an Item in ITEMMAST

 4 Replies
 2 Subscribed to this topic
 38 Subscribed to this forum
Sort:
Author
Messages
LisaLisa
Advanced Member
Posts: 31
Advanced Member

    I have a Crystal Report in which I am displaying a list of Items from the ITEMMAST table.  I need to display the active Vendor (Name and Number) for each Item.  I know that the vendors are listed in the APVENMAST table; however, my report is retrieving the wrong Vendor.

     

    The cause of the problem could be the fact that there are multiple contracts for the Item.  If this is the case, could I retrieve the correct Vendor by looking at the POVAGRMTLN table and retrieving the contract for the Item that has not expired (EXPIRE-DT of ’01-JAN-00’)?

     

    Or, the cause could be the POITEMVEN table that I am currently using to retrieve the Vendor info.  If this is the case, could I look at the R-STATUS in order to determine which Vendor to retrieve?  If so, which status should I use?

     

    Thanks

    JonA
    Veteran Member
    Posts: 1163
    Veteran Member
      Since you can have multiple active records in both POITEMVEN and POVAGRMTLN pointing to different vendors and vendor items do you want to display all active records?
      Jon Athey - Sr. Supply Chain Analyst - Materials Management - MyMichigan Health
      LisaLisa
      Advanced Member
      Posts: 31
      Advanced Member
        Yes, and as I did more researched, I think the problem can be resolved by displaying the active records with POITEMVEN.R-STATUS of ‘0’.
        MK
        Advanced Member
        Posts: 23
        Advanced Member
          Our items (ITEMMAST) are tied to a location (ITEMLOC), so I pull the replenishment source from the item source (ITEMSRC) table.
          LisaLisa
          Advanced Member
          Posts: 31
          Advanced Member
            Thank you for your replay! I will try using the ITEMSRC table.