SAP Reports / Programs | Basis Components | Client/Server Technology(BC-CST) SAP BC

PF_ASTAT_TEST SAP ABAP Report - Program to Test the Application Statistics Functions







PF_ASTAT_TEST is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.

If you would like to execute this report or see the full code listing simply enter PF_ASTAT_TEST into the relevant SAP transactions such as SE38 or SE80


ABAP code to call this SAP report using the submit statement

This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.






SUBMIT PF_ASTAT_TEST. "Basic submit
SUBMIT PF_ASTAT_TEST AND RETURN. "Return to original report after report execution complete
SUBMIT PF_ASTAT_TEST VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Selection Text: COMM = With Commit (for Write)
Selection Text: DATUM = From Date (for Read)
Selection Text: FILENAME = File Name
Selection Text: FUNCTION = Function (W,C,R,P)
Selection Text: IKEYFILT = Initial Key Filter
Selection Text: KEYFILMD = Filter Modes (IKEY/OKEY)
Selection Text: MAXOPEN = MAXOPEN
Selection Text: MAXRECS = Maximum Number of Sets (Read)
Selection Text: MODUS = Read Mode (for Read)
Selection Text: OKEYFILT = Open Key Filter
Selection Text: RFC_END = RFC Only at End (for Write)
Selection Text: ROLLBACK = With Rollback (for Write)
Selection Text: SATZ = Set Number (for Read)
Selection Text: SCHLEIFE = Number of Program Runs (Write)
Selection Text: TEST_RFC = Test with RFC (for Write)
Selection Text: TEST_SUB = Test with SUBMIT (for write)
Selection Text: TIMELONG = Duration (Funct.P:Performance)
Selection Text: TRACE = With SAP Trace (for Write)
Selection Text: USER = User (for Read)
Selection Text: ZEIT = Time (for Read)
Title: Program to Test the Application Statistics Functions


INCLUDES used within this REPORT PF_ASTAT_TEST

INCLUDE PERFINCL.
INCLUDE PF_ASTAT_TEST_F1.
INCLUDE PF_ASTAT_TEST_PRINT.
INCLUDE PF_ASTAT_TEST_WORK.


TABLES used within REPORT and the associated SELECT statement:





No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

RSTR_ACTIVATE_USER_TRACE call function 'RSTR_ACTIVATE_USER_TRACE' exporting trc_sql = 'X' trc_tbuf = 'X' trc_enque = 'X' trc_rfc = 'X' trc_auth = 'X' trc_cmod = 'X' trc_user = 'X' trc_http = 'X'.

RSTR_DEACTIVATE_USER_TRACE call function 'RSTR_DEACTIVATE_USER_TRACE'.

PF_ASTAT_FLUSH_BUFFER call function 'PF_ASTAT_FLUSH_BUFFER'.

GET_SYSTEM_TIMEZONE call function 'GET_SYSTEM_TIMEZONE' importing timezone = system_time_zone exceptions customizing_missing = 1 others = 2.

PF_ASTAT_READ_FILE call function 'PF_ASTAT_READ_FILE' exporting read_file = filename read_mode = modus target_rec_no = satz user = user end_time = zeit end_date = datum keyfiltermode = keyfilmd ikey_filter = ikeyfilt okey_filter = okeyfilt importing astatrec = asrecord ascolrec = ascrecord rectype = rectype recno = number filerec = filerec recs_in_file = filerecs new_file = new_file act_filename = act_file exceptions others = 4.

PF_ASTAT_CLOSE_FILE call function 'PF_ASTAT_CLOSE_FILE'.



Contribute (Add Comments)

Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.







The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.

This will then be available for everyone to easily find by simply searching on the report name PF_ASTAT_TEST or its description.