SAP CL_ABAP_SYNTAX_TREE OO Class - Syntax Tree of ABAP Program









CL_ABAP_SYNTAX_TREE is a standard SAP object class available within R/3 SAP systems depending on your version and release level. You can view/maintain the class details by entering its name into the relevant SAP transactions such as SE24, SE80 or even SE84. Below is the documentation available for class CL_ABAP_SYNTAX_TREE including details of:

  • Interface class implementations
  • Inheritance details
  • Methods defined within class ( including link to full details )
  • Attributes ( including initial values )
  • Class Events



Method list of CL_ABAP_SYNTAX_TREE SAP class


A method is a coding block that performs a certain procedure (i.e. ABAP functionality) on an object within the overall SAP class. In simple terms if the object is an SAP database table a method could be the procedure to add a record or to delete a record. If you are new to OO in many respects, the implementation of a method is similar to a function module and can be called in a very similar way using CALL METHOD. Instead of "CALL FUNCTION", Methods are referenced using the following syntax: CALL METHOD =>methodname EXPORTING/IMPORTING...


Method NameDescriptionVisability
BUILDCreate Syntax TreePrivate
CALL METHOD cl_abap_syntax_tree=>BUILD...more details

CLASS_CONSTRUCTORClass ConstructorPublic
CALL METHOD cl_abap_syntax_tree=>CLASS_CONSTRUCTOR...more details

CREATECreate Syntax TreePublic
CALL METHOD cl_abap_syntax_tree=>CREATE...more details

DESTRUCTORDestructorPublic
CALL METHOD cl_abap_syntax_tree=>DESTRUCTOR...more details

GET_CATEGORYGet AST name indexes for categoryPrivate
CALL METHOD cl_abap_syntax_tree=>GET_CATEGORY...more details

GET_NAME_FILTERGet AST name index intervalsPublic
CALL METHOD cl_abap_syntax_tree=>GET_NAME_FILTER...more details

GET_NODESFind NodesPublic
CALL METHOD cl_abap_syntax_tree=>GET_NODES...more details

INITIALIZE_CLASSInitializes the kernel implementationPrivate
CALL METHOD cl_abap_syntax_tree=>INITIALIZE_CLASS...more details

TO_XMLSerialize Syntax Tree as XMLPublic
CALL METHOD cl_abap_syntax_tree=>TO_XML...more details

TO_XML_WITH_SRCSerialize Syntax Tree with Source CodePublic
CALL METHOD cl_abap_syntax_tree=>TO_XML_WITH_SRC...more details



CL_ABAP_SYNTAX_TREE attributes

List of attributes within class CL_ABAP_CHAR_UTILITIES. These can be referenced using the following syntax CL_ABAP_CHAR_UTILITIES=>. Although depending on where you are inserting the ABAP code you do need to check if the attribute is public or private.

NameLevelDescriptionInitial ValueTypeVisability
AX_ANCESTORConstantReverse Axis: Real Parent Nodes5LIKE
T_AXIS
Public
AX_ANCESTOR_OR_SELFConstantReverse Axis: Parent Node6LIKE
T_AXIS
Public
AX_CHILDConstantForwards Axis: Direct Subnodes1LIKE
T_AXIS
Public
AX_DESCENDANTConstantForwards Axis: Real Parent Nodes2LIKE
T_AXIS
Public
AX_DESCENDANT_OR_SELFConstantForwards Axis: Subnodes3LIKE
T_AXIS
Public
AX_FOLLOWINGConstantForwards Axis: Subsequent Nodes8LIKE
T_AXIS
Public
AX_FOLLOWING_SIBLINGConstantForwards Axis: Subsequent Nodes on Same Level7LIKE
T_AXIS
Public
AX_PARENTConstantReverse Axis: Direct Parent Node4LIKE
T_AXIS
Public
AX_PRECEDINGConstantReverse Axis: Predecessor Nodes10LIKE
T_AXIS
Public
AX_PRECEDING_SIBLINGConstantReverse Axis: Predecessor Nodes on Same Level9LIKE
T_AXIS
Public
CT_CONTROL_FLOWConstantNote Category: Control Flow'F'LIKE
T_CATEGORY
Public
CT_INVOCATIONConstantNode Category: Call'I'LIKE
T_CATEGORY
Public
FM_EXCLUDE_SUBConstantFilter Mode (Only for Forwards Axes): Exclude Subtree3LIKE
T_FILTERMODE
Public
FM_INCLUDE_SUBConstantFilter Mode (Only for Forwards Axes): Include Subtree2LIKE
T_FILTERMODE
Public
FM_RECURSIVELYConstantFilter Mode: Apply Recursively1LIKE
T_FILTERMODE
Public
FO_ANDConstantFilter Operator: AND'A'LIKE
T_LOGICAL_OP
Public
FO_ORConstantFilter Operator: OR'O'LIKE
T_LOGICAL_OP
Public
G_ASTNAMESStatic AttributeNames in TreeLIKE
T_ASTNAMETAB
Public
M_C_PTRInstance AttributeKernel PointerLIKE
%_C_POINTER
Private
M_DIAGINFOInstance AttributeDiagnostic InformationLIKE
T_DIAGINFO
Public
M_LEVEL_NODESInstance AttributeNodes for INCLUDE and Macro CallsLIKE
ABAP_BOOL
Public
M_NODE_CNTInstance AttributeNumber of Nodes in TreeLIKE
I
Public
M_STMT_INDEX_FROMInstance AttributeIndex of First StatementLIKE
I
Public
M_STMT_INDEX_TOInstance AttributeIndex of Last StatementLIKE
I
Public
RP_DIRTYConstantGrammar rule: Not covered or not covered in full48LIKE
T_RULEPROP
Public
RP_DIRTY_PARTConstantGrammar rule: Not covered in full16LIKE
T_RULEPROP
Public
RP_DIRTY_UNCOVEREDConstantGrammar rule: Not covered32LIKE
T_RULEPROP
Public
RP_ERRONEOUSConstantError in AST node255LIKE
T_RULEPROP
Public
RP_IDENTConstantGrammar rule: Name1LIKE
T_RULEPROP
Public
RP_NONEConstantGrammar rule: No propertyIS INITIALLIKE
T_RULEPROP
Public
RP_OBSOLETEConstantGrammar rule: Obsolete2LIKE
T_RULEPROP
Public
RP_PRIVATEConstantGrammar rule: Private4LIKE
T_RULEPROP
Public
RP_STATEMENTConstantGrammar rule: Statement8LIKE
T_RULEPROP
Public
RP_WRITE_ACCESSConstantGrammar rule: Write128LIKE
T_RULEPROP
Public




CL_ABAP_SYNTAX_TREE types

T_ASTNAME - AST Name <-> Index Assignment
T_ASTNAMETAB - AST Names <-> Indexes Assignment Table
T_ASTSRC - Source/AST Pair
T_ASTSRCTAB - Table of Source/AST Pairs
T_AXIS - Navigation Axis (AX_* Constants)
T_CATEGORIES - AST Categories (One or More CT_*)
T_CATEGORY - AST Node Category
T_CATEGORY_FILTER - AST Category Filter
T_CATEGORY_MEMBERS - AST name indexes in a category
T_DIAGINFO - Diagnostic Information
T_FILTERMODE - Filter Mode (FM_* Constants)
T_LOGICAL_OP - Logical Operator in Filter
T_NAMEINTVL - Interval of AST Name Indexes
T_NAMERANGE - Range Table of AST Names
T_NAME_FILTER - AST Name Index Filter
T_NODEINFO - AST Node Information
T_NODEINFOTAB - Table of AST Node Information
T_RULEPROP - Grammar Rule Property (RP_* Constants)
T_RULEPROP_FILTER - Rule Property Filter

Links to Related Class(s)

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