SAP ABAP Class CL_FDT_DECISION_TREE (FDT: Decision Tree)
Hierarchy
SAP_BASIS (Software Component) SAP Basis Component
   BC-SRV-BR (Application Component) BRFplus - ABAP-Based Business Rules
     SFDT_EXPRESSIONS (Package) BRFplus: Expressions
Meta Relationship - Using
# Relationship type Using Short Description Created on
1 Inheritance (c INHERITING FROM c_ref)  CL_FDT_EXPRESSION FDT: Abstract Expression Class 20051018
2 Interface implementation (CLASS c. INTERFACES i_ref)  IF_FDT_DECISION_TREE FDT: Decision Tree 20051011
Properties
Class CL_FDT_DECISION_TREE  
Short Description FDT: Decision Tree    
Super Class CL_FDT_EXPRESSION FDT: Abstract Expression Class 
Instantiability of a Class 1  Protected 
Final    
General Data
Message Class FDT_EXPRESSIONS    
Program status P  SAP Standard Production Program 
Category 0   
Package SFDT_EXPRESSIONS   BRFplus: Expressions 
Created 20051011   SAP 
Last change 20140121   SAP 
Shared Memory-enabled    
Fixed point arithmetic    
Unicode checks active    
Forward declarations
# Type group / Object type Type Type Description
1 ABAP Type group use (TYPE-POOLS tp)  Type group use (TYPE-POOLS tp)
2 CL_FDT_EXPR_SV Forward declaration class (CLASS c DEFINITION DEFERRED)  Forward declaration class (CLASS c DEFINITION DEFERRED)
3 IF_FDT_DECISION_TREE Forward declaration interface (INTERFACE i DEFINITION DEF...  Forward declaration interface (INTERFACE i DEFINITION DEF...
4 IF_FDT_LEAN_TRACE Forward declaration interface (INTERFACE i DEFINITION DEF...  Forward declaration interface (INTERFACE i DEFINITION DEF...
5 IF_FDT_SEARCH_TREE Forward declaration interface (INTERFACE i DEFINITION DEF...  Forward declaration interface (INTERFACE i DEFINITION DEF...
6 IF_FDT_TYPES Forward declaration interface (INTERFACE i DEFINITION DEF...  Forward declaration interface (INTERFACE i DEFINITION DEF...
Interfaces
# Interface Abstract Final Description Created on
1 IF_FDT_DECISION_TREE FDT: Decision Tree 20051011
Friends
# Friend Modeled only Created on Description
1 CL_FDT_FACTORY 20060906 FDT: Factory
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 GC_EXPR_0220 Constant Private Type reference (TYPE) TABNAME 'FDT_EXPR_0220' Table Name 20070814
2 GC_EXPR_0230 Constant Private Type reference (TYPE) TABNAME 'FDT_EXPR_0230' Table Name 20070814
3 GC_EXPR_0231 Constant Private Type reference (TYPE) TABNAME 'FDT_EXPR_0231' Table Name 20090112
4 GC_ROOT_NODE Constant Private Type reference (TYPE) IF_FDT_SEARCH_TREE=>NODE_ID '0000000001' Natural number 20051018
5 GO_FACTORY Static Attribute Private Object reference (TYPE REF TO) IF_FDT_FACTORY FDT: Factory 20051011
6 MS_BUFFER Instance attribute Private Type reference (TYPE) S_BUFFER Transactional Buffer 20051018
7 MS_BUFFER_DB Instance attribute Private Type reference (TYPE) S_BUFFER Transactional Buffer 20051018
8 MTS_CACHING_EXPR Instance attribute Private Type reference (TYPE) TS_EXPR_CACHE Table of expressions for prechaching 20130606
9 MV_ID Instance attribute Private Attribute reference (LIKE) 20051210
10 MV_MS_BUFFER_DB_LOADED Instance attribute Private Type reference (TYPE) ABAP_BOOL ABAP_TRUE: MS_BUFFER_DB is loaded 20070813
11 MV_MS_BUFFER_LOADED Instance attribute Private Type reference (TYPE) ABAP_BOOL ABAP_TRUE: MS_BUFFER is loaded 20070804
Methods
# Method Level Visibility Method type Description Created on
1 CALC_CACHE_FOR_GEN Instance method Private Method Calculates the cache for the generation 20130606
2 CHECK_NODE_PROPERTIES Instance method Private Method 20090113
3 CLASS_CONSTRUCTOR Static method Public Constructor 20051011
4 CREATE_RESULT_DATA Instance method Private Method 20051018
5 DELETE_SUB_TREE_FROM_BUFFER Static method Private Method Remove whole branch of nodes from buffer 20051019
6 GENERATE_DECISION_TREE_PROCESS Instance method Private Method Generate Case Process 20081218
7 GENERATE_SUB_TREE_PROCESS Instance method Private Method 20081218
8 GET_MAX_NODE_ID Instance method Private Method 20131203
9 LOAD_BUFFER Instance method Private Method Load the buffer 20051018
10 LOAD_BUFFER_DB Instance method Private Method Load the buffer from data base 20051018
11 PARSE_NODE Instance method Private Method Parse Search Tree 20090313
12 PARSE_TREE Instance method Private Method Parse Decision Tree 20090313
13 SAVE_BUFFER_DB Instance method Private Method save the buffer 20051019
14 SET_BUFFER Instance method Private Method set the buffer 20051018
Events
Class CL_FDT_DECISION_TREE has no event.
Types
# Type Visibility Typing Associated Type Description Created on Type Source
1 S_BUFFER Protected See coding 20051018 BEGIN OF s_buffer, s_tree_prop TYPE s_tree_prop, ts_tree_struct TYPE if_fdt_decision_tree~ts_tree_structure, ts_node_prop TYPE ts_node_prop, END OF s_buffer
2 S_EXPR_CACHE Public See coding 20130606 BEGIN OF s_expr_cache, expr_id TYPE if_fdt_types=>id, result_id TYPE if_fdt_types=>id, result_name TYPE string, result_type TYPE if_fdt_types=>element_type, t_call_code type if_fdt_types=>t_source_code, END OF s_expr_cache
3 S_NODE_PROP Public See coding 20051018 BEGIN OF s_node_prop, node TYPE if_fdt_decision_tree~node_id, parent TYPE if_fdt_decision_tree~s_tree_structure-parent, leaf TYPE abap_bool, expression_id TYPE if_fdt_types=>id, s_param_range TYPE cl_Fdt_expr_sv=>s_param_range, s_result_value TYPE cl_Fdt_expr_sv=>s_value, END OF s_node_prop
4 S_TREE_PROP Public See coding 20051018 BEGIN OF s_tree_prop, multiple_match TYPE abap_bool, executes_action type abap_bool, END OF s_tree_prop
5 TS_EXPR_CACHE Public See coding 20130606 TS_EXPR_CACHE TYPE sorted TABLE OF s_expr_cache WITH UNIQUE KEY expr_id
6 TS_NODE_PROP Public See coding 20051018 ts_node_prop TYPE SORTED TABLE OF s_node_prop WITH UNIQUE KEY node
Method Signatures

Method CALC_CACHE_FOR_GEN Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IO_GEN_MNGR Call by reference Object reference (TYPE REF TO) CL_FDT_GENERATION_MANAGER Generation manager 20130606
2 Importing IS_BUFFER Call by reference Type reference (TYPE) S_BUFFER Decision tree buffer 20130606
3 Importing IV_TIMESTAMP Call by reference Type reference (TYPE) TIMESTAMP Generation timestamp 20130606
# Exception Resumable Description Created on
1 CX_FDT_INPUT FDT: Invalid Input 20130610

Method CHECK_NODE_PROPERTIES Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IS_RANGE Call by reference Type reference (TYPE) CL_FDT_EXPR_SV=>S_PARAM_RANGE Implicit Range to iv_node (exclusive to condition) 20090113
2 Importing IS_RESULT Call by reference Type reference (TYPE) CL_FDT_EXPR_SV=>S_VALUE Resulf value assigned to node (exclusive to result ID) 20090113
3 Importing IV_CONDITION Call by reference Type reference (TYPE) IF_FDT_TYPES=>ID ID of condition assigned to iv_node (condition node) 20090113
4 Importing IV_NODE Call by reference Type reference (TYPE) IF_FDT_DECISION_TREE=>NODE_ID Node 20090209
5 Importing IV_RESULT Call by reference Type reference (TYPE) IF_FDT_TYPES=>ID ID of result assigned to iv_node (leaf) 20090113
6 Importing IV_TIMESTAMP Call by reference Type reference (TYPE) IF_FDT_TYPES=>TIMESTAMP Time Stamp (active version) 20090113
7 Importing IV_WEAK Call by reference Type reference (TYPE) ABAP_BOOL ABAP_FALSE ABAP_TRUE: only perform weak checks 20090113
8 Returning RT_MESSAGE Value transfer Type reference (TYPE) IF_FDT_TYPES=>T_MESSAGE Messages 20090113
# Exception Resumable Description Created on
1 CX_FDT FDT: Abstract Exception Class 20090120

Method CLASS_CONSTRUCTOR Signature

Method CLASS_CONSTRUCTOR on class CL_FDT_DECISION_TREE has no parameter.
Method CLASS_CONSTRUCTOR on class CL_FDT_DECISION_TREE has no exception.

Method CREATE_RESULT_DATA Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EO_RESULT Call by reference Object reference (TYPE REF TO) IF_FDT_RESULT FDT: Result 20051018
2 Importing IV_TIMESTAMP Call by reference Type reference (TYPE) IF_FDT_TYPES=>TIMESTAMP 20051018
# Exception Resumable Description Created on
1 CX_FDT_CONFIG FDT: Insufficient Configuration 20051018

Method DELETE_SUB_TREE_FROM_BUFFER Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CS_BUFFER Call by reference Type reference (TYPE) S_BUFFER 20051019
2 Importing IV_PARENT Call by reference Type reference (TYPE) IF_FDT_DECISION_TREE~NODE_ID parent node 20051019

Method DELETE_SUB_TREE_FROM_BUFFER on class CL_FDT_DECISION_TREE has no exception.

Method GENERATE_DECISION_TREE_PROCESS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CTS_USED_CONTEXT_ID Call by reference Type reference (TYPE) IF_FDT_TYPES=>TS_USED_CONTEXT_ID 20081218
2 Exporting ET_SOURCE_CODE Call by reference Type reference (TYPE) IF_FDT_TYPES=>T_SOURCE_CODE 20081218
3 Exporting EV_DEEP_TRACED Call by reference Type reference (TYPE) ABAP_BOOL 20090116
4 Importing IO_GENERATION_MNGR Call by reference Object reference (TYPE REF TO) CL_FDT_GENERATION_MANAGER FDT: Generation of Classes 20081218
5 Importing IV_CREATE_VARIABLE Call by reference Type reference (TYPE) ABAP_BOOL 20081218
6 Importing IV_FUNCTION_ID Call by reference Type reference (TYPE) IF_FDT_TYPES=>ID 20081218
7 Importing IV_TIMESTAMP Call by reference Type reference (TYPE) IF_FDT_TYPES=>TIMESTAMP 20081218
8 Importing IV_VARIABLE_NAME Call by reference Type reference (TYPE) CLIKE 20081218
# Exception Resumable Description Created on
1 CX_FDT_GENERATION FDT: Error in the Generation Process 20081218
2 CX_FDT_INPUT FDT: Invalid Input 20081218

Method GENERATE_SUB_TREE_PROCESS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CTS_USED_CONTEXT_ID Call by reference Type reference (TYPE) IF_FDT_TYPES=>TS_USED_CONTEXT_ID Actually used / required ID's from context in generated code 20081218
2 Exporting ET_SOURCE_CODE Call by reference Type reference (TYPE) IF_FDT_TYPES=>T_SOURCE_CODE Table with Source Code 20081218
3 Importing IO_GENERATION_MNGR Call by reference Object reference (TYPE REF TO) CL_FDT_GENERATION_MANAGER FDT: Generation of Classes 20081218
4 Importing ITS_NODE_PROP Call by reference Type reference (TYPE) TS_NODE_PROP 20090121
5 Importing IT_TREE_STRUC Call by reference Type reference (TYPE) IF_FDT_DECISION_TREE=>TS_TREE_STRUCTURE 20090120
6 Importing IV_CACHE_NAME Call by reference Type reference (TYPE) STRING Cache name 20130606
7 Importing IV_CURRENT_NODE Call by reference Type reference (TYPE) IF_FDT_DECISION_TREE=>NODE_ID FDT: ID of a node in a tree 20081218
8 Importing IV_FUNCTION_ID Call by reference Type reference (TYPE) IF_FDT_TYPES=>ID Universal Unique Identifier 20081218
9 Importing IV_LAST_NODE_NAME Call by reference Type reference (TYPE) STRING 20090115
10 Importing IV_LAST_RESULT_NAME Call by reference Type reference (TYPE) STRING 20090115
11 Importing IV_MATCH_FOUND_NAME Call by reference Type reference (TYPE) STRING 20090115
12 Importing IV_PARENT_NODE Call by reference Type reference (TYPE) IF_FDT_DECISION_TREE=>NODE_ID FDT: ID of a node in a tree 20081218
13 Importing IV_PARENT_RESULT Call by reference Type reference (TYPE) ABAP_BOOL 20081218
14 Importing IV_RESULT_DO_ID Call by reference Type reference (TYPE) IF_FDT_TYPES=>ID Universal Unique Identifier 20090421
15 Importing IV_TIMESTAMP Call by reference Type reference (TYPE) IF_FDT_TYPES=>TIMESTAMP Time Stamp (active version) 20081218
16 Importing IV_VARIABLE_NAME Call by reference Type reference (TYPE) CLIKE 20081218
# Exception Resumable Description Created on
1 CX_FDT_GENERATION FDT: Error in the Generation Process 20090421
2 CX_FDT_INPUT FDT: Invalid Input 20090305

Method GET_MAX_NODE_ID Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IS_BUFFER Call by reference Type reference (TYPE) S_BUFFER 20131203
2 Returning RV_MAX_NODE_ID Value transfer Type reference (TYPE) IF_FDT_DECISION_TREE=>NODE_ID 20131203

Method GET_MAX_NODE_ID on class CL_FDT_DECISION_TREE has no exception.

Method LOAD_BUFFER Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_TIMESTAMP Call by reference Type reference (TYPE) IF_FDT_TYPES=>TIMESTAMP Timestamp of active version 20070811
2 Importing IV_VERSION Call by reference Type reference (TYPE) IF_FDT_TYPES=>VERSION Version 20070804
3 Returning RS_BUFFER Value transfer Type reference (TYPE) S_BUFFER Transactional Data Buffer 20051018
# Exception Resumable Description Created on
1 CX_FDT_INPUT FDT: Invalid Input 20070811

Method LOAD_BUFFER_DB Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_VERSION Call by reference Type reference (TYPE) IF_FDT_TYPES=>VERSION 20060127
2 Returning RS_BUFFER Value transfer Type reference (TYPE) S_BUFFER Transactional Data Buffer 20051018
# Exception Resumable Description Created on
1 CX_FDT_INPUT FDT: Invalid Input 20051018

Method PARSE_NODE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IO_DOCUMENT Call by reference Object reference (TYPE REF TO) IF_IXML_DOCUMENT IF_IXML_DOCUMENT 20090313
2 Importing IO_PARENT Call by reference Object reference (TYPE REF TO) IF_IXML_ELEMENT 20090313
3 Importing IS_BUFFER Call by reference Type reference (TYPE) S_BUFFER 20090313
4 Importing IS_HEADER Call by reference Type reference (TYPE) IF_FDT_LEAN_TRACE=>S_HEADER Trace Header 20090313
5 Importing IS_RECORD Call by reference Type reference (TYPE) IF_FDT_LEAN_TRACE=>S_RECORD Trace Record for Tree Expr. 20090313
6 Importing ITS_RECORD Call by reference Type reference (TYPE) IF_FDT_LEAN_TRACE=>TS_RECORD 20090317
7 Importing ITS_TRUE_PATH Call by reference Type reference (TYPE) IF_FDT_DECISION_TREE=>TS_TREE_STRUCTURE 20090313
8 Importing IT_HEADER Call by reference Type reference (TYPE) IF_FDT_LEAN_TRACE=>T_HEADER Trace Headers 20090313
9 Importing IV_NODE Call by reference Type reference (TYPE) FDT_NODE_ID FDT: ID of a node in a tree 20090313
# Exception Resumable Description Created on
1 CX_FDT_INPUT FDT: Invalid Input 20090313
2 CX_FDT_LEAN_TRACE FDT: System Failure 20090422

Method PARSE_TREE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IO_DOCUMENT Call by reference Object reference (TYPE REF TO) IF_IXML_DOCUMENT IF_IXML_DOCUMENT 20090313
2 Importing IO_PARENT Call by reference Object reference (TYPE REF TO) IF_IXML_ELEMENT 20090313
3 Importing IS_BUFFER Call by reference Type reference (TYPE) S_BUFFER 20090313
4 Importing IS_HEADER Call by reference Type reference (TYPE) IF_FDT_LEAN_TRACE=>S_HEADER Trace Header for Tree Expr 20090313
5 Importing IS_RECORD Call by reference Type reference (TYPE) IF_FDT_LEAN_TRACE=>S_RECORD Trace Record for Tree Expr 20090313
6 Importing ITS_RECORD Call by reference Type reference (TYPE) IF_FDT_LEAN_TRACE=>TS_RECORD 20090317
7 Importing IT_HEADER Call by reference Type reference (TYPE) IF_FDT_LEAN_TRACE=>T_HEADER Trace Headers for complete traces 20090313
# Exception Resumable Description Created on
1 CX_FDT_INPUT FDT: Invalid Input 20090313
2 CX_FDT_LEAN_TRACE FDT: System Failure 20090422

Method SAVE_BUFFER_DB Signature

Method SAVE_BUFFER_DB on class CL_FDT_DECISION_TREE has no parameter.
Method SAVE_BUFFER_DB on class CL_FDT_DECISION_TREE has no exception.

Method SET_BUFFER Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IS_BUFFER Call by reference Type reference (TYPE) S_BUFFER Transactional Data Buffer 20051018
2 Importing IV_CHECK_NODE_PROP Call by reference Type reference (TYPE) ABAP_BOOL ABAP_FALSE 20051018
3 Importing IV_CHECK_STRUCT Call by reference Type reference (TYPE) ABAP_BOOL ABAP_FALSE 20051018
4 Importing IV_CHECK_TREE_PROP Call by reference Type reference (TYPE) ABAP_BOOL ABAP_FALSE 20051018
# Exception Resumable Description Created on
1 CX_FDT_INPUT FDT: Invalid Input 20051018
History
Last changed by/on SAP  20140121 
SAP Release Created in 710