SAP Reports / Programs

SEC_TRACE_ANALYZER SAP ABAP Report - HTTP Request Tracer and Recorder







SEC_TRACE_ANALYZER is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for The primary goal of this report is to achieve a comfortable HTTP communications tracing by just supplying the ICF service and the user under which the service was called...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.

If you would like to execute this report or see the full code listing simply enter SEC_TRACE_ANALYZER 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 SEC_TRACE_ANALYZER. "Basic submit
SUBMIT SEC_TRACE_ANALYZER AND RETURN. "Return to original report after report execution complete
SUBMIT SEC_TRACE_ANALYZER 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: PUSER = User (space=all users)
Selection Text: PURL = ICF Service
Selection Text: PTMOUT = Timeout
Selection Text: PSERVER = Server
Selection Text: PREC = Record Requests
Selection Text: PLVL = Level (1=errors to 3=verbose)
Selection Text: PICMTRC = Set ICMAN Trace Level
Selection Text: PCLNT = Client dependent
Selection Text: PAUTH = Logon Trace (got HTTP 401)
Title: HTTP Request Tracer and Recorder
Text Symbol: T58 = Work process trace files and ICM trace files have been reset
Text Symbol: T57 = Error while setting ICM trace level. Make sure ICM is running, check transaction (SMICM)
Text Symbol: T56 = 5. Show ICMAN Trace
Text Symbol: T55 = 4. Show Recorded Requests
Text Symbol: T31 = ICF recorder and trace is activated. Execute your scenario now
Text Symbol: T30 = Could not activate ICF recorder
Text Symbol: T20 = No
Text Symbol: T19 = Yes
Text Symbol: T18 = Please confirm
Text Symbol: T17 = Other users have active tracing sessions. Do you really want to reset the traces?
Text Symbol: T16 = Trace Settings
Text Symbol: T10 = Netzwerkadministration
Text Symbol: T09 = SICF
Text Symbol: T08 = Trace is activated. Execute your scenario now on the current application server
Text Symbol: T07 = Could not activate user trace.
Text Symbol: T06 = Work process trace files have been reset
Text Symbol: T05 = Cannot select user trace
Text Symbol: T04 = Select the user you want to read traces for
Text Symbol: T03 = 3. Show User Trace
Text Symbol: T02 = 2. Activate User Trace
Text Symbol: T01 = 1. Reset Trace Files (Caution!)


INCLUDES used within this REPORT SEC_TRACE_ANALYZER

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:

TH_GET_ACTIVE_SERVER CALL FUNCTION 'TH_GET_ACTIVE_SERVER' EXPORTING local_tabname = '' tabname = '' IMPORTING server = pserver.

STRC_SELECT_USER_TRACE CALL FUNCTION 'STRC_SELECT_USER_TRACE' EXPORTING * SERVER = user = puser loadmask = 'NH' displaymask = 'NH' * UPDATE = * IMPORTING * LOADMASK = * DISPLAYMASK = EXCEPTIONS server_not_active = 1 communication_failure = 2 OTHERS = 3.

HTTP_TRACE_UPDATE CALL FUNCTION 'HTTP_TRACE_UPDATE' EXPORTING url = purl * call_url = orig_url * url_determ = gl_url gui_ipaddress_flag = abap_false action = 'I' trace_level = plvl timeout = ptmout clnt_depent = pclnt user = puser * GUI_IPADDRESS = gl_debug_ip_adress * gui_ipaddress_gen = gl_debug_ip_adress CHANGING int_icfattrib = lt_ca EXCEPTIONS internal_error = 1 OTHERS = 2.

HTTP_RECORD_UPDATE CALL FUNCTION 'HTTP_RECORD_UPDATE' EXPORTING url = purl gui_ipaddress_flag = abap_false action = 'I' record_level = plvl timeout = ptmout clnt_depent = pclnt user = sy-uname * url_determ = rec_url life_day = 0 life_time = lf_life_time rec_logon = pauth * call_url = orig_url CHANGING int_icfattrib = lt_ca EXCEPTIONS internal_error = 1 not_allowed_process_record = 2 OTHERS = 3.

TH_WPINFO CALL FUNCTION 'TH_WPINFO' EXPORTING with_cpu = '00' with_mtx_info = 1 TABLES wplist = wp_tabl EXCEPTIONS OTHERS = 0.

TH_GET_WP_TRACE CALL FUNCTION 'TH_GET_WP_TRACE' EXPORTING wp_id = wp_tabl-wp_index IMPORTING trc = ls_trc.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = 'Please confirm'(t18) * DIAGNOSE_OBJECT = Diagnose text_question = 'Other users have active tracing sessions. Do you really want to reset the traces?'(t17)

TH_RESET_TRACE CALL FUNCTION 'TH_RESET_TRACE'.

ICM_RESET_TRACE CALL FUNCTION 'ICM_RESET_TRACE' EXCEPTIONS icm_op_failed = 1 icm_not_authorized = 2 OTHERS = 3.

SHOW_SICFTREE CALL FUNCTION 'SHOW_SICFTREE' EXPORTING nodtype = 'SERVICE' with_navigation = space IMPORTING * selected_node = int_nodguid selected_path = l_url * selected_extend_url = int_alt_path * hostname = int_hostname * hashvalue = gl_selected_hash.



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