Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

SWNC_GET_STATRECS_FRAME Not returning correct result

Former Member
0 Kudos

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.

3 REPLIES 3

Former Member

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

0 Kudos

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

Former Member
0 Kudos

The FM Not yet released for customer use response from SAP about this issue