I previously did some work on MtlTags, and agreed, it is an odd report to work with. I also wanted to pull in some receipt information.
MtlTags has a DataSource called “MtlTags” which is some kind of system query source, not a database table. That’s why there aren’t any fields listed in the RDD. However, if you look at the query in the RDL, “MtlTags” it includes PartNum and PO information… which is enough.
I would ignore MtlQueue.
Add RcvDtl as a data source to your custom RDD with the below relationship, linking it to MtlTags.
Then you can add that join to your RDL.
="SELECT T1.AsmSeq, T1.TagNum,T1.BCAsmSeq,T1.BCBinNum,T1.BCJobNum,
T1.BCLotNum,T1.BCOprSeq,T1.BCPartNum,T1.BCWhseCode,
T1.BinNum,T1.ItemQty,T1.JobNum,T1.LaborNote,T1.LotNum,
T1.NCComment,T1.NonConfTranID,T1.OpCode,T1.OprSeq,
T1.PartNum,T1.PartDesc,T1.POLine,T1.PONum,T1.PORel,
T1.Reason,T1.ReasonDesc,T1.ResGrpID,T1.TagFormat, T1.TagTitle,
T1.UM,T1.UM_UOMSymbol,T1.VendID, T1.VendName,T1.WhseCode,T1.QtyNum,
T1.LegalNumber, T1.JobSeqType, T1.Revision, T1.BCPCID, T1.PCID,
T1.DMRNum, T1.AttributeValueSeq, T1.AttributeSetShortDescription,
T1.NumberOfPieces, T2.PackSlip
FROM MtlTags_" + Parameters!TableGuid.Value + " T1
LEFT OUTER JOIN RCVDTL_" + Parameters!TableGuid.Value + " T2 ON
T1.Company = T2.Company AND
T1.PartNum = T2.PartNum AND
T1.PONum = T2.PONum AND
T1.POLine = T2.POLine AND
T1.PORel = T2.PORelNum"
Add PackSlip as a Query Field, add it to your report where you want it, and you should be good to go.