BPM for PO receipts

I am trying to write a BPM so that when a PO reciept against a
completed job created by mass receipt an information message appears.
This is my code:
for each ttRcvDtl where ( ttRcvdtl.RowMod='A' or ttRcvDtl.RowMod =
'U') and ttRcvdtl.ReceivedTo = 'PUR-MTL' ,
each jobhead where jobhead.company = ttrcvdtl.Company and
jobhead.JobNum = ttrcvdtl.JobNum and jobhead.JobComplete= True

I do not think it is code related but rather picking the right
receipt object. I have tried the createmassreciepts and the
getnewrcvdtl and neither works. There 57 objects for receipt objects.
Anyone got clue which to use?