11-25-2008 4:31 PM
Hello all,
What is pre-requistics of FM - SWNC_GET_STATRECS_FRAME. I am not able to get the desire result for the specific period and user. This FM use to read the system log. There is no documentation available for this FM nor any information on service market space.
11-26-2008 5:08 AM
Hi Try this....
DATA: runtime1 TYPE i,
runtime2 TYPE i.
PARAMETER sdate TYPE sydatum DEFAULT sy-datum.
PARAMETER stime TYPE syuzeit DEFAULT sy-uzeit.
PARAMETER edate TYPE sydatum DEFAULT sy-datum.
PARAMETER etime TYPE syuzeit DEFAULT sy-uzeit.
PARAMETER timezone TYPE systzonlo DEFAULT 'CET'.
PARAMETER maxrecs TYPE i DEFAULT '5000'.
PARAMETER client TYPE symandt DEFAULT sy-mandt.
PARAMETER username TYPE syuname DEFAULT sy-uname.
PARAMETER wprocess TYPE swncrshrt DEFAULT space.
PARAMETER read_st TYPE boolean DEFAULT 'X'.
PARAMETER read_ast TYPE boolean DEFAULT 'X'.
DATA: t_statrecs TYPE swncgl_t_allrecs,
t_errors TYPE swncgl_t_rcinf,
wa_errors LIKE LINE OF t_errors.
INITIALIZATION.
stime = stime - 1200.
START-OF-SELECTION.
GET RUN TIME FIELD runtime1.
CALL FUNCTION 'SWNC_GET_STATRECS_FRAME'
EXPORTING
read_time_zone = timezone
read_start_date = sdate
read_start_time = stime
read_end_date = edate
read_end_time = etime
read_client = client
read_username = username
read_workprocess = wprocess
read_stat = read_st
read_astat = read_ast
wait_seconds = 30
max_records = maxrecs
GET_COMPONENTS = ' '
GET_ACCOUNTS = ' '
IMPORTING
all_statrecs = t_statrecs
protocol = t_errors
EXCEPTIONS
OTHERS = 1
11-26-2008 10:17 AM
sorry, i don't see any difference in your code and in my code, it's same. The issue is when checked report output I cannot get some transaction code which are actually used by the user during that period. Do you know what other setting require from BASIS side and any documentation
01-02-2009 3:38 PM
The FM Not yet released for customer use response from SAP about this issue