Skip to Content

Limit concurrent users of a WDA application

Hi,

Is there a standard mechanism so as to limit the number of concurrent users in a WDA application?

Would it make sense to use some locks to track down the current number of users?

Thanks in advance for sharing your experience and ideas!

Best regards,

Guillaume

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jun 07, 2012 at 09:36 AM

    Hi Guillaume,

    I'm not aware of any standard functionality in the ABAP stack to deliver this sort of functionality, however I have seen a number of discussions on SDN over the years about it and have been involved in developing similar solutions in various SAP technologies also.

    My advice would be to create a small package containing a few objects to enable this functionality for any and all applications, instead of just using lock objects specific to your one WDA application. You could create a config table to map a given object to it's concurrency limit, such as ZABAP_PROGRAM_1 - 10 users. Then use a further transient table to store a current count of users against each object. You then need a small number of function modules that handle querying these tables and updating the concurrency table. Enable them as RFC and you have a reusable package that can be used inside and outside the ABAP stack.

    You will have to consider what happens if a user's session is lost, or they kill a remote application in an incorrect manner and hence their entry remains on the concurrency table, however this is no different to an orphaned lock entry in practice.

    Hope this is a useful starter.

    Gareth.

    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.