on 01-06-2014 1:17 PM
User wants to run a backgroud job for processing the Queues using a report not from the transaction SMQ2. So, i have used the function module TRFC_QIN_ACTIVATE in my report to process the Queues, but its not processing. Please provide me the solution for the same.
Hi Ayesha,
What is the reason why you would want to process the queue using the report ? Shouldn't it be automatically processed ? If it is Outbound queues, if you register them in SMQS, they will process automatically. Also, for Inbound queues, in SMQR-> you need to register them to process the queues automatically.
Babu Kilari
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
Hello Ayesha,
Alternatively, as mentioned by Tiago about, you could use the programs RSQIWKEX, RSQOWKEX to activate Inbound and Outbound queues. However, if the queues are in READY status, you will not be able to process them with this report since the statuses that it can handle were pretty much hard coded in the program. May be you can build a wrapper program for this to have a selection screen to accept the queue name and modify the logic in such a way that you could handle the activation of the queue.
TRFC_QIN_ACTIVATE- The function module that you were trying to use might not be helpful as the key FM which does the activation is actually at the tid level. You may take a look at the FM TRFC_QIN_RESET_LUW. The information for filling the tid can be retrieved from TRFCQIN database table. After using the above FM, try to run the FM QIWK_SCHEDULER_ACTIVATE to push the queue.
Hope this helps.
Babu Kilari
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Ayesha
Please refer this thread which was opened on similar topic.
http://scn.sap.com/thread/3476228
May be this will help you.
Thank you
Satish Waghmare
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ayesha.
Report RSQIWKEX restarts the status of all inbound queues (SYSFAIL, RETRY, CPIERR and RUNNING).
Report RSQOWKEX restarts the status of all outbound queues (SYSFAIL, RETRY, CPIERR and RUNNING).
You may use these reports to reprocess those queues which are stuck.
Regards,
Tiago
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ayesha.
In this case, you may use note 851491 as a template to create report ZDS_RESET_QUEUE_STATUS.
The report does basically what Babu suggested above
1 - uses FM /SAPAPO/CIF_QIN_GET_QUEUES to read queues from TRFCQIN
2 - uses FM TRFC_QIN_RESET_LUW to reset the status of the selected queues
3 - uses FM QIWK_SCHEDULER_ACTIVATE' to activate the queues
Regards,
Tiago
User | Count |
---|---|
9 | |
4 | |
3 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.