The BPM condition choice was the key!
The BPM query returns a data type compatibility exception, although the same query runs fine as a normal BAQ (albeit as PORel, not ttPORel as in the BPM query). I wonder if there is casting required.
for each TranGLC no-lock where TranGLC.RelatedToFile = 'PORel' And TranGLC.SegValue1 = '9999' , each ttPORel no-lock where (TranGLC.Company = ttPORel.Company and TranGLC.Key1 = ttPORel.PONum and TranGLC.Key2 = ttPORel.POLine and TranGLC.Key3 = ttPORel.PORelNum )
The BPM query returns a data type compatibility exception, although the same query runs fine as a normal BAQ (albeit as PORel, not ttPORel as in the BPM query). I wonder if there is casting required.
for each TranGLC no-lock where TranGLC.RelatedToFile = 'PORel' And TranGLC.SegValue1 = '9999' , each ttPORel no-lock where (TranGLC.Company = ttPORel.Company and TranGLC.Key1 = ttPORel.PONum and TranGLC.Key2 = ttPORel.POLine and TranGLC.Key3 = ttPORel.PORelNum )