Use of Audit Trail in interface
Hi All,
I want to use audit trail in the existing ABAP -Hr interface , how can I do so .
Thanks In Advance
Create the interface with DW_PROJECT_BUILDING table and give this table a name PB.
Now put one filter on the table with the conditions that you have just mentioned in the query above, with the exist statement.
I assume data from this table is targeted into one more aggregated table: here is the definition for the table:
CREATE TABLE PROJECT_BUILDING_AGGR
(PROJ_BUILD_KEY VARCHAR2(20),
PROJECT_KEY varchar2(20));
perform mapping like :
PROJECT_KEY=PB.PROJECT_KEY
PROJ_BUILD_KEY=count(distinct PB.DW_PROJECT_BUILDING_KEY)
Select IKM as IKM SQL control append.
FLOW control as false.
run the interface, it is giving something like this for me, I hope this is according to your requirement:
insert into
ORACLE_SOURCE.PROJECT_BUILDING_AGGR
PROJ_BUILD_KEY,
PROJECT_KEY
select
PROJ_BUILD_KEY,
PROJECT_KEY
FROM (
select
count(distinct PB.DW_PROJECT_BUILDING_KEY) PROJ_BUILD_KEY,
PB.PROJECT_KEY PROJECT_KEY
from
ORACLE_SOURCE.DW_PROJECT_BUILDING PB
where
(1=1)
And (EXISTS
(SELECT 1
FROM DW_PROJECT_BUILDING PB1
WHERE PB1.PROJECT_KEY = PB.PROJECT_KEY
AND PB1.RECORD_STATUS_ID = 1)
AND PB.RECORD_STATUS_ID = 1
AND TRUNC (PB.LOAD_DT) >= '03-OCT-2013')
Group By PB.PROJECT_KEY
) ODI_GET_FROM
Similar Messages
-
Can CDC (Change Data Capture) Can be used for Audit / Trail Purposes
Hi,
My question is bit subjective in nature. I playing around with CDC to implement a Database Auditing solution and it's seems to be working fine. However my question is for experts and for those who have already used CDC for this purpose. Is it feasible to
use it for Data Auditing? Has anybody successfully used it? Any important considerations or configurations you have worked out e.g. CDC cleanup time etc
I will highly appreciate any feed back.
Thanks,
Ali
SaadatRefer this link...I hope this link will answer all your questions
http://blogs.technet.com/b/josebda/archive/2009/03/24/sql-server-2008-change-tracking-ct-and-change-data-capture-cdc.aspx
-Prashanth -
How to use CHANGEDOCU functions for audit trail?
Hi,
I have a report screen that requires audit trails on the changes made to the data dic fields on the screen.
Which CHANGEDOCU functions should I use for audit trail? And where should I implement the functions? In the 'save' subrountine that I create?
Any samples? Thanks.Hi Kian,
You should wtite the change docu functions in the "SAVE" subroutine. The following changedocu functions should be used. I am attaching an example if it below.
CALL FUNCTION 'CHANGEDOCUMENT_OPEN'
EXPORTING
OBJECTCLASS = 'ZSCHEMES'
OBJECTID = OBJECTID
PLANNED_CHANGE_NUMBER = PLANNED_CHANGE_NUMBER
PLANNED_OR_REAL_CHANGES = PLANNED_OR_REAL_CHANGES
EXCEPTIONS
SEQUENCE_INVALID = 1
OTHERS = 2.
CASE SY-SUBRC.
WHEN 0. "OK.
WHEN 1. MESSAGE A600 WITH 'SEQUENCE INVALID'.
WHEN 2. MESSAGE A600 WITH 'OPEN ERROR'.
ENDCASE.
IF UPD_ZIRD_P_SCHEMES NE SPACE.
CALL FUNCTION 'CHANGEDOCUMENT_SINGLE_CASE'
EXPORTING
TABLENAME = 'ZIRD_P_SCHEMES'
WORKAREA_OLD = O_ZIRD_P_SCHEMES
WORKAREA_NEW = N_ZIRD_P_SCHEMES
CHANGE_INDICATOR = UPD_ZIRD_P_SCHEMES
DOCU_DELETE = 'X'
EXCEPTIONS
NAMETAB_ERROR = 1
OPEN_MISSING = 2
POSITION_INSERT_FAILED = 3
OTHERS = 4.
CASE SY-SUBRC.
WHEN 0. "OK.
WHEN 1. MESSAGE A600 WITH 'NAMETAB-ERROR'.
WHEN 2. MESSAGE A600 WITH 'OPEN MISSING'.
WHEN 3. MESSAGE A600 WITH 'INSERT ERROR'.
WHEN 4. MESSAGE A600 WITH 'SINGLE ERROR'.
ENDCASE.
ENDIF.
CALL FUNCTION 'CHANGEDOCUMENT_CLOSE'
EXPORTING
OBJECTCLASS = 'ZSCHEMES'
OBJECTID = OBJECTID
DATE_OF_CHANGE = UDATE
TIME_OF_CHANGE = UTIME
TCODE = TCODE
USERNAME = USERNAME
OBJECT_CHANGE_INDICATOR = OBJECT_CHANGE_INDICATOR
NO_CHANGE_POINTERS = NO_CHANGE_POINTERS
EXCEPTIONS
HEADER_INSERT_FAILED = 1
OBJECT_INVALID = 2
OPEN_MISSING = 3
NO_POSITION_INSERTED = 4
OTHERS = 5.
CASE SY-SUBRC.
WHEN 0. "OK.
WHEN 1. MESSAGE A600 WITH 'INSERT HEADER FAILED'.
WHEN 2. MESSAGE A600 WITH 'OBJECT INVALID'.
WHEN 3. MESSAGE A600 WITH 'OPEN MISSING'.
WHEN 4. MESSAGE A600 WITH 'NO_POSITION_INSERTED'.
do not abort, if positions are not inserted!!!
WHEN 5. MESSAGE A600 WITH 'CLOSE ERROR'.
ENDCASE.
Reward me points if you found it useful.
Thanks
Abhishek Raj. -
System audit trail for FBL5N and Mass Change use
Hello,
My client carried out the foll actions yesterday.
Called TCode FBL5N using a range of customers
When the line items were displayed, they selected some of them and then went into Environment - Mass Change - New Values
Here they input a new value to the Dunning Block field.
Then they saved it and came out.
Later they realized that they should not have made the changes to some of the records. Unfortunately, now they dont remember either the customer range for which they had run FBL5N or the line items which they had changed.
So, the question is: is there any way by studying the audit trail or system history, one can find out which are the documents/line items that were changed yesterday within a specific time frame using TCode FBL5N and then Mass Change?
Please see if you can provide some input.
Regards,
Suvarghya DuttaHello,
It must have been kept to "All"
From future, all your transactions will have security audit log.
If you want to see the system log, then visit SM21.
Regards,
Ravi -
Using wliconsole's process instance monitoring and audit trail
Hello,
I have couple of questions about wliconsole's process monitoring capabilities to be able to use in real production environments.
1. Is it possible to add some custom data to the Process Instance Summary table? For example, we would like to show the party that send the initial request, and some internal process type information.
2. How can we achieve audit trail logging when we have several processes? For example, we have business processes that span over several wli-processes, and our process is split into several re-usable sub-processes. And the audit trail stops at the process boundaries. Finding the corresponding sub-processes is quite a challenge now.
Thanks,
Timo Lukumaa
Reaktor Innovations www.ri.fiThe WLI version we're about to use is 8.1 sp2.
One question more:
3. Is there somekind of metadata or resource directory in wliconsole or some place else?
We're about use a SOA style architecture where re-usable business logic is modeled as web services.
So we would like to have one place (a web page) where the available services could be seen and corresponding WSDLs and schemas downloaded.
Or are we just looking at the wrong product? ;)
Thanks,
Timo -
Archiving audit trail using data warehouse builder.
How do you archive audit trail using data warehouse builder ?
Can someone please provide any steps in archiving the audit trail table aud$ ?Hi.
Sorry 'bout my ignorance, what is a POC?
About OWB Installation cenario, it's all up to you. If your target database is a 9i db and you don't want to have a new database instance, then you can place all OWB repositories in this instance. Remember that DB release must be at least 9iR2. For further information, check OWB Installation Guide.
You'll find all OWB 10g R2 documentation in here:
http://download-east.oracle.com/docs/cd/B31080_01/doc/nav/portal_booklist.htm
OWB client may reside in any client machine or even in the host machine (if it's a windows server).
If you prefer to have a brand new instance to host OWB Repositories, you must create the runtime rep. in the target database (9i), in order to avoid loading performance issues.
Hope this helps
Marcosq -
Audit Trail vs Audit Trail for Assignments for e-Recruiting
Hi,
We are using e-Recruiting on EHP3 sp05 so the administrator still has the BSP interface. On here there are two links one for Audit Trail and another for Audit Trail for Assignments. We can find data under Audit Trail (every time a status change activity is run it updates the audit trail), however we cannot find anything under Audit Trail for Assignments. Does anyone know what this is for and how you get this populated?
Many thanks
TomHello,
I could find the below information on SAP Help. Please check if this is anyway useful.
The recruiting administrator can use the iView "Access Audit Trails" to get access to the Audit Trail of a candidate profile. The recruiting administrator can then search for candidates and call an overview of the data of the different profile versions. In addition to the profile versions, the recruiting administrator can also display the candidates' assignments that were derived from the search result
Procedure
1. In the services of your work overview, choose Access Audit Trails under Transaction Data Management.
2. Specify selection criteria such as the first and last name and e-mail address of the candidates for whom you want to view the audit trails and then choose Search. The system displays a list with the search results. If audit trails exist for a candidate, the system displays a link to each of them in the corresponding columns of the list.
3. Double-click an entry in these columns to open the relevant audit trail. The system displays a list with all versions of the audit trail.
4. Select a version by clicking it. The system displays the Data Overview of Candidate or the Data Overview of Assignment.
http://help.sap.com/erp2005_ehp_04/helpdata/EN/f1/cc084136b5f423e10000000a155106/frameset.htm
http://help.sap.com/erp2005_ehp_04/helpdata/EN/07/091c174ad74c6ba5f8011c9f78e839/frameset.htm
Best regards
G Raj -
Audit Trail Log for Sharepoint Foundation 2010
Hi all,
Does SharePoint Foundation 2010 have the ability to Audit user actions including opening documents, editing permsions, etc ?
What is the different with audit trail for Sharepoint 2010 and WSS 3.0?
Thank you
Rgds,I agree with Kamil Jurik. There is no auditing feature in SharePoint Foundation edition. The auditing feature is a SharePoint Enterprise feature. But yes there are free utilities on the web, like on codeplex and other. And if you are good in coding then
you may develop your own custom solution as given in a tech article:
http://msdn.microsoft.com/en-us/magazine/cc794261.aspx
Thanks & Best Regards,
Zakir Chougle || SharePoint Developer
Please click "Propose
As Answer" if a post solves your problem, or "Vote
As Helpful" if a post has been useful to you -
How can I set a report to have an audit trail?
I am using Business Objects Enterprise and am having a difficult time getting an audit trail set up for reports. If reports are scheduled, then the audit trail exists. But if the reports are manually generated, no audit trail exists. Any suggestions would be greatly appreciated.
Edited by: Dawn Michelle on Jun 7, 2011 11:05 AMAuditing database maybe?
Other than writing your own front end app that allows users to run reports on demand and keeping track yourself, I do not think there is any way to do this.
Jason -
ORA-2002 : error while writing to audit trail
Hi all ,
I am oracle 11g and on SPARC OS.
I enabled audit in my database by setting the parameter audit_trail=DB and then i restarted my instance.
On doing so the database started but whenever i am trying to connect using pl/sql developer , i am getting the following list of errors :
ORA-00604 : error occured at recursive SQL level 1
ora-00904 : "DBID" invalid identifier
Ora-02002 : error while writing to audit trail
ORA-00604 : error occured at recursive SQL level 1
ora-00904 : "DBID" invalid identifier
I checked on the net for ora-02002 and increased the size of the system tablespace from 750 M to 1000M.
My system tablespace is dictionary managed.
bounced the database also , but still getting the same errors.
please help
regards
KKukreja
Edited by: ~JuniorDBA~ on Dec 20, 2010 8:59 PMHi Nicolas,
here is the output
SQL> desc sys.aud$
Name Null? Type
SESSIONID NOT NULL NUMBER
ENTRYID NOT NULL NUMBER
STATEMENT NOT NULL NUMBER
TIMESTAMP# DATE
USERID VARCHAR2(30)
USERHOST VARCHAR2(128)
TERMINAL VARCHAR2(255)
ACTION# NOT NULL NUMBER
RETURNCODE NOT NULL NUMBER
OBJ$CREATOR VARCHAR2(30)
OBJ$NAME VARCHAR2(128)
AUTH$PRIVILEGES VARCHAR2(16)
AUTH$GRANTEE VARCHAR2(30)
NEW$OWNER VARCHAR2(30)
NEW$NAME VARCHAR2(128)
SES$ACTIONS VARCHAR2(19)
SES$TID NUMBER
LOGOFF$LREAD NUMBER
LOGOFF$PREAD NUMBER
LOGOFF$LWRITE NUMBER
LOGOFF$DEAD NUMBER
LOGOFF$TIME DATE
COMMENT$TEXT VARCHAR2(4000)
CLIENTID VARCHAR2(64)
SPARE1 VARCHAR2(255)
SPARE2 NUMBER
OBJ$LABEL RAW(255)
SES$LABEL RAW(255)
PRIV$USED NUMBER
SESSIONCPU NUMBERsince i took over the database , no one did anything ... i only truncated the aud$ table today.
But while going through the files i came across a SQL file that had this content :
more move_audit.sql
create table system.aud$
tablespace AUD_TSP
as select * from aud$;
create index system.i_aud1 on system.aud$(sessionid, ses$tid);
rename aud$ to aud$_temp;
create view aud$ as
select * from system.aud$;
connect system/XXXXX
grant all on aud$ to sys with grant option;
grant delete on aud$ to delete_catalog_role;Now I am not sure what has happened and who has done what,but when i checked on TOAD, system tablespace had aud$ table and there was no table in tablespace AUD_TSP.
thanks and regards
Kkukreja
Edited by: ~JuniorDBA~ on Dec 21, 2010 12:55 AM -
Audit trail of Business Partner Views
Hi All,
A typical audit trail within SAP tracks the creation and changes of master data and transactional data.
For a SAP CRM solution, we have the requirement for tracking views of business partner master data. Can this be activated in SAP CRM as standard, or is there another tool/add-on we can use? A suggestion is to possibly use the ICM monitor, but i'm not sure it will capture all the information we need and store it over a long period of time. My understanding is that ICM uses a set memory allocation which cycles, so if it gets full, it simply overwrites from the beginning again.
Help appreciated!
IndiI hope someone from here can help me. I am setting up audittrail for wf_local_user_roles table. The Audittrail update table program completed no error. The audittrail valdiation program also report no error.
But when I modify the end date for existed responsibility, it shows the change in the original table WF_loadl_user_roles. But there is no change in wf_local_user_roles_AC table wf_local_user_roles_AV4. They both keep the old end date.
WHY? -
Hi Expert,
Instead of using the existing audit report "S_AHR_61016380", I would like to create a customized report for this. I try to go throguh the source code in this report, but no luck for me.
Could you please let me know the table name to store the audit trail data? I need to extract it myself and put it into my company's format.
Million thanks,
WFHi Harsh,
I have lots of record from the standard audit report, but I cannot find any record in view V_PTRV_APPR.
Could you please let me know how to get record from these table?
Thanks,
WF -
User audit trail in a SOA scenario
Hi All,
In a SOA scenario when using a composite application calling many webservices who on their turn call asynchronous jms calls to backend applications. How can you audit the user trail? So can you tell of all the backend transactions touched by this SOA scenario who was responsible of changing the data.
To illustrate the issue:
The typical SOA scenario, we have a web application running in a portal, the logged on portal user is accessing this web application. The web application is calling web services using the logged on user credentials. The webservices call an asynchronous message in a message oriented middleware solution using a service user. This asynchronous message triggers a bapi in R/3 using this service user. In the logging of the bapi call in R/3 the bapi is called by the service user and not the portal user id.
Can somebody point me to articles regarding this topic or best practices?
regards,
RichardThanks Abhishek,
The first link was helpfull but actually underlines the problem that I have. The second link has no relevance to the problem.
But if we zoom in on de first link: http://help.sap.com/saphelp_erp2004/helpdata/en/cb/b0ceb823984a62bf017a42179af99a/frameset.htm
This is about the security on JMS service.
So the question remains how do you deal with an audit trail if the user calling webservices is different than the service user calling the bapi.
regards,
Richard -
How to create an audit trail report in SAPB12007
Hello,
I been looking for some ways to make an Audit Trail Report for our System Audit. Could anyone help me with this?
I would like to generate a report that will list all the BP and ITem master data. the date its created and modified and if its modified what are the old values and the modified values.
I browse the table ACRD for the BP history. how every it could be read as a report. So I was wondering if anyone knows what table should I look at if I am to get the old and new value of a modified transaction. Pls. note that I wanted to create a report.
Thank you very much
catHere are the queries that I use for my audits internally. The first one is for customer changes. And the second one to control pricing.
Query Name: Business Partner History Log
Author: Vincent Motte
Version: 1.0
History:
/SELECT FROM ACRD T1/
DECLARE @DATE AS DATETIME
/* WHERE */
SET @DATE = /* T1.UpdateDate */ getdate()-30
SELECT
CASE
WHEN (SELECT ISNULL(T10.BankCode,0) FROM ACRD T10 WHERE T10.CardCode=T0.CardCode AND T10.LogInstanc=T0.LogInstanc-1)<>ISNULL(T0.BankCode,0)
Then 'Bank details modified'
WHEN (SELECT ISNULL(T10.DflAccount,0) FROM ACRD T10 WHERE T10.CardCode=T0.CardCode AND T10.LogInstanc=T0.LogInstanc-1)<>ISNULL(T0.DflAccount,0)
Then 'Bank details modified'
WHEN (SELECT ISNULL(T10.DflBranch,0) FROM ACRD T10 WHERE T10.CardCode=T0.CardCode AND T10.LogInstanc=T0.LogInstanc-1)<>ISNULL(T0.DflBranch,0)
Then 'Bank details modified'
WHEN (SELECT COUNT(T10.CardCode) FROM ACRD T10 WHERE T10.CardCode=T0.CardCode and T10.LogInstanc<T0.LogInstanc)<=0
Then 'Creation'
else ''
END 'Alert',
T0.UpdateDate 'Update Date', T1.[U_NAME] 'User',T0.CardCode, T0.CardName
, T0.[CreditLine], T0.[DebtLine],
T0.[Discount], T0.[VatStatus], T0.[LicTradNum], T0.[ListNum] 'Price List', T0.[DflAccount], T0.[DflBranch], T0.[BankCode],
T0.[validFor], T0.[frozenFor], T0.[VatGroup], T0.[Deleted], T0.[PymCode], T0.[BlockDunn],
T0.[WTCode]
FROM ACRD T0 , OUSR T1 WHERE
T1.INTERNAL_K=T0.UserSign AND T0.UpdateDate>=@DATE
Query Name: Price Change log
Description: extracts the price modification for each item in SBO for the past 30 days
Version 1.0
Author: Vincent Motte
History:
Select
--T0.UserSign,
T1.itemcode 'Item Code',
T0.Price [Previous],
T1.Price [Current],
T2.ListName 'Price List',
T0.Factor[Old Factor] ,
T0.factor [New Factor],
/* select the update date for the log instance(determined by the where condition )*/
(Select distinct T3.Updatedate from aitm T3 where T3.itemcode= T0.itemcode and (T3.loginstanc +1)= T0.loginstanc ) 'Update Date',
T0.loginstanc 'Instance',
T2.listName 'Price List',
/Select the base price list for the item's price list from the price list table/
(Select T4.base_num from opln T4 where T4.listnum = T1.pricelist and T4.listnum = T0.pricelist) [Base PriceList ]
--t0.Currency,
--T1.CURRENCY
From
ait1 T0 inner join
itm1 T1 on T0.pricelist = T1.pricelist and T0.itemcode = T1.itemcode
Inner Join opln T2 on T1.pricelist = T2.listnum
where
/* Condition 1: Select all the items + their price change where the price has been changed and the base price list equals the price list itself. It counts the Log Instance from the item in
the price list and substract one to get the last entry where the price was changed. The loginstance coutn ignores a count of 1
T0.loginstanc =
((Select count (a.Loginstanc) from ait1 a where a.itemcode = T0.itemcode and a.pricelist = T0.pricelist group by a.itemcode having count(a.Loginstanc) > '1' ) -1)
and
/* Cater for prices in target price lists which may have been manually changed. */
(T1.ovrwritten='y'and T0.Price <> T1.Price)
or (T0.Price <> T1.Price and T2.base_num = T1.pricelist and T2.base_num = T1.pricelist
and T2.base_Num = T2.listnum )
Cater for cases where a currency change but not a price change may happen
OR T0.CURRENCY <> T1.CURRENCY
or
Condition 2: Select all price changes where the price may have changed due to the price of the parent price lsit changing.
As this type of price chnage is not recorded in the AIT1 the second log instance condition details that the base price list
from opln does not equal the actual price list in ait1 or itm1.
T0.loginstanc =
(Select top 1 c.loginstanc from ait1 c where c.itemcode = T0.itemcode and c.pricelist = T0.pricelist and c.loginstanc <> '1' order by c.loginstanc desc)
and T2.base_num <> T1.pricelist and T2.base_num <> T1.pricelist
and T2.base_Num <> T2.listnum
and
caters for a change in the factors or prices in target price lists which may have been manually changed.
((T0.Factor <> T1.factor)
or (T1.ovrwritten='y'and T0.Price <> T1.Price)
or T0.price <> T1.price
Cater for cases where a currency change but not a price change may happen
OR T0.CURRENCY <> T1.CURRENCY
and (T0.Price >= 0 or T1.Price >=0) and ((T0.Price <> T1.Price) or ((T0.Price <>
(Select distinct b.pricelist from itm1 b right outer join OPLN T4 on b.pricelist= T4.listnum and b.pricelist <> T4.base_Num where b.pricelist = T1.pricelist and b.itemcode =T1.itemcode)))
and (Select distinct T3.Updatedate from aitm T3 where T3.itemcode= T0.itemcode and (T3.loginstanc +1)= T0.loginstanc ) >getdate()-30 -
What is Audit Trail in Oracle HRMS?
Hi
Plz give me idea about Audit Trail in Oracle HRMS.Audit trail in HRMS is same as in any other module except the fact there is one extra process needs to be run in HRMS to make sure that it can handle date track data.
Coming to its use, it all depends on what your business requirements are and how much performance hit you are ready to take.
--Shiv
Maybe you are looking for
-
Service Pack 3 appears to have broken the Report Builder click once installation
We are running SQL Server reporting services on SQL Server 2008 R2. Recently we installed the service pack 3 and we now get the following error when a user clicks the Report Builder link: Application validation did not succeed. Unable to continue. A
-
Can i export mv file in final cut pro x trial
I tried to export mv file in final cut pro x trial version, suddenly all my files was gone. What happened? How to retrieve the files back? Thank you!
-
Boot Camp Control Panel Won't Open in Win 7 with 3.1 BC 64bit Drivers
I have an early MacPro running both SL and Win7 64 bit, each OS on a dedicated drive. I installed BC 3.0 drivers previously without problem. I upgraded the BC drivers to 3.1. Now, if I attempt to open the BC Control Panel, I get an error message stat
-
Setting up iTunes and Buffalo Linkstation Live
Anyone using this setup on Windows XP? Anyone know if I can connect directly to my iTunes content from my Apple TV? I have the pCast/DNLA server running. Thanks!
-
How to keyframe from colour to black & white
I am trying to do a video from present then moved to the past. So I am starting a clip from colour, then slowly it turns into black & white. I have 2 questions: 1) How do I keyframe the above effects ? 2) Instead of using the Sepia effect, is there o