Hello Ayesha,
In that case, what you can do is to write a program to select the list of queues from TRFCQIN Db table with the status as mentioned above and use the function module TRFC_QIN_RESET_LUW followed by QIWK_SCHEDULER_ACTIVATE to achieve your purpose. I am sure this will help you achieve the purpose.
Hope this helps
Babu Kilari