SAP Reports / Programs

KOTR_TRACE SAP ABAP Report - Program Trace







KOTR_TRACE 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 KOTR_TRACE 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

TRACE - Program 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 KOTR_TRACE. "Basic submit
SUBMIT KOTR_TRACE AND RETURN. "Return to original report after report execution complete
SUBMIT KOTR_TRACE 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: P_VALUE = Value
Selection Text: P_MED_S = Sequential File
Selection Text: P_MED_M = Memory
Selection Text: P_MED_D = Database
Selection Text: P_IMNAME = File Name
Selection Text: P_EXNAME = File Name
Selection Text: P_EVSTRT = Not Matching Filter
Selection Text: P_EVONLY = If Filter Matches
Selection Text: P_EVENT = Filter Term
Title: Program Trace
Text Symbol: 102 = Trace Active; Save in Database
Text Symbol: 101 = Trace Active
Text Symbol: 100 = Deactivate Trace
Text Symbol: 012 = Export & Import Trace Data
Text Symbol: 011 = Import and Display
Text Symbol: 010 = Export
Text Symbol: 009 = Delete All Breakpoints
Text Symbol: 008 = Trace Status
Text Symbol: 007 = For User Name
Text Symbol: 006 = Load From database
Text Symbol: 005 = Stop Trace
Text Symbol: 004 = Save to Database
Text Symbol: 003 = Display Trace from Database
Text Symbol: 002 = Display Trace
Text Symbol: 001 = Start Trace
Text Symbol: 103 = Trace Active, Save in Sequential File
Text Symbol: 200 = Preparation of Results
Text Symbol: 201 = Filter function
Text Symbol: MS1 = No Trace Selected for Export
Text Symbol: MS2 = No Trace Available for Display


INCLUDES used within this REPORT KOTR_TRACE

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:

RS_SET_SELSCREEN_STATUS CALL FUNCTION 'RS_SET_SELSCREEN_STATUS' EXPORTING P_STATUS = '%_00' TABLES P_EXCLUDE = TF_EXCLUDE.

K_TRACE_PARAMETER_GET CALL FUNCTION 'K_TRACE_PARAMETER_GET' IMPORTING MEMORY_TYPE = LF_memory_type.

K_TRACE_PARAMETER_SET CALL FUNCTION 'K_TRACE_PARAMETER_SET' EXPORTING MEMORY_TYPE = LF_MEMORY_MODE FILTER_KEY = P_EVENT FILTER_VALUE = P_Value FILTER_MODE = LF_FILTER_MODE.

K_TRACE_DELETE_BREAKPOINTS CALL FUNCTION 'K_TRACE_DELETE_BREAKPOINTS' EXPORTING I_UNAME = P_USER.

K_TRACE_LOAD CALL FUNCTION 'K_TRACE_LOAD' EXPORTING IM_TYPE = LF_TYPE IM_UNAME = P_USER IMPORTING CALLBACK_DATA = LT_CALLBACK_DATA EXCEPTIONS OTHERS = 9.

K_TRACE_DISPLAY CALL FUNCTION 'K_TRACE_DISPLAY' EXPORTING CALLBACK_DATA = LT_CALLBACK_DATA.

K_TRACE_PARAMETER_GET CALL FUNCTION 'K_TRACE_PARAMETER_GET' IMPORTING MEMORY_TYPE = LF_memory_type FILTER_KEY = P_EVENT FILTER_VALUE = P_VALUE FILTER_MODE = LF_FILTER_MODE.

K_TRACE_CHECK_BREAKPOINTS CALL FUNCTION 'K_TRACE_CHECK_BREAKPOINTS' EXPORTING I_UNAME = P_USER IMPORTING E_BREAKPOINTS_EXIST = LF_EXIST.

K_TRACE_EXPORT CALL FUNCTION 'K_TRACE_EXPORT' EXPORTING FILENAME = LF_FULLPATH CALLBACK_DATA = LT_CALLBACK_DATA EXCEPTIONS OTHERS = 0.

K_TRACE_IMPORT CALL FUNCTION 'K_TRACE_IMPORT' EXPORTING FILENAME = LT_FILENAME_AS_STRING IMPORTING CALLBACK_DATA = LT_CALLBACK_DATA EXCEPTIONS OTHERS = 1.

K_TRACE_DISPLAY CALL FUNCTION 'K_TRACE_DISPLAY' EXPORTING CALLBACK_DATA = LT_CALLBACK_DATA.



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