Restricting Concurrent users on a particular BSP Application

We are having an appraisals link in the PM section of the portal which runs the HAP_DOCUMENT BSP application. We have to restrict the number of concurrent users accesing this application at the same time to about 600 so that the server will not crash...Is there a way by which i can find out the no of users accesing a partcular BSP application concurrently??

Appearently my interpretation of how Logon Groups work don't match up to their actual sophistication. 
They use this number of users only as a gage to load balance between mutliple app servers.  It never uses this amount as a limiting factor.
Sorry if I led you down an incorrect path.  It seemed promissing.  However you could at least use this approach to limit the load to a single app server.  You could then configure the maximum number of concurrent connections in the ICM on this app server.  However this probably only works if you are willing to dedicate a single app server to this single application.

Similar Messages

  • Restrict concurrent user and/or session from a client

    Hi All:
    We have an application with database Oracle 10g.
    I want to add a new validation to restrict concurrent user and/or session from a client. (we have almost 60 client firms using the software to enter daily trasnactions).
    All users from all clients are connecting to the database using a common functional ID.
    What I did was:
    1) Add a column 'user_logged_in' in the master table for client and update it as Y when user from that client logged on to the system,
    2) Insert the application logon details (we can figure out the client details from this) into a global temp table,
    3) Create a logoff trigger to update the 'user_logged_in'flag in client master table by using values from global temp table when session logged off and
    4) Restrict the users from same client if the flag is 'Y'
    But the problem in this case is logoff trigger will not be executed in case if the session got killed or terminated abnormally.
    Is there any other good solution for this scenario?
    Thanks
    Robin

    >
    But the problem in this case is logoff trigger will not be executed in case if the session got killed or terminated abnormally.
    Is there any other good solution for this scenario?
    >
    A better question might be - is there any other 'worse' solution than that?
    >
    2) Insert the application logon details (we can figure out the client details from this) into a global temp table,
    >
    Meaning - if that session goes down you have NO logon details since the data isn't persistent. Is that really useful?
    There is nothing you can do to account for someone just pulling the plug on: the server, the network connection, the bridge, the router, etc. And if a user is connected, starts a long-running process and then gets disconnected the process is likely to keep running in the background until Oracle needs to talk to the user again and then realizes that they are gone.
    Meanwhile the user is trying to logon again but can't because the system thinks they are already logged on.
    >
    All users from all clients are connecting to the database using a common functional ID.
    >
    Doesn't that kind of make it harder, not easier, to track who is really connecting and using your application?

  • User validation for the BSP application

    I wanted a user to access the bsp application.
    I already have the user names maintained in the database who will be using the application.
    i am using the application class for my application.
    where should i do the user validation and how.
    i know tst if i would had used the model class then i can do it in the request method of the model class.
    but where to do it when using the application class.
    Thanks

    Hi Din,
    I assume that the usernames that are present in your Database also exists in the WAS Server.
    i.e. The database has a part of users that are present in the WAS Server.
    Your need is to allow only those users in the database to access your bsp application and not others correct!
    If your first BSP Page is a ...
    <b>View</b>
    1.In the DO_INIT method of the Corresponding Controller Class populate the internal table that is present in the Application Class with the usernames that are present in the database.
    2. In the DO_REQUEST method of the Corresponding Controller Class check for the username who runs your BSP Application is present in the Database.
    You can get the username who run the bsp application using the system field...
    data: username type string.
    username = sy-uname.
    So if the <i>username</i> is in the database show your bsp page else show an error page.
    <b>You can directly check for the sy-uname is present in the database.</b>
    <b>Page with Flow Logic</b>
    It is same as MVC only thing is that method name changes...
    Place the code in the DO_INIT of MVC in onCreate of Page with Flow logic.(Populate the internal table of the application class with the usernames from the database)
    Place the code in the DO_REQUEST of MVC in onRequest of Page with Flow logic.(Check whether the sy-uname is present in the itab or directly in the database).
    Hope it solves your problem
    Regards,
    Maheswaran.B

  • User switch scenario involving BSP application

    Hi
       I am new to BSP application design. We have requirement from a BSP  application wherein different sales force personnel need to see different segments of same data on the BSP application - owing to security requirements. We are thinking of using a default user and then user switch to specific  SAP reference user ( based on maybe their windows logon credentials within the BSP application - each reference will have a security that has authorization to see a particular segment of data for a group of sales force people.
    Is this approach ok ( of switching user from default to specific reference user and having a reference user as the representative user for each sales force group ) ?  Any thoughts/suggestions on experiences that can be shared here to architect this scenario would be highly appreciated.

    Hi,
    you can do this. Therefore you have to setup an use the nodes via sicf. User switch involves also
    a new registration with authorization. You can lok at bsp application SYSTEM for that.
    On the otherhand: build role via Profile generator: TXN PFCG and do authorization checks as you do
    it in SAPGui Dynpro Programmining. Why not. We have build big applications with many user roles
    using this approach.
    The first ones makes only sense, when you have a public area using a public user. Therefore you enter the public account in thze right sicf nodes.
    Best regards,
    Stefan

  • How user will execute the BSP application I created...

    Hi,
    I have created a BSP application which has various pages with flow logic.
    Now to execute it I use execute icon and then I get moved to web browser.
    The application is working cool.
    But what I am wondering is user is not going to go to code and use excute button to execute the code.
    So how can he do the execution of page ?

    You have lots of options (and no generally users don't go to SE80 and launch your application from there).
    1.  Give out the URL to your application. Users can launch the application directly from the URL in the browser. The URL could be stored in the Browser Favorites or as a desktop icon.
    2.  If you use the Netweaver Portal - create a BSP iView for the application and attach it to the users' role.
    3.  A BSP URL can be added as a link in the SAP Easy Access Menu.  Under favorites, just choose Insert Other Object
    4.  You can create an ABAP Transaction code. In the program under this transaction code, you could host the BSP application in an HTML Control or open it externally in a browser via CL_GUI_FRONTEND_SERVICES=>EXECUTE.  It is fairly easy to create a generic ABAP program to launch BSP application and receive the application name via a Transaction Code Parameter. You can build a specfic URL to a BSP application in code using CL_BSP_RUNTIME=>CONSTRUCT_BSP_URL.

  • Capture all the Users who viewed the BSP Applications ???

    Hello All,
           I need to create a BSP Application which shows all the Users, who have executed different BSP Applications and the Number of Times each user has executed these BSP's.
    Is this Possible ?
    If yes, can anyone tell me how to go forward  ????
    Regards,
    Deepu.K
    Message was edited by:
            deepu k

    Hello Eddy,
          I have gone thru ur Blog.
    But in this I guess I need from this part -->
    C. Generating Own Stats in BSP
    C.1. Logging It
    If all of the aforementioned tools don’t cover what you’re looking for, or there are technical/other reasons not
    to choose them, then there is only one thing left to do. Write your own stuff. It really isn’t that difficult to do
    and, if you are confident enough, you can make something that suits your needs 100%. Or as a host in a
    Flemish regional TV DIY show always says: “What you do yourself is usually done better.” Let us see what
    you need to do in order to achieve this.
    First of all you need data on the browser. This can be done via JavaScript and the navigator object:
    appCodeName
    The code name of browser (i.e.: Mozilla)
    appName
    The name of the browser (i.e.: Microsoft Internet Explorer)
    appVersion
    Version information of the browser (ie: 4.75 [en] (Win98; U)
    userAgent
    String passed by browser as user-agent header. (ie: Mozilla/4.0
    (compatible; MSIE 5.5; Windows 98; Hotbar 3.0))
    Platform
    The platform of the client's computer. JavaScript 1.2 property. (ie:
    Win32)
    You probably need some extra information like IP number. This can be done via the
    request->get_header_field method.
    As such you don’t need to retrieve this info every time if you have a single entry point like a login page. Just
    put it in a server side cookie. Each new page will read this cookie and save this info together with the page
    name, user id, eventual parameters, etc. into the log. Now I talked earlier about the visitor concept. This is
    also an ideal place to implement this. If you are only interested in returning visitors with a full day time interval,
    you can for example determine whether that user has already used that application. If so, you just increment a
    counter. If not, you have to create a new line. This method will also reduce the size of your table.
    C.2 Showing It
    The only thing you need to do is to analyze and visualize stuff. The analyzing stuff is completely up to you.
    The following screen shot is an example where the total number of visitors within a given time frame is shown.
    It also shows the number of unique visitors in that same time frame compared to the potential number of
    visitors. You might find this of interest if you want to know how many (internal) users actually use your intranet
    application. You can couple the user info to the department info and then you can figure out whether
    department X or Y is actually using the application.
    But I didnot get the actual idea of implementing this in my BSP.
    Can you give an explanation for the above ?
    Regards,
    Deepu.K

  • BSP Application Login : User Authentication

    Hi All,
    We have a particular BSP application which we want to open up to the world without any authorization checks/password entries etc. Anybody who knows the URL should be able to access the link without any restrictions. But when I try to access the link it pops me up a logon pad. I am sure this is not from my BSP code. What are the steps I need to take to make sure users dont have to go through without needing to log in?
    Any pointers will be greatly appreciated.
    Regards,
    Karthik

    Hello Karthik Boyapalli ,
                                       You can achieve this functionality by giving the logon information in the BSP service directly in Trabnsaction SICF and then navigating to the path sap->bc->bsp-><bspname>. If this is the case then all the users who access this BSP will be logged in with user that is mentioned on that BSP service.
    Hope this helps.
    Thanks,
    Greetson

  • # of Concurrent Users in an Application

    Is there a way to determine the # of Concurrent Users in an application at specific points in time?
    Thanks,
    Mark

    Hello Mark,
    >> I was still left wondering about concurrent user usage of the application
    Concurrent users in a Web environment/application is a bit tricky. One moment you are there, and in the other you closed your browser, and the application can’t really know that. So first you need to define what you consider to be an active user, and from that to compute concurrent users.
    @Roel – I’ve just noticed your new title as Oracle ACE. Congratulations.
    Regards,
    Arie.
    Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.

  • User NOT able to login again to BSP application after logging off

    Hi Experts,
    What the user is doing?
    Step 1: User logged into BSP Application. Result: Successful login
    Step 2: User logged off from BSP Application. Result: Successful log off
    Step 3. User again tries to log into BSP Application with correct login credentials. Result : LOGIN FAILURE
    What is being displayed onto the screen after step 3?
    1. Login screen does not changes.
    2. It does not show any error/warning messages.
    3. Next screen, after login screen is NOT being displayed.
    What the user does next?
    User is deleting all the cookies & cache, and again trying to log into BSP application. Result : Successful login
    Question:
    Everytime, the user logs off from the BSP application, and again tries to login, he/she is NOT able to login without clearing the cookies and cache.
    First, the user has to clear cookies and cache, then ONLY he/she is able login.
    Can you please advice on this?
    Response will be highly appreciated.
    Regards,
    Mandar

    Hi,
    Refer http://help.sap.com/saphelp_nw04/helpdata/en/6b/9d91d062cc52419f23926ff1bf2ad3/content.htm
    BSP Application Login/Logoff and http://wiki.sdn.sap.com/wiki/display/BSP/Logon
    This may be helpful for your issue.
    Thanks,
    Chandra

  • Get the number of concurrent users for a WD application

    Hi all,
    I need to implement a method which counts the number of concurrent users for a Web Dynpro application.
    Say I have a portal with X applications, is there API that can tell me how many users are working on specific application?
    I know that this line of code
    IWDClientUser currentUsers[] = WDClientUser.getClientUsers();
    will get me the number of users that are working on ALL Web Dynpro applications. Is there a way of getting it for specific application?
    I thought of using a text file/small DB table that set/get the number of users but I think it will cause overhead issues.
    Any ideas how to implement it?
    Thanks,
    Omri

    Hi Omri,
    Try using  WDServerState.getActualApplications() method.It returns array of actual running applications.Compare ur application name with the array elements and keep a counter for matching elements.
    String app[]=WDServerState.getActualApplications();
        for(int i=0;i<app.length;i++)
              view.getComponent().getMessageManager().reportSuccess(
               app<i>);

  • Stateful and Stateless BSP Application

    Hi Experts,
    I would like to know what a stateful/Stateles BSP Applicaiton means. I read the description given in help file but couldn't get the full idea behind it. Could anyone give a practical example for the same and explain. Thanks.
    Regards,
    Prabaharan

    Hi,A stateful BSP application is executed like a normal SAP transaction, – independent of all user interactions - in one single context (roll area). This means that data specified by the user during the application execution or data determined by the application itself is available potentially throughout the entire execution duration of the session.
    Since the HTTP protocol itself operates in stateless mode and knows no implicit mechanism to assign independent requests to a common logical session, the BSP runtime uses Session Cookies to group requests into one common session. The name of the cookie is sap-contextid, the validity area is restricted to the URL of the BSP application. This means that a BSP application can be executed within a browser only once at any one time. Different BSP applications can operate in parallel in the same browser. Multiple users/browsers can execute the same BSP application in parallel as often as required.
    Advantage
    The main advantage of stateful BSP applications is that they are simple to program. As usual, you have access to data determined previously and reading or re-calculating data can often be omitted. For database-intensive applications, this can lead to considerably better system performance compared to a procedure where identical read operations have to be executed for every request.
    Disadvantage
    This significant advantage is at the same time however a disadvantage – the improved runtime is offset by a larger memory requirement. The number of possible parallel sessions in an SAP Web Application Server is restricted not least by the amount of available memory space. When this space is exhausted, no further sessions can be started and users cannot log on
    Stateless BSP applications only block resources on the SAP Web Application Server during the time one single request is being processed. When the request has been processed, all resources in particular the application context are returned to the system for use in other requests.
    Stateless applications allow - at least from the viewpoint of the memory resource – optimal scaling regardless of the number of users. On the other hand, releasing the application context after every request may mean that identical data is read from the database and formatted multiple times. In this respect, the runtime may offset the memory saving. This should be evaluated and analyzed on a case by case basis.
    Rule of Thumb: Stateful or Stateless?
    As a rule of thumb, it is recommended that Internet scenarios used at the same time by a large number of users operate in stateless mode. Stateful programming is recommended for more complex applications that are used by a limited number of users in parallel and that operate with data that is expensive to determine.
    hope this helps.
    regards,
    keerthi.

  • Concurrent User Sessions in Sharepoint2010 FBA site

    Hi All,
    How do i Restrict concurrent sessions for a single user - SharePoint 2010, its FBA authenticated site.
    Currently i am Using a Application variable that stores User and IP and the array is cleared on sign out and session timeout.
    We are unable to track the session time out easily, i have a httphandler that redirects to Homepage i am clearing the Application variable in the httphandler but i get the object as Null in debug mode.
    I need to implement the same on Window close button click as well to clear the application variable.
    As of now the code is working partially. Any suggestions to do it in a better way or it is not possible in SharePoint to track session start and end and restrict user to have a single session. Any help would be greatly appreciated.
    Thanks in Advance
    Regards

    hi
    it is impossible to do reliably, this question is raised from time to time. Also I recommend you to double check your architecture: by restricting concurrent user sessions you play against web rules which in most cases is caused by fundamental problem of
    the architecture. Your solution with app variable will work only on all-in-one server, on farm it won't work for example. So I suggest to check architecture instead of continue working in this direction.
    Blog - http://sadomovalex.blogspot.com
    Dynamic CAML queries via C# - http://camlex.codeplex.com

  • Session Management in BSP applications

    Hello,
    I habe been developing the following application to send E-Mails from Outlook to SAP WEB AS Abap Stack:
    - I have created a COM-Addin in MS Outlook
    - When the user clicks on a button, that I have created, the currently marked E-Mail-Message is read
    - The E-Mail-Information is analysed
    - MS Internet Explorer is dynamically opened by my Outlook application
    - A html form is dynamically created
    - html form is posted dynamically to a BSP-application
    -> Basically what I have is a HTML form, that is posted to a BSP application
    I am facing the problem that Web AS is mixing up different sessions:
    - I have no user specified for my BSP application, that means whenever a client visits my page a login popup should appear
    - I have defined the first page of my web application as stateless
    So what I expected was, that whenever my html form is posted to the Web AS, I get a logon popup, and everytime my web page is called a new session is started
    Actually MS Internet Explorer and my BSP Web Application are acting differently:
    When I post the html form for the first time, the logon popup appears and everything works fine
    When I post the html form for the second time WITHOUT CLOSING THE FORMER INTERNET EXPLORER INSTANCE, the LOGON POPUP DOES NOT APPEAR, and the BSP application is using old, wrong data from the former html form
    When I CLOSE ALL INTERNET EXPLORER INSTANCES, THE LOGON POPUP APPEARS, and I get the correct information for my BSP application
    ->
    Whenever I have already sent a html form to the application and do not close all internet explorer instances, my BSP application mixes up old data
    Whenever I have already sent a html form to the application and CLOSE all internet explorer instances, my BSP application is working fine.
    I have the following settings for my BSP application in transaction SICF:
    - Logon Procedure: Stanadard
    - Anonymous Logon Data:
         Client: 301
         User: [blank]
         Password: [blank]
    Does anybody have an idea how to get my application to work correctly?
    - I cannot change internet explorer settings as I have many clients and no authorization for that
    - I can change (maybe meta data?) the html form
    - Are there any settings of the BSP application that I can change, so that my application works fine
    Thanks for your help in advance!
    Andreas

    Hello Sebastian,
    Thanks for your answer!!!
    Unfortunately I cannot close the brower window via javascript, as my BSP application is not simply one page reveiving the form and sending one response page, but the BSP application consists of more pages (providing search functionalities,...).
    I have tried the following:
    - I have opened a new Internet Explorer application "IE-application1"
    - I have started my MS Outlook application which (dynamically) opened a new Internet Explorer "window2".
    - The Mail was saved to SAP
    - I closed the "window2"
    - I sent another mail to SAP via "window3"
    -> SAP was still remembering the session of "window2" and mixed up the session (session info obviously was hold in "IE-application1")
    I did not fully understand your answer refering to BSP Application "system" and its page "session_single_frame.htm" together with the source code of "session_single_frame.htm".
    What I need is, to tell my startpage "index.htm" the following: Forget every cookie and session and whatever else you have had until now, take the input values of the html form and process them. Is this possible with "session_single_frame.htm"?
    Andreas

  • Concurrent user sessions

    I want to restrict concurrent user sessions to one in weblogic server console. we are using OBIEE 11.1.1.5.
    At a given point of time the user should have only one login session. if user logs in through other computer, his/her previous session should logoff.
    Is there any way to do this other than using OAM/OID?

    hi
    it is impossible to do reliably, this question is raised from time to time. Also I recommend you to double check your architecture: by restricting concurrent user sessions you play against web rules which in most cases is caused by fundamental problem of
    the architecture. Your solution with app variable will work only on all-in-one server, on farm it won't work for example. So I suggest to check architecture instead of continue working in this direction.
    Blog - http://sadomovalex.blogspot.com
    Dynamic CAML queries via C# - http://camlex.codeplex.com

  • Validation to restrict the user at parking level

    Hi,
    I have created a validation to restrict the user to use particular G/L codes only using GGB0. It is working fine and it gives the error message in T-code FB50 & FB60 immediately after entering the un-authorized g/L codes. But still the user is allowed to park the document. and the same validation works in Z tcodes. But in Z tcodes the error message comes only at the time of Simulate/Save as complete or Post.
    But i want the error to display immediately after entering the G/L Codes in Z transaction also. Can you please help me to complete the validation by restricting the user to park also

    HI,
    Yes. Thanks for your valid answer. It will not work in parking T codes. It will work only in Posting T-codes. The Z-tcode what we are using all the parking transaction. Then I should try using the Badi. I will try.
    Divya S
    Edited by: S Divya on Dec 8, 2011 5:12 AM

Maybe you are looking for