Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2807

Re: Auditing Scheduled Reports and the Prompts used

$
0
0

Hi Dan,

 

When a report with prompts is run/scheduled, an entry in made in the Audit database.

 

Let me explain you with a small eg :

1) select EVENT_ID from ADS_EVENT where Object_ID = 'aaaa' and Event_Type_ID = '1004' and user_name = 'username' and Start_Time >='27-May-2016'

 

Above will return you with the event ids for each prompt (Event_type_id = 1004 is for a prompt event) for the report having CUID = 'aaaa' and run by the "username" user on 27th of May

 

Let us assume, that the report ran had 4 prompts, so we will have 4 rows returned. Let those event ids be - 1111, 2222, 3333, 4444

 

2) select * from ADS_EVENT_DETAIL where Event_ID in ('1111', '2222', '3333', '4444') and Event_Detail_Type_ID in (26,27)

 

When Event_Detail_Type_ID is 26, "Event_detail_value" column will contain the "Prompt name"

When Event_Detail_Type_ID is 27, "Event_detail_value" column will contain the "Prompt value"


3) after running the above queries, you will have result returned as follows :


Event_id     |     Event_Detail_ID      |     Event_Detail_type_ID      |     Event_Detail_Type

1111                    3                                   26                                             Select Year

1111                    4                                   27                                             2010

2222                   3                                   26                                             Select Month

2222                   4                                   27                                             Dec

3333                   3                                   26                                             Select region

3333                   4                                   27                                             Europe

4444                   3                                   26                                             Select category

4444                   4                                   27                                             ALL


Hope the above helps.


Also, kindly check the great article by Matthew Shaw, if you not already have.

http://scn.sap.com/community/bi-platform/blog/2015/07/15/unlock-the-auditing-database-with-a-new-universe-and-web-intelligence-documents-for-bi41

                  

Regards,

Monish




Viewing all articles
Browse latest Browse all 2807

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>