Tracking a logon id

The requirement is to track an id BATCHBW in BW system. Whenever a user logins with that id , an email has to be sent to two particular persons. I know that there is an user exit 'SUSR001' . It has been implemented in R/3. I have to do the same thing in BW . I appreciate if anyone can help me how to proceed with this.

i have written the code in the include program . I am not understanding how the user exit will be triggered . The code is something like this.
Tables:  zhmssecurity.
data: begin of email_data.
        include structure sodocchgi1.
data: end of email_data.
data: begin of email_send occurs 10.
        include structure somlreci1.
data: end of email_send.
data: begin of data_tab occurs 2,
      line(255),
end of data_tab.
data: begin of object_para occurs 2.
        include structure soparai1.
data: end of object_para.
data: begin of object_parb occurs 2.
        include structure soparbi1.
data: end of object_parb.
DATA: OPCODE TYPE X VALUE 2.
DATA: BEGIN OF USR_TABL OCCURS 10.
        INCLUDE STRUCTURE UINFO.
DATA: END OF USR_TABL.
select single * from zhmssecurity
where data_key = 'W'
   and data_id  = 'WATCHFOR'
   and data     = sy-uname.
if sy-subrc <> 0.
  exit.
endif.
select * from zhmssecurity
where data_key = 'W'
   and data_id  = 'EMAIL'.
  email_send-receiver = zhmssecurity-data.
  email_send-rec_type = 'U'.
  email_send-express  = 'X'.
  append email_send.
endselect.
email_data-obj_name = 'MESSAGE'.
concatenate sy-uname 'Logged on to' sy-sysid
           'on' sy-datum 'at' sy-uzeit
into email_data-obj_descr separated by space.
email_data-obj_langu = 'E'.
email_data-sensitivty = 'P'.
email_data-obj_prio =  '1'.
email_data-no_change = 'X'.
email_data-priority = '1'.
clear data_tab.    refresh data_tab.
clear object_para. refresh object_para.
concatenate
           sy-uname 'Logged on to' sy-sysid
           'client' sy-mandt
  into data_tab-line
  separated by space.  append data_tab.
concatenate
           'on' sy-datum 'at' sy-uzeit
           'from terminal' usr_tabl-term
  into data_tab-line
  separated by space.  append data_tab.
Move space to data_tab-line.  append data_tab.
move ' Use transaction SM20 to monitor this users activity'
  to data_tab-line.  append data_tab.
CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
  EXPORTING
    document_data                    = email_data
    DOCUMENT_TYPE                    = 'RAW'
    PUT_IN_OUTBOX                    = ' '
  tables
    OBJECT_CONTENT                   = data_tab
     receivers                        = email_send.
IF sy-subrc EQ 0.
    SUBMIT rsconn01 WITH mode = 'INT' AND RETURN.
I have given the values in the zhmssecurity table . I have given my id for watch for and email as my email . I tested the same thing by copying in some other program. Its working fine but how this user exit gets triggered

Similar Messages

  • Tracking failed logons in 9i(R2)/10G

    What is the best way to track failed logons in 9i? I have been reading through the doc's on tahiti for 9i, but so far have only seen fine grained auditing of tables etc. when all I want to do is record the failed logins, which machine, os user etc.
    I am assuming that once I find the proper method in 9i, I can apply the same process in 10G, even though 10G may have more of this capability already built in.
    thanks.

    Thanks - I am assuming I have to enable auditing somehow in the init/spfile and bounce the DB to have this take effect?
    eg. audit_trail=db (or os?)
    Then have the statement you suggested somehow auto-run at database startup?
    I have initiated logon and logoff triggers and have a monthly report from the data they create to keep the SOX bean-counters happy, but now they want a report to show all failed logons as well, so I am trying to find the best way to do this that will be easy to pull a report from.
    Edited by: user571263 on Nov 25, 2008 2:08 PM

  • Tracking User logons

    Hi,
    I have a requirement, wherein, I need to report the number of logons per user, per period etc.
    Is there any standard program/FM available?  I know the program RSUSR200 which reports several user details including INCORRECT logons.  But, I need correct logons & details.
    Thanks in advance.
    Regards,
    Srinath.

    Hi Sudha,
    Thank you very much for the response.  Actually the requirement, in brief, is..I have a selection screen where I have FROM and TO dates.  Once dates are entered, I need to report all the logons per USER (for all the users) within that period.
    Hope I'm clear with what I want, this time.
    Thanks once again.
    Srinath.

  • Auto-populate Computer Description Fields in AD Console

    Hi guys,
    I need some help with populating computer descriptions in AD.  I have searched this on google numerous times and everytime I find a script there are loads of comments with "changes" saying it doesn't work.
    What I am looking for in the description field is the last logged in user and the date and time of when they logged in.  Now as we don't have multiple tenant machines this only needs updated every few days.
    I want a solution really to find machines that aren't used, as the IT asset register is severely out dated! Plus this is always a handy feature to have for future reference.
    If anyone knows of a script online somewhere or has one they use successfully I would greatly appreciate it and also some advice on how to deploy it (I know it gets added in to GPO but not 100% sure how).
    Thanks

    To track user logon / logoff, you can simply refer to what I shared here: http://social.technet.microsoft.com/wiki/contents/articles/20422.record-logon-logoff-activities-on-domain-servers-and-workstations-using-group-policy.aspx
    If you want to populate the collected information and put it in the Description field, you can simply use a Powershell script that reads the CSV files and set the value using
    Set-ADComputer cmdlet: https://technet.microsoft.com/en-us/library/ee617263.aspx
    To identify obsolete computers, you can refer to lastlogontimestamp
    attribute value: http://blog.mattvogt.net/2011/10/06/powershell-last-logon-timestamp-for-single-ho/
    This posting is provided AS IS with no warranties or guarantees , and confers no rights.
    Ahmed MALEK
    My Website Link
    My Linkedin Profile
    My MVP Profile

  • On which machine an AD user is logged?

    So I have single forest, single domain infrastructure. 8 DCs if it would help. I need to find out on which machine(joined in the domain) given AD user is logged. For example user tt4567 is logged on ws32t45. All DCs are running on Win 2012 R2. I'm wondering
    if there is a way to do it with AD or some other MS tools and which ones they would be?

    Hi,
    But because client logon your site DC process may failure (the network delay), so the client may logon any of your forest DC, You can use the following two options
    for the user logon event auditing, then create the script filter the user logon information.
    Option 1:
     1. Enable Auditing on the domain level by using Group Policy:
     Computer Configuration/Windows Settings/Security Settings/Local Policies/Audit Policy
    There are two types of auditing that address logging on, they are Audit Logon Events and Audit Account Logon Events.
    Audit "logon events" records logons on the PC(s) targeted by the policy and the results appear in the Security Log on that PC(s).
     Audit "Account Logon" Events tracks logons to the domain, and the results appear in the Security Log on domain controllers only
     2. Create a logon script on the required domain/OU/user account with the following content:
      echo %date%,%time%,%computername%,%username%,%sessionname%,%logonserver% >>
     \\SERVER\SHARENAME$\LOGON.LOG
     3. Create a logoff script on the required domain/OU/user account with the following content:
      echo %date%,%time%,%computername%,%username%,%sessionname%,%logonserver% >>
     \\SERVER\SHARENAME$\LOGOFF.LOG
     Note: Please be aware that unauthorized users can change this scripts, due the requirement that
      the SHARENAME$ will be writeable by users.
     Option 2:
     Use WMI/ADSI to query each domain controller for logon/logoff events.
    The related KB:
    How to track users logon/logoff
    http://support.microsoft.com/kb/556015
    More information:
    Finding a Domain Controller in the Closest Site
    Hope this helps.
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Is there an application to monitor users who log into Windows Server 2012 R2?

    I'm looking at Family Safety Feature in Windows 8 and like what they can do.  I have a request to monitor, track users who log into Windows Server 2012 R2 to see how many users login, how long each login is for each user so a monthly report can be generated.  
    1.  I just wonder if Windows Essential 2012 can be used for this purpose or not.  If it can, is Windows Essential 2012 a feature can be added or installed on Windows Server 2012 R2?
    2.  If Window Essential 2012 cannot be used for this purpose, is there any feature in Windows Server 2012 R2 that can be used for this purpose?
    3.  Is there any other suggestions?
    Thank you for your help.
    Thanks and Regards,
    Hien Phan

    Hi Hien,
    Anything updates?
    It seems that there is no feature can do that. I agree with Tim that you can check the event logs. In general, the event 4624 would be created when a user was logged on, and the event 4634 would be created when a user account was logged
    off.
    More information:
    Tracking User Logon Activity Using Logon Events
    Best regards,
    Susie
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • Trace User Activity in SPM

    HI,
    We are tracing user activity in SPM like user logon/logoff time,  which reports a user is accessing in the Portal etc. Please let us know what all details about user activity can be captured in SPM and what is the procedure to do so?
    Regards
    Neel

    Hi Neel
    SPM is an analytical app built on top of the NW platform. It doesnot have any platform (like tracking user logons) itself. How do you track the usage for non SPM products. Have you tried using those same mechanisms?
    Regards
    Rajesh

  • User login attempts

    I know this a pretty simple question but...
    Is there a way to view the number of logon attempts that have been made for a specific profile in AD?

    Hi, 
    Enable security auditing and track user logon/logoff times.
    Refer this article to know more http://support.microsoft.com/kb/556015/en-us
    Regards, Ravikumar P

  • Log-in Details

    Hi Guys,
    Where I can log on details on server. I'm running Windows Server 2008 Standard R2 SP1. I am a domain administrator, how can I check whether how many users logged into server at what time, so that I can track who logs in server how many times.
    Thanks in advance.

    Hi Vinig123,
    You can refer the following KB:
    How to track users logon/logoff
    http://support.microsoft.com/kb/556015
    I’m glad to be of help to you!
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • How to put portal logon page CE 7.3 ui.war file in NWDI Track

    Hi,
    We are using sap portal CE 7.3 in our project. I have customized portal logon page. for this I have downloaded ui.war file from portal server in my local machine that is on my desktop and this ui.war file i have imported in my NWDS and done the required modification.
    Now I have to put this development that is modified ui.war in my NWDI track which is currently lying on my local machine Desktop, please let me know how to transport this ui.war file and ear project associated with this war file into NWDI track.
    because from NWDI track only this customized logon portal page has to go to QA and Prd system.This is strict client requirement.
    Please help me.
    Thanks

    Hi Arush,
    Instead of importing the war file into NWDI track,you can create new web module project  in NWDI using New-->Development Infrastructure-->DC-->Java EE-->WebModule and copy paste the WebContent folder Jsp's and xml files which are inside the ui.war in your local machine. Then for this web module you can create ear file for deploying .I have done in this way it worked.
    Regrads,
    Srinivasan V

  • Tracking logon user's IP address

    Hi gurus,
    We are implementing an external facing portal in EP 7.0. As part of audit trail, we need to track the IP address of the user logging into the portal. While I have been going through the default activity report provided + configuration of new reports, nowhere do i find the mention of tracking the client IP address. I went thru Prakash's blog on Writing your own portal statistics tool, and was wondering if we do have to take up such a customization in logo.par?
    I am seeking suggestions on how to track and record the client IP address once a user logons into the portal.
    regards,
    S Rudra

    Hi,
    Thanks for the single reply to the question .. not to mention awarded good points too ... configuring the way mentioned gives the details into the standard log file.... one has top again filter out the details
    I solved the problem myself ... HOW .... here it goes
    But I was looking to get custom report, to get the login userid, IPaddress and time of access.... built a custom class to write the details into a text file and stored it into a server location ... then I modified the masthead par to implement the same ... not the logon.par ... currently working to get the output in download excel file ...
    Cheers!!!!

  • Failed logon attempts tracking without AUDIT_TRAIL

    Hello All,
    I would like to know if any other way than AUDIT_TRAIL=db and AUDIT CONNECT WHENEVER NOT SUCCESSFUL;
    any thing like enabling listener tracing or so ? i need to track source from where some one is trying to logon in system.
    Thanks and Regards,
    Ajay

    ABHIVSANKAR wrote:
    Hello John,
    It is my interest to know is it possible that enabling listener trace can help?
    I am not sure about the implication setting AUDIT_TRAIL=DB. Will it genrate very huge data or trace files ?
    Regards,
    Ajay
    Audting won't generate anywhere near the volume of data that a listener trace will.  If in doubt, what will it cost you to turn on listener trace for a few hours and see what you get?  How do you think people who are 'experts' got to be considered as such? 

  • Is there a R3 table to track who are currently logon into SAP portal?

    Hey, Gurus,
    Is there a R3 table to track who are currently logon into SAP portal?
    Thanks inadvance!
    Fisher

    What I am trying to accomplish is that we have a customized SAP web dynpro program with Java that access R3 data.
    I would like to create a lock in R3 to prevent the record in R3 being accessed by more than one person.
    The problem was that in our customized portal programs will not always exit gracefully and the lock will not be cleared correctly all the time.
    If there is a way that I can access the user logon data in portal (java stack), I will try to figure out how to unlock the record after the person exit.
    Thanks!
    Fisher

  • How to track which host logon to SAP server

    Dear Gurus,
    Is it possible to find a log in SAP like audit trail of when a PC host logged on to SAP?
    Hope to get some help here.
    Regards,
    Alfonso

    Hi,
    You can find the complete information from the following link
    http://help.sap.com/saphelp_nw2004s/helpdata/en/2c/c59d37d373243de10000009b38f8cf/frameset.htm
    regards
    Anand.M

  • Track business objects failed logon attempt ip address

    Hi
    Someone tried to use my enterprise user name and login into BO prod cmc since I belong to administrators group.
    My account was disabled as a result of the above after 3 unsuccessful attempts.
    I'd like to find out the IP address of PC from which this was tried. I was looking at audit reports. One report does provide "IP address of comps accessing my cluster" but this will not help in my scenario.
    Can someone pls help?
    Thanks

    Hi Ravi,
    Files, DLLs, executables, etc corruption is the most probable suspection in this issue scenario.
    Best would be to uninstall BO again, removing registry entries and then re-install again with the default DB as suggested by Arvind and then later it could be point to SQL Server.
    Please share your further views/thoughts.
    Regards,
    Arun

Maybe you are looking for

  • Clicking on my user on login window occasionally causes display errors. Graphics chip dying?

    Hi. Occasionally (but happening more and more often), when I boot my computer and it goes to the login window, when I click on my username, suddenly the screen corrupts a bit around the username and while I can move my mouse, nothing is clickable any

  • Regarding FMs

    Hi, I have a report calling 2 function modules and these 2 function modules are in one function group and these 2 FM are using come global variables but I am calling 1st FM and after its output variables, I am calling 2nd FM with those output variabl

  • How to batch rename iPhoto photo-files?

    Hi there, I do have some 15.000 photos in my library and many of them do have the same names (digital camera or digital disc transfer). So when I just want to copy some photos to another folder or whatever, i run into some problems because many photo

  • Designer mode error.. VS2013

    Hi, Something has changed in my PC. I can drag and drop NI controls into forms but those are not visible anymore when the form is reopened. Please see the following picture: I can compile the software and everything works OK in the compiled program..

  • Time Machine shows large "other" category, small "backup"

    Checking under "About this Mac"/"Storage" I saw that the vast majority of the space on my external drive backup is listed as "other" while "backup" is minuscule.  Should I be concerned that the data I thought was being backed up really isn't? My Macb