Show TOC

 CL_WD_TRACE_TOOL and IF_WD_TRACE_TOOLLocate this document in the navigation structure

With the CL_WD_TRACE_TOOL class, which points to the IF_WD_TRACE_TOOL interface through  its static attribute INSTANCE, applications developers can supply additional data to the Web Dynpro Trace Tool .

To do this the IF_WD_TRACE_TOOL interface contains method ADD_TRACE_DATA.

Example

IF CL_WD_TRACE_TOOL=>INSTANCE IS BOUND.
  DATA TRACE_DATA TYPE XSTRING.
  " <<< collect your application-specific trace data
 
  " Add your collected trace data to the trace file for
  " the current roundtrip
  CL_WD_TRACE_TOOL=>INSTANCE->ADD_TRACE_DATA(
    NAME = 'YourDomain/FileName.Ext'
    XSTRING = TRACE_DATA
  ).
ENDIF.

We recommend that you add the application area as a prefix to the trace files, for example, SRM/ and that you do not start the name with a slash (/).