SAP Reports / Programs | Basis Components | Use Subcomponents | Monitoring(BC-CCM-MON) SAP BC

SAPWL_KONTEXTTRACE SAP ABAP Report - Program SAPWL_KONTEXTTRACE







SAPWL_KONTEXTTRACE 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 SAPWL_KONTEXTTRACE into the relevant SAP transactions such as SE38 or SE80


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

STKONTEXTTRACE - Switch On Context Trace


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 SAPWL_KONTEXTTRACE. "Basic submit
SUBMIT SAPWL_KONTEXTTRACE AND RETURN. "Return to original report after report execution complete
SUBMIT SAPWL_KONTEXTTRACE 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: TCODE = Transaction Code
Selection Text: TRC_AUTH = Authorization Trace
Selection Text: TRC_ENQ = Enqueue Trace
Selection Text: TRC_RFC = RFC Trace
Selection Text: TRC_SQL = SQL Trace
Selection Text: TRC_TBUF = Table Buffer Trace
Selection Text: TRC_USR = Free Trace
Title: Activate Trace and Start Transaction
Text Symbol: 000 = Trace Activation
Text Symbol: 001 = You can activate one of the following traces for a transaction;
Text Symbol: 002 = use transactions ST05 or ST01 to evaluate the trace:
Text Symbol: 003 = Log the Open SQL statements used
Text Symbol: 004 = Log the accesses to the SAP table buffer
Text Symbol: 005 = Log the RFC calls of an application or of the SAP system
Text Symbol: 006 = Log the lock statements of an application or the SAP system
Text Symbol: 007 = Activate the kernel trace (for kernel development)
Text Symbol: 008 = Log the required authorization objects
Text Symbol: 009 = Enter the transaction that is to be started with the selected trace
Text Symbol: 010 = here.


INCLUDES used within this REPORT SAPWL_KONTEXTTRACE

No INCLUDES are used within this REPORT code!


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:

AUTHORITY_CHECK_TCODE CALL FUNCTION 'AUTHORITY_CHECK_TCODE' EXPORTING tcode = tcode EXCEPTIONS ok = 1 not_ok = 2 OTHERS = 3.

RSTR_ACTIVATE_USER_TRACE CALL FUNCTION 'RSTR_ACTIVATE_USER_TRACE' EXPORTING trc_sql = trc_sql trc_tbuf = trc_tbuf trc_rfc = trc_rfc trc_enque = trc_enq trc_user = trc_usr trc_auth = trc_auth.

RSTR_DEACTIVATE_USER_TRACE CALL FUNCTION 'RSTR_DEACTIVATE_USER_TRACE'.



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 SAPWL_KONTEXTTRACE or its description.