RSAU_SELECT_EVENTS

Hi all,
I need some help on how to go about the below requirement.
I need to run report RSAU_SELECT_EVENTS as a batch job by creating the variants and have to create a new report which convert the spools available after executing RSAU_SELECT_EVENTS into PDF format and transferring them to client server.
Could somebody explain the best approach for the above requirement.
Thanks in advance.
Moderator Message: Do not post duplicate threads :Log tracking using RSAU_SELECT_EVENTS in the future.
Edited by: kishan P on Sep 3, 2010 9:52 AM

Hello Annie,
It is simple. You need a create a dynamic variant for it.
If you want is step by step here it is:
Execute the report in SE38. In the selection screen you will have the date auto populated. Ignore it. Just press the save option. You will come to the screen:
ABAP:Save as variant.
Give the variant a name and a description.
Under the section FELD NAME you will find two entries for current date. Also there will be lots of check boxes infront of the fields. For both the entries of current data select the check boxes which are under the column marked "L" (Selection variable).
After this press the pushbutton selection variables.
In the next screen you will find two tabular entries for current date .Adjacent to them you will havethe choice to have the kind of selection you want. You will notice that color under column D(Dynamic date calculation) is yellow. Click on the yellow icon to select dynamic date selection. It will turn green. However the adjacent one under column T will turn yellow.
Repeat this for second entry for Current date as well.
Now we will come to part where you cando dynamic date selection.
For the first entry for current data you will notice a downward arrow under column T(yellow light).
Click on that arrow a pop up would come which would allow you to choose the date you want. Choose first day on the current month.
Repeat the second entry the same only difference being thatthe date you will choose is the last day of the current month.
Save the changes for selction variable screen as well Abap variant screen and test your variant.
I hope it works. Please award points accordingly.
Regards.
Ruchit.

Similar Messages

  • Logs vary in sm20 and RSAU_SELECT_EVENTS

    Hi,
    Logs which appear in sm20 do not appear in RSAU_SELECT_EVENTS. why is this happeneing?
    Regards
    Divya

    Hello Annie,
    It is simple. You need a create a dynamic variant for it.
    If you want is step by step here it is:
    Execute the report in SE38. In the selection screen you will have the date auto populated. Ignore it. Just press the save option. You will come to the screen:
    ABAP:Save as variant.
    Give the variant a name and a description.
    Under the section FELD NAME you will find two entries for current date. Also there will be lots of check boxes infront of the fields. For both the entries of current data select the check boxes which are under the column marked "L" (Selection variable).
    After this press the pushbutton selection variables.
    In the next screen you will find two tabular entries for current date .Adjacent to them you will havethe choice to have the kind of selection you want. You will notice that color under column D(Dynamic date calculation) is yellow. Click on the yellow icon to select dynamic date selection. It will turn green. However the adjacent one under column T will turn yellow.
    Repeat this for second entry for Current date as well.
    Now we will come to part where you cando dynamic date selection.
    For the first entry for current data you will notice a downward arrow under column T(yellow light).
    Click on that arrow a pop up would come which would allow you to choose the date you want. Choose first day on the current month.
    Repeat the second entry the same only difference being thatthe date you will choose is the last day of the current month.
    Save the changes for selction variable screen as well Abap variant screen and test your variant.
    I hope it works. Please award points accordingly.
    Regards.
    Ruchit.

  • Log tracking using RSAU_SELECT_EVENTS

    Hi all,
    I need some help on how to go about the below requirement.
    I need to run report RSAU_SELECT_EVENTS as a batch job by creating the variants and have to create a new report which convert the spools available after executing RSAU_SELECT_EVENTS into PDF format and transferring them to client server.
    Could somebody explain the best approach for the above requirement.
    Thanks in advance.

    Hi,
    Please check the sample code below..Here you need to convert data into OFT format from ASCI then do processing.
    Get list of past due PO and STO's
      submit rm06em00 with selection-table l_i_rspar
                      exporting list to memory and return.
    Get list output
      call function 'LIST_FROM_MEMORY'
        tables
          listobject = l_i_list
        exceptions
          not_found  = 1
          others     = 2.
      if sy-subrc = 0.
      FM called to convert the output to ASCII format
        call function 'LIST_TO_ASCI'
          tables
            listasci           = i_records
            listobject         = l_i_list
          exceptions
            empty_list         = 1
            list_index_invalid = 2
            others             = 3.
        if sy-subrc = 0.
        Do nothing
        endif.
      Freeing the memory
        call function 'LIST_FREE_MEMORY'
          tables
            listobject = l_i_list.
      endif.
    Thanks
    Subhankar

  • Scheduling audit logs - variant for RSAU_SELECT_EVENTS

    Hi,
    I need some help as to how I should go about creating a variant for scheduling the audit logs using RSAU_SELECT_EVENTS as a weekly job.
    I would like the job to run on a weekly basis (run on Sun) and to generate SM20 audit logs for that past week.  For example, the job is to be executed (every) Sunday night (say, 22 Nov) and it will extract all logs between the previous Sun (15 Nov) thru to the current Sun (22 Nov).
    My question is : how should the variant for the program "RSAU_SELECT_EVENTS" be created?
    In this program, there's a "Time Restriction" section of "From Date" and "To Date".  If I were to input 15 Nov (From Date) to 22 Nov (To Date) and schedule it weekly, then every week it is always going to extract the logs between 15 Nov and 22 Nov regardless of which Sun it was run - which is not correct.
    How should the variant be created such that it will always extract the current past week?
    I doubt this program can be used to achieve my requirements.  Is there an alternative?
    Thanks !

    > I doubt this program can be used to achieve my requirements.
    I raise your bet by 1 beer that it can...
    => When saving the variant, scroll along to the end of the selection options to a field called Selection Variables. Place your cursor in the date fields and press F4.
    Do the same for the Name of the Variable field (tip:  "-7")
    Cheers,
    Julius

  • Rsau_select_event runing sm20 as background job

    Hi Guru,
    i want to have this rsau_select_events program in 4.7 We have now support pack level of 38.Can this program be downloaded just with snote and support pack 38.Can anybody give the step by step procedure for having this rsau_select_event( detail from support packs to snote in 4.7)
    Thanks
    Khaiser

    Good idea... I shouldu2019ve done this in " start-of-selection " .  Some time, you never think end result until it hits you
    Thanks,
    Khan

  • Run SM20 in background with variant

    I need to supply SM20 report of a particular user and trying to schedule it as a batch job. I am unable to do so in 46C environment.
    Has anyone able to achieve something like this?

    <b>RSAU_READ_AUDITLOG_EXTERNAL</b>
    It looks like it runs on the application server which the system user is logged into. This is default local:
    PARAMETERS:
             RFCDEST   LIKE  RFCDES-RFCDEST        DEFAULT 'NONE',
    ... until you go outside of the system by changing the destination or explicitly to a different application server.
    <b>RSAU_SELECT_EVENTS</b>
    Here you can choose which application server you want to read from:
    SELECT-OPTIONS server     FOR rsauentr-slginst.  "Instanzen"
        SELECT-OPTIONS client     FOR rsauentr-slgmand.  "Mandanten"
        SELECT-OPTIONS user       FOR rsauentr-slguser.  "Benutzer"
        SELECT-OPTIONS terminal   FOR rsauentr2-slgltrm2."Terminals"
        SELECT-OPTIONS tcode      FOR rsauentr-slgtc.    "Transaktionen"
        SELECT-OPTIONS report     FOR rsauentr-slgrepna. "Programme
    ... so you can choose 1, or more (select single values or ranges), or all application servers from within the same SID.
      call function 'TH_SERVER_LIST'
        tables
          list   = sys_tabl
        exceptions
          others = 1.
      if sy-subrc = 1.
        raise not_available.
      endif.

  • SM20/SM20N audit report analysis - in background

    Hi,
    I would like to create an audit log / audit report analysis in background.
    I've found an article bu interested to understand if it is the only way to do that ?
    article: http://sap.ittoolbox.com/groups/technical-functional/sap-security/security-audit-reports-using-sm20-1019745?cv=expanded
    Any idea ?
    Dimitry Haritonov

    i have not tried it but yes thats what mentioned in the Note 838847
    Instructions for Releases 4.6C and 6.20
    Creating the RSAU_SELECT_EVENTS program:
    Title: "Selection of audit events from the audit files (background variant)"
    Type: Executable program
    Application: Basis
    Package: SECU
    Logical database:
    See the correction instructions for the source code.
    if your question is answered , mark it answered and award the points ..
    Regards
    dEE

  • Track User

    Hi there,  how to find out what tcodes have been used by user in the past 6 months?

    If activated, You can also try viewing the security audit logs via SM20 (or SM20N). 
    Enter your desired indicators (user id, from/to dates, etc...) and be sure to select "all audit logs" to analyze all servers.
    The main disadvantages of activating and analyzing audit logs are the performance and disk space usage.
    Depending on what release your company is on, you can run this in background with variants (report RSAU_SELECT_EVENTS).
    If you are looking for a report to be run on a regular basis with specific indicators,
    you could also write a report that extracts data to a spreadsheet, etc and run it during off-peak times.
    For more info on Security Audit logs, see...
    http://help.sap.com/saphelp_nw04s/helpdata/en/2c/c59d37d373243de10000009b38f8cf/frameset.htm

  • Terminal name in extract of SAP Audit Log

    Has anyone been successful in including the terminal name when extracting the SAP Audit Log to an external tool?  We've used sample program RSAU_READ_AUDITLOG_EXTERNAL; which works well be does not include the terminal name. 
    Any insight would be appreciated.
    Regards,
    Eric

    Hi Eric,
    RSAU_SELECT_EVENTS should get you the required information. Another alternative is to have a custom program developed by using/activate the user exit in FM EXIT_SAPLSUSF_001 - module TH_USER_INFO and TERMINAL_ID_GET. This way the information can be populated in a custom table and can be used for reporting purpose.
    If you are only looking at the active users, you can use USR41 table, which gives you this information.
    Hope this helps!!
    W.Rgds,
    Raghu

Maybe you are looking for

  • Firefox4 w/Vista - Page freezes when I attempt to open some PDFs. What's up?

    Firefox 4.0.1 Toshiba Satellite A215 AMD TK-55 Dual-Core Processor, 1.8 Ghz 4 GB RAM 32-Bit Windows Vista Home Premium 2007, SP2 This problem has cropped up since installing your Version 4 & Adobe Reader 10. I think I have the latest versions of both

  • PI 7.1 J2SE adapter engine on IBM Mainframe

    HI, We need to securely exchange files between PI 7.1 SPS07 and Mainframe system. Options we explored are, 1. SFTP using seeburger SFTP adapter. 2. Create files locally in PI server and run unix script to send files to mainframe. Poll regularly to ge

  • Does anyone have URL replacement working for catalog generated from wiki pages library

    Hi everyone, I have created a catalog from a wiki library which surfaces news/event/announcement articles to a publishing site (with make URLs relative to this site selected).  This works well after modifying the item page and specifying the content

  • International Buyers trying to pay with PayPal

    I've had a number of customers contact me that they are having problems purchasing. The common factors seem to be that they are International and trying to use PayPal to pay. One person I was able to get working by having her sign in to Adobe using t

  • Its urgent.!!!!!!BAPI for Production Order

    HIi All , i need to fecth Storage Bin/Material/Quantyti/Descrition . All values can be obtained from the production order record using the BAPI. which BAPI is there for this req?