cancel
Showing results for 
Search instead for 
Did you mean: 

How to Unlock Queues automaticallly

Former Member
0 Kudos

Hi,

We have a peculiar problem in SMQ2 (inbound queue) of R/3 system, which is having inbound XML proxy messsages.

The queues are getting locked without messages failing in 'SYSFAIL' or any other errors.

Hence client transaction via inbound proxy happens only when we manually unlock the queue and reprocess the messages.

I have tried using/testing the function module 'SXMS_UNLOCK_QUEUEID' in a standalone mode after locking a queue myself to see whether it unlocks the queue.

But strangely it does not. I dont know why.

Kindly let me know whether we can automatically UNLOCK the queue with a program scheduled periodically or by a configuration setting.

Thanks,

John

Accepted Solutions (1)

Accepted Solutions (1)

marksmyth
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello John

I don't think there is any standard functionality to automatically unlock a queue. It does not make sense to have such a functionality.

If a queue becomes locked, it becomes locked for a reason. If there was some problem and the queue was automatically unlocked, then this could obviously cause serious problems with the system.

The issue you describe could possibly be a bug, so probably best to open a ticket with SAP Support.

Regards

Mark

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi John,

To manage queues, you can use queue APIs (function modules) such as lock, unlock, activate, or ask for queue state.

Refer the link below:

http://help.sap.com/saphelp_nw04/helpdata/en/f0/225c3c60065627e10000000a114084/content.htm

For automatic qRfc failure recovery, schedule the report RSQIWKEX to run periodically. This report enables automatically resets the queues.

Thanks,

Former Member
0 Kudos

Hi,

Thats exactly my question.

Which program/function module can i use to UNLOCK the queues?

The help.sap link does provide any.

Thanks,

John

Former Member
0 Kudos

John, I think there is not standard program / function module to unlock the queues automatically.

You need to write a custom function module for it.

Thanks,

drosadeoliveira
Explorer
0 Kudos

Did you try to Register and Activate the queues using the transaction SXMS_QREG? You need to do this in your R/3 system too.

Regards,

Daniel Rosa.

rodrigoalejandro_pertierr
Active Contributor