DISPLAY_TREE SAP Method Display tree









Below is documentation, parameters and attributes of ABAP Method DISPLAY_TREE within SAP class CL_GUI_ALV_TREE_WRAPPER. 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 CL_GUI_ALV_TREE_WRAPPER 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 DISPLAY_TREE can also be found below:

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


Parameters of Method DISPLAY_TREE

.

NameTypeData TypeDescriptionDefault Value
I_HIERARCHY_HEADERImportingTYPE
TREEV_HHDR
Hierarchy Header
I_PROFILE_KEYImportingTYPE
ADTCF_MASTER-PROFILE_KEY
Profile Key - System entered
I_PROGRAM_NAMEImportingTYPE
SY-CPROG
Program name
I_USER_IDImportingTYPE
SYST-UNAME
User Id
C_INPUT_TABLEChangingTYPE
TABLE
Input Table



Exceptions of Method DISPLAY_TREE

NO_SORT_CRITERIA - No sort criteria

Example ABAP coding


DATA: lo_class TYPE REF TO CL_GUI_ALV_TREE_WRAPPER.
DATA: lv_C_INPUT_TABLE TYPE TABLE,
lv_I_HIERARCHY_HEADER TYPE TREEV_HHDR,
lv_I_PROFILE_KEY TYPE ADTCF_MASTER-PROFILE_KEY,
lv_I_PROGRAM_NAME TYPE SY-CPROG,
lv_I_USER_ID TYPE SYST-UNAME,
lv_other TYPE c.

CALL METHOD lo_class=>DISPLAY_TREE(
EXPORTING
I_HIERARCHY_HEADER = lv_I_HIERARCHY_HEADER
I_PROFILE_KEY = lv_I_PROFILE_KEY
I_PROGRAM_NAME = lv_I_PROGRAM_NAME
I_USER_ID = lv_I_USER_ID
CHANGING
C_INPUT_TABLE = lv_C_INPUT_TABLE ).

Links to Related Class(s)

CL_GUI_A...
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!