ADD_NEXT_LEVEL_HIERARCHY SAP Method Add the next level of the hierarchy









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

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


Parameters of Method ADD_NEXT_LEVEL_HIERARCHY

.

NameTypeData TypeDescriptionDefault Value
IT_CHILD_ZONESImportingTYPE
TY_T_CHILD_ZONES
IT_GUID_MAP_PARENTSImportingTYPE
TY_T_GUID_MAP
IV_ZONE_HIERARCHY_IDImportingTYPE
/SAPAPO/RELID
Hierarchy ID
CT_ZONE_PARENTSChangingTYPE
/SCTM/IF_GEOGRAPHY_ACCESS_SQL=>TY_T_ZONE_PARENTS
CV_RESULT_LEVELChangingTYPE
INT1
Dummy for B20 int1 (Local Everywhere)



Exceptions of Method ADD_NEXT_LEVEL_HIERARCHY

This method does not have any exceptions

Example ABAP coding


DATA: lo_class TYPE REF TO /SCTM/CL_GEOGRAPHY_ACCESS_SQL.
DATA: lv_CT_ZONE_PARENTS TYPE /SCTM/IF_GEOGRAPHY_ACCESS_SQL=>TY_T_ZONE_PARENTS,
lv_CV_RESULT_LEVEL TYPE INT1,
lv_IT_CHILD_ZONES TYPE TY_T_CHILD_ZONES,
lv_IT_GUID_MAP_PARENTS TYPE TY_T_GUID_MAP,
lv_IV_ZONE_HIERARCHY_ID TYPE /SAPAPO/RELID,
lv_other TYPE c.

CALL METHOD lo_class=>ADD_NEXT_LEVEL_HIERARCHY(
EXPORTING
IT_CHILD_ZONES = lv_IT_CHILD_ZONES
IT_GUID_MAP_PARENTS = lv_IT_GUID_MAP_PARENTS
IV_ZONE_HIERARCHY_ID = lv_IV_ZONE_HIERARCHY_ID
CHANGING
CT_ZONE_PARENTS = lv_CT_ZONE_PARENTS
CV_RESULT_LEVEL = lv_CV_RESULT_LEVEL ).

Links to Related Class(s)

/SCTM/CL...
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!