Skip to Content
author's profile photo Former Member
Former Member

APO Queues-TRFC_QIN_ACTIVATE

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.

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • Best Answer
    Posted on Jan 06, 2014 at 01:35 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 06, 2014 at 03:10 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

    • 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

  • Posted on Jan 06, 2014 at 04:01 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 07, 2014 at 03:45 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.