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
.| Name | Type | Data Type | Description | Default Value |
| ITR_FUNCTION_ID | Importing | TYPE IF_FDT_TRACE=>TR_FUNCTION_ID | Raneg of function IDs | |
| ITR_TIMESTAMP | Importing | TYPE IF_FDT_TRACE=>TR_TIMESTAMP | Range of time stamps | |
| ITR_USER | Importing | TYPE IF_FDT_TRACE=>TR_USER | Range of users | |
| IV_MEMORY_ONLY | Importing | TYPE ABAP_BOOL | ABAP_TRUE: Read from memory only but not from DB | |
| EO_TRACE_DOCUMENT | Exporting | TYPE REF TO IF_IXML_DOCUMENT | Trace document containing the hierarchy | |
| EV_TRACE | Exporting | TYPE STRING | Trace as XML |
Exceptions of Method READ_HIERARCHY
CX_FDT_SYSTEM - FDT: System FailureExample 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