cancel
Showing results for 
Search instead for 
Did you mean: 

how to Activate Queues(SMQ2) by default !!

Former Member
0 Kudos

Dear All,

I am working on IDOC interfaces.I am facing a problem with Queues.

When ever the XI server is restarted.. the Queues are getting deactivated, and the Idocs are getting stuck up in the Queues,untill the Queues are activated manually.

Is there any solution to make the Queues (SMQ2) active by default,even after restarting the XI server.

Thanks in Advance.

Praveen

Accepted Solutions (0)

Answers (2)

Answers (2)

kkram
Contributor
0 Kudos

The reason your queues are in deactivated status is because the server was restarted when some queues entries were still under process. The QRFC processing program is an auto ABAP process.

However, you can right a custom program that will call function module TRFC_QOUT_ACTIVATE for SMQ1 and TRFC_QIN_ACTIVATE for SMQ2 and schedule it to run at regular intervals. Ofcourse, you should use TRFC_QIN_OVERVIEW_STATES and TRFC_QOUT_OVERVIEW_STATES to check if there are any inactive queues before activating the same.

KK

moorthy
Active Contributor
0 Kudos

Hello,

I don't think so, Queues will deactivate during the restart..

Btw, did you activate and register your queues in SMQR and then check ..

Regards, Moorthy