SAP AFX_TREEDEF Hierarchy Tree Definition Table

Overview

AFX_TREEDEF is a standard SAP S/4HANA table that stores Hierarchy Tree Definition data. There are total 12 fields in the AFX_TREEDEF table. The following is a list of the fields that make up this table. Key fields are marked in blue.

The table AFX_TREEDEF belongs to Generating, Monitoring for Mass Data Archiving Solutions (CA-GTF-TS-GMA) module and is located in the package Archiving Framework: Generator (AFX_GENERATOR).

In addition, following links provide an overview of foreign key relationships, if any, that link AFX_TREEDEF to other SAP tables and standard CDS views available based on AFX_TREEDEF table in S/4HANA 2020.

Techincal Settings of AFX_TREEDEF

Below are technical details of the table AFX_TREEDEF

  • Buffering not allowed
  • No buffering
  • Storage type is Column Store

List of AFX_TREEDEF Fields

The following table gives you an overview of the fields available in AFX_TREEDEF

FieldDescriptionData ElementCheck TableData TypeLength
NODENode in Hierarchy TreeAFX_DTE_NODENUMC5
PARENTReference to Preceding Node in Hierarchy TreeAFX_DTE_PARENTNODENUMC5
DOCUMENTATIONDocumentation ObjectDOKU_OBJCHAR60
TCODETransaction CodeTCODETSTCCHAR20
REPIDABAP Program NamePROGNAMETRDIRCHAR40
FUNCNAMEName of Function ModuleRS38L_FNAMTFDIRCHAR30
FUNCNAME_UNDOName of Function ModuleRS38L_FNAM*CHAR30
IS_OBLIGATORYNode must have an executable functionAFX_DTE_EXEC_IS_OBLIGATORYCHAR1
NO_PRED_CHECKDeactivate Check for Processing of Predecessor NodeAFX_DTE_NO_PRED_CHECKCHAR1
STATUS_MANUALNode Status Set Manually OnlineAFX_DTE_STATUS_MANUALCHAR1
POST_EDIT_TASKThis task is a postprocessing stepAFX_DTE_POST_EDIT_TASKCHAR1
NAV_POINTNavigation Point in ABAP SourceAFX_DTE_NAV_POINTCHAR72

Foreign Key Relationships

A foreign key field is a table field that is allocated to a check table and becomes part of the table's foreign key. The following table gives you an overview of the foreign keys for AFX_TREEDEF

Table NameFieldCardinalityCheck Table
AFX_TREEDEFFUNCNAME1: CNTFDIR
AFX_TREEDEFREPID1: CNTRDIR
AFX_TREEDEFTCODE1: CNTSTC

Other References