Finding out the active user in last 10 min

Hi frends,
i have the requirement where i have to find out the the following....
1. who r the user accssing the portal for last 10 min....
2. what r the pages they r viewing.......
3. do they got any time out ......
4. in what page they got the time out........
can anyone help me out in this regards...
thanks in advance......
sithi

Hi Martin,
my complete code is as below:
Pls check it for correctness.
IPortalComponentResponse response = (IPortalComponentResponse)this.getResponse();       
      Form myForm = this.getForm(); // get the form from DynPage
      int dat = 6000060600;
IUserAccountFactory useraccfact = UMFactory.getUserAccountFactory();
try{
  IUserAccountSearchFilter srcFilt = useraccfact.getUserAccountSearchFilter();
  Date secondDate = Calendar.getInstance().getTime();
  Date firstDate = new Date(secondDate.getTime()-dat);
  srcFilt.setLoggedInBetween(secondDate,firstDate);
  ISearchResult result = useraccfact.search(srcFilt);
  List list = new LinkedList();
  while(result.hasNext()){
  String id= (String)result.next();
  response.write("<br>hi"+id);
  list.add(id);
Collections.sort(list);
Iterator iter = list.iterator();
  int count = list.size();
  while(iter.hasNext()){
IUserAccount useracc = useraccfact.getUserAccount(iter.next().toString());
String disp = useracc.getAssignedUserID();
response.write("<br>"+disp);
  response.write("<br> <b>No of Hits = <b>"+count );
  catch (UMException e) {
  response.write("<br>Searching failed - " + e.getLocalizedMessage());
Regards,
Sithi

Similar Messages

  • How to find out the active associations and clear inactive associations?

    Hi guys,
    I can find out the associates on IOS AP using the command "show dot11 associations client". The output includes all associations even though the clients have left for a long while.
    1.How to find out the active associations?
    2.How to clear the inactive associations?
    3.What is the by default timeout for the inactive associations?
    Thanks,
    yytellmey

    Hi Huang,
    try this:
    Show the associated clients:
    sh dot11 associations all-client
    Deauthenticate client
    clear dot11 client
    Activity Timeout
    show dot11 activity-timeout
    per standard 60 secs.
    Best regards,
    Frank

  • How to find out the report users.

    Hi,
    Is there any way to find out the users names(or OS Users) who are using a report from last 12 months from Oracle Database, Report Version is 10g.
    Thanks for your early response.
    Thanks
    Amit.
    Edited by: user535789 on Mar 7, 2010 7:02 PM
    Edited by: user535789 on Mar 8, 2010 12:21 AM
    Edited by: user535789 on Mar 8, 2010 7:01 PM

    Hi, if you're using oracle apps, you might look at fnd_conc_requests_form_v but it may have been purged.

  • Transaction IW32.How to find out the person name.(Last changed By)

    Hi all,
    When i executed the transaction IW32.Its displays changed by and created by fields. please any body can tell me how to find out the person  name who had made last change with respect to the field changed by.
    Please tell me the table and field name for the field last changed by......
    Regards,
    Munna.

    hi,
    check the table AUFK field AENAM for the order number(AUFNR) in IW32..........

  • How to find out the active status of catalog area..

    Hi Team,
    In COMM_PCAT_ADM, we can find out the catalog view > catalog areas and product and their status.
    I am working on a requirement where i need to create a report program which will fetch the catalog id, catalog view, catalo area, catalog area status, product id and status.  Input is the catalog id and View ids (can give a range of views).
    Using tables comv_pcat_itm_a, comv_pcat_itm and comm_pcat_view i was able to retrieve the details except the catalog area status.
    Can anyone help me on this..

    Hi,
    Use Tcode st05 for search required table.
    Denis.

  • Finding out the source user and tablespace in a database export

    Hi folks,
    Lets say a customer gave us a export of their DB using expdp or exp, whats the best way to find out what users and tablespaces are in that export? With exp Ive used imp and created a index file but it seems a datapump export doesnt give up this information so easily. Short of going back to a customer and asking, whats the best technique?
    -Mark

    No this doesnt really give enough info. It give a hint toward the tablespace but not the user:
    $ grep "ORCH" test.sql
    sys.dbms_logrep_imp.instantiate_schema(schema_name=>SYS_CONTEXT('USERENV','CURRENT_SCHEMA'), export_db_name=>'ORCHTST.VODACOM.CORP', inst_scn=>'53131043');
    In the above example I know the user and tablespace will contain the charaters "ORCH" in part and this only shows the one entry.

  • How to find out the 'z' user exit used in a Particular Transaction

    Hi,
    I have requirement to analyse all the user exits used in a transaction say 'VA01' . How can i find the user exits in a VA01 transaction. Can anyone suggest how to find the User exits
    Thanks in Anticipation.
    With Best Regards
    mamatha

    you can execute the following program , give the transaction name and execute
    *& Report  YCHATEST                                                    *
    REPORT z_find_userexit NO STANDARD PAGE HEADING.
    *&  Enter the transaction code that you want to search through in order
    *&  to find which Standard SAP User Exits exists.
    *& Tables
    TABLES : tstc,     "SAP Transaction Codes
             tadir,    "Directory of Repository Objects
             modsapt,  "SAP Enhancements - Short Texts
             modact,   "Modifications
             trdir,    "System table TRDIR
             tfdir,    "Function Module
             enlfdir,  "Additional Attributes for Function Modules
             tstct.    "Transaction Code Texts
    *& Variables
    DATA : jtab LIKE tadir OCCURS 0 WITH HEADER LINE.
    DATA : field1(30).
    DATA : v_devclass LIKE tadir-devclass.
    *& Selection Screen Parameters
    SELECTION-SCREEN BEGIN OF BLOCK a01 WITH FRAME TITLE text-001.
    SELECTION-SCREEN SKIP.
    PARAMETERS : p_tcode LIKE tstc-tcode OBLIGATORY.
    SELECTION-SCREEN SKIP.
    SELECTION-SCREEN END OF BLOCK a01.
    *& Start of main program
    START-OF-SELECTION.
    * Validate Transaction Code
      SELECT SINGLE * FROM tstc
        WHERE tcode EQ p_tcode.
    * Find Repository Objects for transaction code
      IF sy-subrc EQ 0.
        SELECT SINGLE * FROM tadir
           WHERE pgmid    = 'R3TR'
             AND object   = 'PROG'
             AND obj_name = tstc-pgmna.
        MOVE : tadir-devclass TO v_devclass.
        IF sy-subrc NE 0.
          SELECT SINGLE * FROM trdir
             WHERE name = tstc-pgmna.
          IF trdir-subc EQ 'F'.
            SELECT SINGLE * FROM tfdir
              WHERE pname = tstc-pgmna.
            SELECT SINGLE * FROM enlfdir
              WHERE funcname = tfdir-funcname.
            SELECT SINGLE * FROM tadir
              WHERE pgmid    = 'R3TR'
                AND object   = 'FUGR'
                AND obj_name = enlfdir-area.
            MOVE : tadir-devclass TO v_devclass.
          ENDIF.
        ENDIF.
    * Find SAP Modifactions
        SELECT * FROM tadir
          INTO TABLE jtab
          WHERE pgmid    = 'R3TR'
            AND object   = 'SMOD'
            AND devclass = v_devclass.
        SELECT SINGLE * FROM tstct
          WHERE sprsl EQ sy-langu
            AND tcode EQ p_tcode.
        FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
        WRITE:/(19) 'Transaction Code - ',
        20(20) p_tcode,
        45(50) tstct-ttext.
        SKIP.
        IF NOT jtab[] IS INITIAL.
          WRITE:/(95) sy-uline.
          FORMAT COLOR COL_HEADING INTENSIFIED ON.
          WRITE:/1 sy-vline,
          2 'Exit Name',
          21 sy-vline ,
          22 'Description',
          95 sy-vline.
          WRITE:/(95) sy-uline.
          LOOP AT jtab.
            SELECT SINGLE * FROM modsapt
            WHERE sprsl = sy-langu AND
            name = jtab-obj_name.
            FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
            WRITE:/1 sy-vline,
            2 jtab-obj_name HOTSPOT ON,
            21 sy-vline ,
            22 modsapt-modtext,
            95 sy-vline.
          ENDLOOP.
          WRITE:/(95) sy-uline.
          DESCRIBE TABLE jtab.
          SKIP.
          FORMAT COLOR COL_TOTAL INTENSIFIED ON.
          WRITE:/ 'No of Exits:' , sy-tfill.
        ELSE.
          FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
          WRITE:/(95) 'No User Exit exists'.
        ENDIF.
      ELSE.
        FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
        WRITE:/(95) 'Transaction Code Does Not Exist'.
      ENDIF.
    * Take the user to SMOD for the Exit that was selected.
    AT LINE-SELECTION.
      GET CURSOR FIELD field1.
      CHECK field1(4) EQ 'JTAB'.
      SET PARAMETER ID 'MON' FIELD sy-lisel+1(10).
      CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.

  • How to find out the activation log for a info* from Business content

    Hi,
      I work in a BW 3.5 environment where a lot of projects are being done simultaneously and a lot of Business content are getting activated. BW often activates a lot of other objects when a certain section of seemingly unrelated Business contents are activated without much caution.
      When I look into some of the objects related to my area of the Business content, I find them already activated.
      How do I find the activation( who, what time etc ) log history of certain objects like info objects, cubes, ODS, Infosource etc..
      This will help me immensely to communicate with various people( who inadvertently activeted them)  and find issues quickly.
       Thanks
    Arun

    Hi,
    The tables in which application logs are stored are:
    BAL_AMODAL                     Application Log: INDX table for amodal com
    BAL_INDX                       Application Log: INDX tables             
    BALC                           Application Log: Log or message context  
    BALDAT                         Application Log: Log data                
    BALHANDLE                      Application Log: Lock
    object dummy table 
    BALHDR                         Application log: log header              
    BALHDRP                        Application log: log parameter           
    BALM                           Application log: log message             
    BALMP                          Application log: message parameter       
    BALOBJ                         Application log: objects                 
    BALOBJT                        Application log: object texts            
    BALSUB                         Application log: sub-objects             
    BALSUBT                        Application log: Sub-object texts
    Within Tcode SLG1 you can query systemwide object activation on various selection criteria.
    Ofcourse furthermore for objects already once transported to PRD you can search transport requests or object lists via Tcode SE01.
    Kind regards Patrick Rieken

  • How to find out the concurrent users count in OAM?

    Hi,
    We are using OAM, OID stacks to protect our application. From oracle documentation I understand that we can limit the number of sessions per user through OAM session management. But our requirement is to limit the total number of sessions (users) who can login to the application. Is there a way to specify this total limit count in OAM or can i get it through any OAM API?
    Thanks in advance
    Aravindan

    Ok. Looks like i need to write some custom logic to fetch records from this table and then restrict the new users from login into the application. I was looking for a solution something similar to Sun java system access manager where there is an option to set session quota constraints (see the link below)
    https://docs.oracle.com/cd/E19528-01/819-5899/gcpii/index.html
    Anyways, thanks  for your response
    Aravindan

  • How do I find out the year of my mac mini and whether it is compatable with ipad or iphone

    I have a mac mini ser#YM5521HBTAA and want to know if it will work with ipad or iphone. I'm not sure of the year purchased. I'm no longer using it and would like to give it to my daughter to use with her Ipad and/or iphone

    If it's an Intel model with 10.5.8 or later installed it will work. You can decode the full information at the following site:
    Decode Mac Serial Number

  • ABAP - Logic for finding out the active employee

    Hi,
    I am trying to write the program where i need to set the flag "YES" to active employee for the particular time period for the particular position.
    For example:
    Row     Employee     DateTo     DateFrom          Position     FLAG
    1     1     1.1.2009     31.1.2009          10     YES
    2     1     1.2.2009     1.3.2009          10     NO
    3     1     2.3.2009     31.3.2009          10     YES
    4     1     1.4.2009     31.12.2009                           11     YES
    5     2     1.1.2009     31.1.2009          12     YES          
    6     2     1.2.2009     1.3.2009          10     YES
    7     2     2.3.2009     31.12.2009                           13     YES
    Employee 2 gets assigned as of 1.2.2009 to the same position 10 on which employee 1 is already assigned. Therefore, as of 1.2.2009 emplyoee 1 is not anymore the primary employee of position 10. As employee 2 is leaving the position as of 2.3.09 employee 1 gets again primary employee of that position as of 2.3.2009.
    Can any1 suggest me the logic for this?
    Regards,
    Rashmi
    Edited by: Rashmi G P on Jul 13, 2009 9:13 AM

    Hi,
    I already have a customised table where i am  trying to set the flag.
    My logic is something like this:
    Declarations:
    DATA: pos_flag TYPE char5.
    select-OPTIONS : pos for /bic/qzemployee-/bic/zhrpostn.
    SELECT zemployee datefrom dateto pos_flag FROM zemployee INTO CORRESPONDING FIELDS OF TABLE
    it_QZEMPLOYEE where /bic/zhrpostn in pos.
    *Sort it_zhrpostn by postion and datefrom
    SORT it_QZEMPLOYEE BY /bic/zhrpostn datefrom.
    *Looping it_zhrpostn.
    LOOP AT it_QZEMPLOYEE.
    MOVE-CORRESPONDING : it_QZEMPLOYEE TO it_qzemployee_temp.
    *Appending it_zhrpostn_temp to collect each postion
    APPEND it_qzemployee_temp.
    *At end of position
    AT END OF pos_flag.
    *Looping it_zhrpostn_temp table
    SORT it_qzemployee_temp BY datefrom DESCENDING.
    pos_flag = 'YES'.
    LOOP AT it_qzemployee_temp into wa_qzemployees.
    IF pos_flag = 'YES' OR wa_qzemployees-/bic/zhrpostn EQ '00000000' OR wa_qzemployees-/bic/zhrpostn EQ '99999999'.
    set the flag to yes
    write:       pos_flag.
    INSERT into /BIC/AZPA_DS0600 VALUES wa_final.
    pos_flag = 'NO'.
    ELSE.
    set the flag to NO
    write:       pos_flag.
    ENDIF.
    endloop.
    refresh: it_qzemployee_temp.
    ENDAT.
    endloop.
    But here the problem is the it is taking the most recent datefrom and setting the flag as yes. How to check whether someother employee is active in the given time period and set the flag as YES? Only 1 employee can be active in the date period given.
    Thanks and Regards,
    Rashmi

  • To find out the number users that logged in to SAP in previous months

    Hi !
    Is theer any report or transaction in SAP that will or can tell us as to how many users had logged into SAP syatem say in the month of May or June . They want to know the total number of users that had logged in to SAP in previous months to to track the user information and how many users are not using the SAP or how many ppl using it to keep a track of teh user certificates that may be re-sed or just for information purpose also. Right now I have found a trabsction AL08 but that just gives information of present login , I would like to get it for previous months if possible.
    Thanks

    But this does not give the details of the all the users that had logged in and as to how many users were logged in that month and at what times .Is theer any other transaction that gives the user information also.?
    Thanks

  • How to find out the deleted Configuration

    Hi,
    Can any body tell me If I created a Plant with one transport request and it is yet to be moved to to quality.
    Now If some body has deleted the Plant, how can I find out the person who has deleted the same.
    Regards,
    kumar

    Hi,
    Thanks for the reply.
    I could be able to check all the options except the one with different users, but i am unable to get the required information.
    Is there any way i can find out the specific user who did the deletion with any transaction from my log in.
    Thanks in advance.
    Regards,
    kumar

  • Query to find out the time used by an user for an application

    Hello All,
    I want to know the query to find out the whole time used by the user for an application. Please view the below data
    Employee:
    SNO EMP_ID EMP_NAME EMP_DATE LOGIN_TIME LOGOUT_TIME
    1 10 Visu 21-Nov-2010 06:30:00 07:30:00
    2 10 Visu 21-Nov-2010 06:40:00 07:20:00
    3 10 Visu 21-Nov-2010 06:50:00 07:50:00
    4 10 Visu 21-Nov-2010 07:30:00 08:30:00
    5 10 Visu 21-Nov-2010 09:30:00 10:30:00
    By checking the above data we can say that the total time Visu used the application is
    8.30 - 6.30 (From 1,2,3,4 records) = 2hrs
    10.30 - 9.30 (Based on 5th rec) = 1hr
    So the total time Visu used the application would be 3 hrs = 180 mins.
    Could you please help me in getting the result from that data using a query?

    odie_63 wrote:
    I think it may be solved with analytics too.
    with t1 as (
                select 1 sno,10 emp_id,'Visu' emp_name,'21-Nov-2010' emp_date,'06:30:00' login_time,'07:30:00' logout_time from dual union all
                select 2,10,'Visu','21-Nov-2010','06:40:00','07:20:00' from dual union all
                select 3,10,'Visu','21-Nov-2010','06:50:00','07:50:00' from dual union all
                select 4,10,'Visu','21-Nov-2010','07:30:00','08:30:00' from dual union all
                select 5,10,'Visu','21-Nov-2010','09:30:00','10:30:00' from dual
         t2 as (
                select  emp_id,
                        emp_name,
                        emp_date,
                        to_date(emp_date || login_time,'DD-MON-YYYYHH24:MI:SS') login_time,
                        to_date(emp_date || logout_time,'DD-MON-YYYYHH24:MI:SS') logout_time
                  from  t1
         t3 as (
                select  t2.*,
                        case
                          when login_time < max(logout_time) over(
                                                                  partition by emp_id,emp_date
                                                                  order by login_time
                                                                  rows between unbounded preceding
                                                                           and 1 preceding
                            then 0
                          else 1
                        end start_of_group
                  from  t2
         t4 as (
                select  t3.*,
                        sum(start_of_group) over(partition by emp_id,emp_date order by login_time) grp
                  from  t3
         t5 as (
                select  emp_id,
                        emp_date,
                        min(login_time) login_time,
                        max(logout_time) logout_time
                  from  t4
                  group by emp_id,
                           emp_date,
                           grp
    select  emp_id,
            numtodsinterval(sum(logout_time - login_time),'day') time_spent
      from  t5
      group by emp_id
      order by emp_id
        EMP_ID TIME_SPENT
            10 +000000000 03:00:00.000000000
    SQL> SY.

  • How can I find out if a user has an active session

    How can I find out if a user has an active session or sessionObject in the application Server.
    When a user logs on to my web-application, I want him to be able to see a
    list of all the other users that are also loged on. To do this I need to get a
    list of all the session objects avaliable in the sever at that perticular moment?
    In J2EE 2.1 I found the class "javax.servlet.http.HttpSessionContext" with the method "getIds()"
    that returned all the session Id's. By using the method getSession(java.lang.String sessionId)
    from the same class, you could then retrieve the sessionObject.
    But these methods are depricated (and want to be able to use the
    latest version of J2EE).
    Is there any other way to do this?
    I'm using JBoss application server.

    Check out HttpSessionListener -> http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/http/HttpSessionListener.html
    Essentially what you have to do is implement this interface. You also have to register the listener in your web.xml, like this:
    <listener>
        <listener-class>
            package.name.YourListener
        </listener-class>
    </listener>sessionCreated() will get called each time the app server creates a session and sessionDestroyed() will get called each time the app server invalidates a session. You could have a Map that contains all the active sessions, and a method for printing a list of all of the active sessions.

Maybe you are looking for

  • C Drive Full on my Satellite U400 -15B

    Hi All I am not very clever when it comes to PC's so need a little help, I keep getting a message to warn me that my C drive is reaching capacity, even when I have not uploaded anything for a long while. I have explored the drive and each folder ther

  • How to use GROUP BY  in ODI

    how to use GROUP BY in ODI tool

  • I can't access itunes store on my pc

    Since downloading itunes 10.5 update I can not access itunes store on my pc and could before. The status bar stalls halfway. I uninstalled itunes and re-installed it and that didn't help. I use Google Chrome as mysearch engine instead of IE. I even t

  • F-53 and payment advice

    Hi all, does any one of you know how i can get a payment advice after i cleared my vendor invoices with transaction F-53. I need to do this as the client wants to issue checks manually. thanks Dave

  • Imovie 10.0.3 won't import from a camera that doesn't have a tape

    I am using iMovie 10.0.3 and am trying to import live video from my canon gl2 camcorder without having to use a tape.  iMovie will capture just fine but only as long as there is a tape in the camera and the camera is recording.  If I play pre-recorde