Probably should have created a new thread for this since this one is solved.
Take a look at this thread about limiting search results. ShipVia How to Inactivate - ERP 10 - Epicor User Help Forum (epiusers.help)
Instead of of using a flag like inactivate, make the reason code descriptions start with the operation code related to the reason type:
…
GRIND - Over OD
GRIND - Under ID
…
Now in the BPM, you can limit the records by the operation by manipulating the where clause.
BAQ Search is also an opportunity here.