READ_HIERARCHY SAP Method Read trace data in an hierarchy format









Below is documentation, parameters and attributes of ABAP Method READ_HIERARCHY within SAP class IF_FDT_TRACE. There is also a number of example ABAP code snipts to help you use the functionality of this method.

This method is available within SAP systems depending on your version and release level, you can view further information by entering the class name IF_FDT_TRACE into the relevant SAP transactions such as SE24 or SE80, and then selecting the method you are interested in.


Method Type - Instance

This is an Instance Method so needs to be instantiated first before you can access any of the methods. I.e. you need to create a local variable of TYPE ref to the class.

The following technical details of method READ_HIERARCHY can also be found below:

  • Importing parameters
  • Exporting parameters
  • Changing parameters
  • Returning parameters
  • Exceptions
  • Coding Examples


Parameters of Method READ_HIERARCHY

.

NameTypeData TypeDescriptionDefault Value
ITR_FUNCTION_IDImportingTYPE
IF_FDT_TRACE=>TR_FUNCTION_ID
Raneg of function IDs
ITR_TIMESTAMPImportingTYPE
IF_FDT_TRACE=>TR_TIMESTAMP
Range of time stamps
ITR_USERImportingTYPE
IF_FDT_TRACE=>TR_USER
Range of users
IV_MEMORY_ONLYImportingTYPE
ABAP_BOOL
ABAP_TRUE: Read from memory only but not from DB
EO_TRACE_DOCUMENTExportingTYPE REF TO
IF_IXML_DOCUMENT
Trace document containing the hierarchy
EV_TRACEExportingTYPE
STRING
Trace as XML



Exceptions of Method READ_HIERARCHY

CX_FDT_SYSTEM - FDT: System Failure

Example ABAP coding


DATA: lo_class TYPE REF TO IF_FDT_TRACE.
DATA: lv_EO_TRACE_DOCUMENT TYPE IF_IXML_DOCUMENT,
lv_EV_TRACE TYPE STRING,
lv_ITR_FUNCTION_ID TYPE IF_FDT_TRACE=>TR_FUNCTION_ID,
lv_ITR_TIMESTAMP TYPE IF_FDT_TRACE=>TR_TIMESTAMP,
lv_ITR_USER TYPE IF_FDT_TRACE=>TR_USER,
lv_IV_MEMORY_ONLY TYPE ABAP_BOOL,
lv_other TYPE c.

CALL METHOD lo_class=>READ_HIERARCHY(
EXPORTING
ITR_FUNCTION_ID = lv_ITR_FUNCTION_ID
ITR_TIMESTAMP = lv_ITR_TIMESTAMP
ITR_USER = lv_ITR_USER
IV_MEMORY_ONLY = lv_IV_MEMORY_ONLY
IMPORTING
EO_TRACE_DOCUMENT = lv_EO_TRACE_DOCUMENT
EV_TRACE = lv_EV_TRACE ).

Links to Related Class(s)

IF_FDT_T...
Full list of available SAP object classes

Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!