XI R2 Auditing data retension period

Hi,
Using XI R2 SP2 FP5 with an SQLServer database and want to limit the amount of data held, ideally by date i.e. only 6 months of data.
I would expect a setting somewhere to say keep x days of data but can't find one and can't find any reference to it in documentation or on these forums.
Any help much appreciated.
John

Hello,
There is no way to restrict/purge audit data out of the box. You could however purge data in your db as mentioned in SAP NOTE  1198638 - How to purge the BO AUDIT tables leaving only the last 6 months data. I.e
To purge the BO AUDIT tables, leaving only the last 6 months data, delete AUDIT_DETAIL with a join to AUDIT_EVENT and select the date for less then 6 months. Then delete the same period in AUDIT_EVENT.
Note that this is apparently not supported. SAP  NOTE 1406372 - Is it possible to purge Audit database entries? 
Best,
Srinivas

Similar Messages

  • Analysing Task Audit, Data Audit and Process Flow History

    Hi,
    Internal Audit dept has requested a bunch of information, that we need to compile from Task Audit, Data Audit and Process Flow History logs. We do have all the info available, however not in a format that allows proper "reporting" of log information. What is the best way to handle HFM logs so that we can quickly filter and export required audit information?
    We do have housekeeping in place, so the logs are partial "live" db tables, and partial purged tables that were exported to Excel to archive the historical log info.
    Many Thanks.

    I thought I posted this Friday, but I just noticed I never hit the 'Post Message Button', ha ha.
    This info below will help you translate some of the information in the tables, etc. You could report on it from the Audit tables directly or move them to another appropriate data table for analysis later. The concensus, though I disagree, is that you will suffer performance issues if your audit tables get too big, so you want to move them periodically. You can do this using a scheduled Task, manual process, etc.
    I personally just dump it to another table and report on it from there. As mentioned above, you'll need to translate some of the information as it is not 'human readable' in the database.
    For instance, if I wanted to pull Metadata Load, Rules Load, Member List load, you could run a query like this. (NOTE: strAppName should be equal to the name of your application .... )
    The main tricks to know at least for task audit table are figuring out how to convert times and determing which activity code corresponds to the user friendly name.
    -- Declare working variables --
    declare @dtStartDate as nvarchar(20)
    declare @dtEndDate as nvarchar(20)
    declare @strAppName as nvarchar(20)
    declare @strSQL as nvarchar(4000)
    -- Initialize working variables --
    set @dtStartDate = '1/1/2012'
    set @dtEndDate = '8/31/2012'
    set @strAppName = 'YourAppNameHere'
    --Get Rules Load, Metadata, Member List
    set @strSQL = '
    select sUserName as "User", ''Rules Load'' as Activity, cast(StartTime-2 as smalldatetime) as "Time Start",
          cast(EndTime-2 as smalldatetime) as ''Time End'', ServerName, strDescription, strModuleName
       from ' + @strAppName + '_task_audit ta, hsv_activity_users au
       where au.lUserID = ta.ActivityUserID and activitycode in (1)
            and cast(StartTime-2 as smalldatetime) between ''' + @dtStartDate + ''' and ''' + @dtEndDate + '''
    union all
    select sUserName as "User", ''Metadata Load'' as Activity, cast(StartTime-2 as smalldatetime) as "Time Start",
          cast(EndTime-2 as smalldatetime) as ''Time End'', ServerName, strDescription, strModuleName
       from ' + @strAppName + '_task_audit ta, hsv_activity_users au
       where au.lUserID = ta.ActivityUserID and activitycode in (21)
            and cast(StartTime-2 as smalldatetime) between ''' + @dtStartDate + ''' and ''' + @dtEndDate + '''
    union all
    select sUserName as "User", ''Memberlist Load'' as Activity, cast(StartTime-2 as smalldatetime) as "Time Start",
          cast(EndTime-2 as smalldatetime) as ''Time End'', ServerName, strDescription, strModuleName
       from ' + @strAppName + '_task_audit ta, hsv_activity_users au
       where au.lUserID = ta.ActivityUserID and activitycode in (23)
            and cast(StartTime-2 as smalldatetime) between ''' + @dtStartDate + ''' and ''' + @dtEndDate + ''''
    exec sp_executesql @strSQLIn regards to activity codes, here's a quick breakdown on those ....
    ActivityID     ActivityName
    0     Idle
    1     Rules Load
    2     Rules Scan
    3     Rules Extract
    4     Consolidation
    5     Chart Logic
    6     Translation
    7     Custom Logic
    8     Allocate
    9     Data Load
    10     Data Extract
    11     Data Extract via HAL
    12     Data Entry
    13     Data Retrieval
    14     Data Clear
    15     Data Copy
    16     Journal Entry
    17     Journal Retrieval
    18     Journal Posting
    19     Journal Unposting
    20     Journal Template Entry
    21     Metadata Load
    22     Metadata Extract
    23     Member List Load
    24     Member List Scan
    25     Member List Extract
    26     Security Load
    27     Security Scan
    28     Security Extract
    29     Logon
    30     Logon Failure
    31     Logoff
    32     External
    33     Metadata Scan
    34     Data Scan
    35     Extended Analytics Export
    36     Extended Analytics Schema Delete
    37     Transactions Load
    38     Transactions Extract
    39     Document Attachments
    40     Document Detachments
    41     Create Transactions
    42     Edit Transactions
    43     Delete Transactions
    44     Post Transactions
    45     Unpost Transactions
    46     Delete Invalid Records
    47     Data Audit Purged
    48     Task Audit Purged
    49     Post All Transactions
    50     Unpost All Transactions
    51     Delete All Transactions
    52     Unmatch All Transactions
    53     Auto Match by ID
    54     Auto Match by Account
    55     Intercompany Matching Report by ID
    56     Intercompany Matching Report by Acct
    57     Intercompany Transaction Report
    58     Manual Match
    59     Unmatch Selected
    60     Manage IC Periods
    61     Lock/Unlock IC Entities
    62     Manage IC Reason Codes
    63     Null

  • Options for auditing data changes

    Hi Friends,
    I thought I will get some inputs on my following implementation. The requirement is to audit some data changes with in the system.( Oracle 10.2 on RHEL 4.7 )
    The audit is required in a sense that, the before images of data and information of who changed the data is required. I have looked at options like Oracle Auditing,FGA and so. But this cannot give me audit for the data changes,when and who changed.
    The first thing that comes into my mind are using triggers . Another option is using log miner. I have successfully tested it out with both of these approaches. The environment is like
    1 ) For some critical tables for which audit is required triggers were written ( ours is an OLTP application )
    2 ) For some non critical tables, log miner which was called by a stored procedure which runs at certain periods is used.
    3 ) audit data is stored in a different schema , with same table names as in base schema.
    I would like to know your thoughts on this.
    Thank You,
    SSN

    The delay with log miner is acceptable with some less critical audit tables and as you said, tirggers can be implemented for some critical tables.
    One bottleneck with using logminer is that it depends on the availability of archived redo logs, the backup mechanism if any implemented should make sure that, no archive logs are removed from the locations specified for the audit program. The backup mechanism should ensure that all archived logs are processed by periodically running audit program which uses log miner.
    Wondering if there is any other recommended approach for this.
    Thanks
    SSN

  • BPC Audit data

    BPC for audit has been enabled and since lot of audit data is piling up.. it is slowing down the reporting..
    How to delete the BPC data that has piled up over a period..
    I want to completely delete the data..
    Appreciate your inputs..

    Hi,
    there are 2 standard process chains for archiving audit data:
    /CPMB/ARCHIVE_ACTIVITY
    /CPMB/ARCHIVE_DATA
    tables for audit:
    activity tables: UJU_AUDACTHDR, UJU_AUDACTDET, UJU_AUDACTHDR_A, UJU_AUDACTDET_A
    data audit: UJU_ AUDDATAHDR, /1 CPMB/ KIOMBAD, UJU_ AUDDATAHDR_A/, 1CPMB/ KIOMBAD_A
    regards
    D

  • Data selection period seems no use in logical DB PCH??

    Hi experts,I have a problem when using LDB PCH.
    There are object selection period fields PCHOBEG and PCHOEND.
    there are also data selection period fields PCHBEGDA and PCHENDDA .
    I set the data selection fields PCHBEGDA & PCHENDDA values at Start-of-selection event.
    But this seems to have no effect on the data selection.
    on GET OBJEC event,all of the infotype data will be got,but not corrosponding to the data selection period.
    Is this normal?or something wrong?Thanks.

    In PCH you have two periods. One for selecting objects and one for selecting data (infotypes).
    LDB PCH works like PNP or PNPCE

  • How to check bank acc state(beg&end balance) in a specific date or period

    Hi all
    My customer is using GL, AP and CM.
    I have set up different bank accounts in AP. After the payment is registered, the user does even the reconciliation with the bank account.
    I am having trouble to find a report or a place in the system where i can inquiry for the state of the bank account(beginning and ending balance) in a specific date or period.
    I have seen these kind of reports in more simpler programs, so it is strange that i can not find these kind of reports in oracle.
    An example:
    If i run one of these reports with beginning and ending date i want to see state of the bank account before beggining date, movements during these period and ending balance after these period.
    Can you please help me because my customer wants this and i have not been able to give an answer until now. He has some local software which has this kind of report and now it is trying to change to oracle financial, but I still could not find this kind of information he wants from oracle.
    Please help
    Thank you and best regards
    Ernest

    There are 2 concepts attached to a bank balance. The balance as per your books of accounts and another is the balance maintained with the bank. I believe i need not explain these 2 concepts. These 2 balances can be obtained from Oracle system provided some of prerequsities are met with.
    Balance as per your books - This is nothing but the GL balance available. In order to obtain balances for each bank accounts, it is advised that each bank account should have a separate account code combination. This is achieved generally by having a separate natural account for each bank. The code combination is attached to the cahs account for each bank. By maintaining separate account code combination, the balance in each code combination can be obtained from GL (provided transactions are accounted and posted in GL). These balances represent the balance for each bank according to your books of accounts. You can create an FSG for this purpose and provide the same to the customer, so that they can run the same whenevr they want.
    Balance as per bank - This balance is maintained by oracle in 2 ways - either the bank balance can be manually entered for each bank account for each date (quite cumbersome). Else, while loading the bank statement, the bank balances are also loaded. There are various types of bank balances stored - value dated balance, available balance, float balance etc. Depending on the balances provided by bank along with the bank statement, the bank balance can be recorded in oracle system. After the bank statement is uploaded and balances stored, standard cash management reports are available to query for the bank account balances. In order to view daily movement, the bank statement should be loaded on daily basis.
    Hope this helps.
    Vinit

  • Validate Date if it falls within 30, 120 and 365 days of the audit date I enter on any given day

    PDF Forms in Acrobat 9 Pro
    When auditing a file, I enter the date I am auditing it.
    Example: 02/18/2015
    I then enter dates of when information was last verified. Some of these dates need to fall within 30 days of the audit date I enter on any give day and others need to fall within 120 days and another within 365 days. If they don't fall within the specified number of days for that field, I would like it to give an error message in that filled.
    Examples:
    College Grad Date 01/15/2015
    Certification Date  12/23/2015
    License Date  02/13/2014 - This is over 365 days so I do not want the date, I want it to display "Need to re-verify"
    I do not have any inkling of an idea of how to write this. Your help would be most appreciated.
    Thank you.

    Solved the problem- I contacted apple on their support line found on this page... http://www.apple.com/uk/support/mac/ and they were really helpful and talked me through what to do on the phone, I now have all three productivity apps. Hope this helps

  • Audit database. config auditing data source (DB2)

    Hello expert,
    I want to enable audit database for Business Object and I has followed the admin guide but not work.
    I install Business Object enterprise XI 3.1 on AIX 5.3 .
    When I installed BO ,I choose 'Use an existing database'  and choose DB2. (The same database of SAP BW database)
    And when the installation require the information of CMS and Audit database, I fill the same db alias as SAP BW database.
    So now I has SAPBW , CMS and Audit  data in the same database.
    After installation I saw the CMS table in "DB2<aliasName>"  schema.
    But can not find the Audit table.
    Does the audit table will create after installation?
    Then I try to enable the audit database using cmsdbsetup.sh and I choose 'selectaudit' and fill in the information that it require.
    Then it finish with no error.
    "Select auditing data source was successful. Auditing Data Source setup finished."
    But I still can not find any audit table in the database.
    I run serverconfig.sh and I can't see the Enable Audit option when I choose 'modify a server'.
    Any idea?
    Thanks in advance.
    Chai

    Hello,
    Thanks for your reply.
    It is not a BO cluster.
    And a log detail when select audit data source is show as below
    Wed Nov 17 2010 10:17:02 GMT+0700 (THAIST) /bodev/bobje/setup/jscripts//ccmunix.js started at Wed Nov 17 2010 10:17:02 GMT+0700 (THAIST)
    Wed Nov 17 2010 10:17:02 GMT+0700 (THAIST) About to process commandline parameters...
    Wed Nov 17 2010 10:17:02 GMT+0700 (THAIST) Finished processing commandline parameters.
    Wed Nov 17 2010 10:17:02 GMT+0700 (THAIST) Warning: No password supplied, setting password to default.
    Wed Nov 17 2010 10:17:02 GMT+0700 (THAIST) Warning: No username supplied, setting username and password to default.
    Wed Nov 17 2010 10:17:02 GMT+0700 (THAIST) Warning: No authentication type supplied, setting authentication type to default.
    Wed Nov 17 2010 10:17:02 GMT+0700 (THAIST) Warning: No CMS name supplied, setting CMS name to machine name.
    Wed Nov 17 2010 10:17:02 GMT+0700 (THAIST) Select auditing data source was successful.
    Wed Nov 17 2010 10:25:22 GMT+0700 (THAIST) /bodev/bobje/setup/jscripts//ccmunix.js started at Wed Nov 17 2010 10:25:22 GMT+0700 (THAIST)
    Wed Nov 17 2010 10:25:22 GMT+0700 (THAIST) About to process commandline parameters...
    Wed Nov 17 2010 10:25:22 GMT+0700 (THAIST) Finished processing commandline parameters.
    Wed Nov 17 2010 10:25:22 GMT+0700 (THAIST) Warning: No password supplied, setting password to default.
    Wed Nov 17 2010 10:25:22 GMT+0700 (THAIST) Warning: No username supplied, setting username and password to default.
    Wed Nov 17 2010 10:25:22 GMT+0700 (THAIST) Warning: No authentication type supplied, setting authentication type to default.
    Wed Nov 17 2010 10:25:22 GMT+0700 (THAIST) Warning: No CMS name supplied, setting CMS name to machine name.
    Wed Nov 17 2010 10:25:22 GMT+0700 (THAIST) Select auditing data source was successful.
    And the CMS log file did not show any error.
    Additional detail:
    - My BW and BO are in the same server.
    - I already grant all the rights to the user who relate to audit database.
    - My BW and  BO are in the same database.
    - There is no audit table appear in the database.
    - No Fix pack installed.
    I wonder why BO audit connection did not see my database.
    (In case of DB2, I think the db2 alias name is the same name of the database name (as default).
    So if my database name is BWD then the database alias name should be BWD, am I right?)
    Any idea?
    Thanks in advance.
    Chai

  • Deliv. date outside period covered by factory calendar IN

    Hi Experts,
    I am trying to create Purchase Order with 2011 year delivery date system is showing bellow issue in production server.
    Deliv. date outside period covered by factory calendar IN
    Message no. ME078
    Please advice me how can i overwrite this problem immediately.
    Thanks in advance,
    Chandhu

    Dear Experts
    I tried the method which mentioned above, but when I tried to change the Valid Fr. Year 1996 to Year 2011, it probe me the message "Please enter validity area between years 1995 - 2010." and I wasn't allow to save.
    Pls advise how to solve the above problem.
    Thanks.

  • Date to Period

    Hi
    My requirement is date to period for that i wrritten the customer exit variable. Now my requirment is suppose user input date is belongs to 3rd period (11.06.2010) that  i need to show all the three period in my report.  pls correct my code
    WHEN 'ZVAR_FISCPERIOD_01'.
    DATA: LV_BDATJ    TYPE       BDATJ,      "Posting date YYYY
           LV_POPER    TYPE       POPER,      "Posting period
           LV_INDATE   TYPE       SYDATUM.    "Current Date
    CONSTANTS: C_V3 TYPE   PERIV  VALUE  'V3'.  "Fiscal Year Variant
    clear l_s_range.
    IF I_STEP = 2.
          READ TABLE I_T_VAR_RANGE INTO LOC_VAR_RANGE  WITH KEY VNAM = '0P_CSDAT'.
          IF SY-SUBRC = 0. 
    CALL FUNCTION 'DATE_TO_PERIOD_CONVERT'
        EXPORTING
          I_DATE               = LV_INDATE
         I_MONMIT             = 00
          I_PERIV              = C_V3
       IMPORTING
         E_BUPER              = LV_POPER
         E_GJAHR              = LV_BDATJ
       EXCEPTIONS
         INPUT_FALSE          = 1
         T009_NOTFOUND        = 2
         T009B_NOTFOUND       = 3
         OTHERS               = 4
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ELSE.
      CONCATENATE LV_BDATJ LV_POPER INTO L_S_RANGE-LOW .
      L_S_RANGE-SIGN = 'I'.
      L_S_RANGE-OPT  = 'EQ'.
      APPEND L_S_RANGE TO E_T_RANGE.
      ENDIF.
      ENDIF.
        ENDIF.
    Thanks
    Rama

    Hi,
    U need to write code and determine  all 3 periods and append it in the else part of the following IF block as  shown.
    IF SY-SUBRC 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ELSE.
    CONCATENATE LV_BDATJ LV_POPER INTO L_S_RANGE-LOW .
    L_S_RANGE-SIGN = 'I'.
    L_S_RANGE-OPT = 'EQ'.
    APPEND L_S_RANGE TO E_T_RANGE.
    < move value of the period 2 to  L_S_RANGE-LOW .>
    L_S_RANGE-SIGN = 'I'.
    L_S_RANGE-OPT = 'EQ'.
    APPEND L_S_RANGE TO E_T_RANGE.
    < move value of  the period 3 to  L_S_RANGE-LOW .>
    L_S_RANGE-SIGN = 'I'.
    L_S_RANGE-OPT = 'EQ'.
    APPEND L_S_RANGE TO E_T_RANGE.
    ENDIF.
    Regards,
    Rathy

  • Archiving data retention period (best practice)

    Hi,
    Can anybody provide the standard FI-CO data retention period I mean for how long data from the following table has to be retained: 
    BKPF, BSAD, BSAK, BSAS, BSIS
    Best business practice.
    Thanks in advance
    Joseph

    Hi,
    I would not recommend to change this setting. One major problem you get will be that the archiving function will delete data from database (which has been transferred to the archive). So far so good, that´s one of the archiving features
    But it sometimes happens that you have to open an already closed fiscal year again. And if you open this last closed fiscal year again, the realtime transactions could fail now if data (transactions, etc.) is missing which exists only in the archive at that point of time.
    By the way, you can have a look at SAP note 389920, in there the archiving functionality is documented for FI-AA application.
    Regards,
    Markus

  • What is the best way to audit data

    What is the best way to audit actual changes in the data, that is, to be able to see each insert, update, delete on a given row, when it happened, who did it, and what the row looked like before and after the change?
    Currently, we have implemented our own auditing infrastructure where we generate standard triggers and an audit table to store OLD (values at the beginning of the Before Row timing point) and NEW (values at the beginning of the After Row timing point) values for every change.
    I'm questioning this strategy because of the performance impact it has (significant, to say the least) and because it's something that a developer (confession, I'm the developer) came up with, rather than something a database administrator came up with. I've looked into Oracle Auditing, but this doesn't seem like we'd be able to go back and see what a row looked like at a given point in time. I've also looked at Flashbacks, but this seems like it would require a monumental amount of storage just to be able to go back a week, much less the years we currently keep this data.
    Thanks,
    Matt Knowles
    Edited by: mattknowles on Jan 10, 2011 8:40 AM

    mattknowles wrote:
    What is the best way to audit actual changes in the data, that is, to be able to see each insert, update, delete on a given row, when it happened, who did it, and what the row looked like before and after the change?
    Currently, we have implemented our own auditing infrastructure where we generate standard triggers and an audit table to store OLD (values at the beginning of the Before Row timing point) and NEW (values at the beginning of the After Row timing point) values for every change.You can either:
    1. Implement your own custom auditing (as you currently do)
    2. Flashback Data Archive (11g). Requires license.
    3. Version enable your tables with Workspace Manager.
    >
    I'm questioning this strategy because of the performance impact it has (significant, to say the least) and because it's something that a developer (confession, I'm the developer) came up with, rather than something a database administrator came up with. I've looked into Oracle Auditing, but this doesn't seem like we'd be able to go back and see what a row looked like at a given point in time. I've also looked at Flashbacks, but this seems like it would require a monumental amount of storage just to be able to go back a week, much less the years we currently keep this data.
    Unfortunately, auditing data always takes lots of space. You must also consider performance, as custom triggers and Workspace Manager will perform much slower than FDA if there is heavy DML on the table.

  • Error Msg_ME078 - DELIV. date outside period covered by factory calendar

    Dear experts:
    when i create PO with ME21N,
    if the delivery date is not within the year of 2010,
    there will appear an error msg "ME078 - DELIV. date outside period covered by factory calendar".
    i have checked the factory calendar with SCAL.
    i know how to modify the factory calendar to expand the time period,
    but now i still have a question,
    the system can't change the year period automatically?
    so we have to change the period after we confirm the public holiday calendar?
    thanks ~
    B/Rs
    Jamie

    hello~
    if the system can't update the calendar automatically..
    why the consultant didn't set the valid period to an  exaggeration year at that time?
    did they have any concern?
    thanks a lot~
    B/Rs,
    Jamie

  • Deliv. date outside period covered by factory calendar TR//PO error

    Dear Sap Experts
    I am creating the P.O For Delivery Date 31.03.2010
    System has giving following error,
    Deliv. date outside period covered by factory calendar TR
    How can I overcome this error,
    Please Give me the solutions
    Thanks

    Thank for ur reply,
    Please give me the procedure with that T code
    I didn't got any year with that T code
    Thanks

  • Deliv. date outside period covered by factory calendar TR

    Dear Sap Experts
    I am creating Po with delivery date 31/03/2010
    System is saying lollowing problem,    Deliv. date outside period covered by factory calendar TR
    Please Give me the solution how to overcome this problem
    Thanks

    hello
    Check you SCAL factory calander, whether the day is defined as working day or not??
    If not defined, then you can only use the next working day.

Maybe you are looking for

  • Multiple server installation

    dears, i have installed the ocs r2 infrastractr on linux server and i want to installe the storage tier on windows server. the installation on infrastructer went fine i am able to log 1810, 7777, 7779 ports and to oiddas. when i started the installat

  • IPad Screen Issue..."Burnt In Bar"

    Well, after owning & using my iPad since November, and LOVING IT, I have noticed - all of the sudden - a one-inch-wide bluish 'bar' that is VERY subtle on the left side of the screen, which runs the entire long length of the unit. VERY disappointing,

  • When MacBook crashes it takes my settings with it.

    I've had an intermittent problem that is eluding me.  This is particularly frustrating because I thought switching from Winders to Mac would provide a more stable experience.  I'm not impressed up to this point. At random intervals (seriously, I have

  • Switcher ?Can you change the size of the screen resolution on the Macbook?

    I'm really interested in buying a Macbook. This will be my first Mac. I love the way they look and feel. I'm concerned with the size of everything on the Macbook. The overall size of the fonts in applications such as word, or safari was too small for

  • Can I access a sdxc card just like an external hd?

    I just got a new macbook pro (woot!!) and it has a sdxc card slot.  I was wondering if I can access it just like an external hard drive?  I do a lot of music production work and have a lot of sample libraries, it would be great if I could just use a