cancel
Showing results for 
Search instead for 
Did you mean: 

APO Queues-TRFC_QIN_ACTIVATE

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

babu_kilari4
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hi Babu,

Its  the User requirment to process the 'NOEXEC' and 'SYSFAIL' Queues,but when used the FM TRFC_QIN_ACTIVATE to process  its not getting processed. when processed manually using SMQ2  its succesfully. Please suggest the same.

Thanks in advanced.

babu_kilari4
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Thank you babu ,the above two FM mentioned  helped me to restart the Queues.

Answers (3)

Answers (3)

babu_kilari4
Active Contributor
0 Kudos

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

satish_waghmare3
Active Contributor
0 Kudos

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

0 Kudos

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

Former Member
0 Kudos

Hi Tiago,

Want to restart the status of the Queues which are in 'NOEXEC' status. Please suggest the same.

0 Kudos

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