Good day,
A possible solution would be to develop an ABAP program calling FM L_TR_CANCEL and run in in the background via batch job throughout the day. The program could select only the relevant TR and mark as processed. I have something similar running for my replenishment so partial TR are marked processed if they are partly fulfilled (that allows the replen team to override the TR qty during T.O. confirmation and not leave partly open TR). The program could be added as an additional step in your replenishment batch job.
Hope this helps