I do processing on Posugg.GetRowsPlant, so I hung @timshuwy’s code on this method post processing and it does clear any records in the select from the tt table presented to the buyer. they are still in the data just not presented for the user to check buy on.
I am confused by the Buyer versus User. If you only want records for the current user regardless of buyer then you could update the BuyerID on the record marked buy with the current user. Then the Epicor processing would take over.
If you have a user that generates for several buyers then you could set the buyer id and use your UD table to set them back in post generation to the actual buyer. @josecgomez has a “way” to find those POs after generation that I used this week to transfer settings.