10-04-2006 5:16 AM
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?
10-04-2006 6:16 AM
Hi,
I think it is not possible with a variant. Instead you can use the BAPI's explained in RSAU_AUDITLOG_EXTERNAL example.
ferudun
10-04-2006 10:11 AM
Hi Annie,
As mention by Ferudun it is not possible to execute SM20 in background as such. The best appraoch will be to execute SM20 and then save output as local file and then send it across to the concerned person in e-mail.
Regards.
Ruchit.
10-06-2006 1:33 AM
Got the answer from SAP that starting from 46C Support Pack 52, we can run SM20(report RSAU_SELECT_EVENTS) in background with variant.
10-06-2006 4:00 PM
I thought of that but didn't know that it was available for 46C.
Did you see / try RSAU_READ_AUDITLOG_EXTERNAL?
10-09-2006 2:59 AM
Julius,
I try to limit the report reading to a particular user in Report RSAU_READ_AUDITLOG_EXTERNAL but it still produce the report for all users. The instance name parameter makes me wonder if it only reads the audit file from that particular instance. In SM20, we can read the audit logs from all instances. Not too sure if RSAU_SELECT_EVENTS reads from all instances as I am unable to test at the moment. Are you able to confirm this?
Thanks,
Annie
10-09-2006 9:07 AM
<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.
02-05-2007 9:24 PM
Hi Guru,
i want to have this rsau_select_events program in 4.7 with support pack 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
02-06-2007 2:42 PM
Hi Anni,
we are on 4.7 with sp level SAPKB62038 .I want to know for 4.7 what is the minimum required sp level
Thanks
Khaiser