SAP ABAP Class CL_FDT_FORMULA_ELEMENT_FACTORY (Factory for formula elements for processing)
Hierarchy
SAP_BASIS (Software Component) SAP Basis Component
   BC-SRV-BR (Application Component) BRFplus - ABAP-Based Business Rules
     SFDT_EXPRESSIONS (Package) BRFplus: Expressions
Properties
Class CL_FDT_FORMULA_ELEMENT_FACTORY  
Short Description Factory for formula elements for processing    
Super Class    
Instantiability of a Class 2  Public 
Final    
General Data
Message Class    
Program status     
Category 0   
Package SFDT_EXPRESSIONS   BRFplus: Expressions 
Created 20070108   SAP 
Last change 20130531   SAP 
Shared Memory-enabled    
Fixed point arithmetic    
Unicode checks active    
Forward declarations
# Type group / Object type Type Type Description
1 IF_FDT_FORMULA Forward declaration interface (INTERFACE i DEFINITION DEF...  Forward declaration interface (INTERFACE i DEFINITION DEF...
2 IF_FDT_TYPES Forward declaration interface (INTERFACE i DEFINITION DEF...  Forward declaration interface (INTERFACE i DEFINITION DEF...
Interfaces
Class CL_FDT_FORMULA_ELEMENT_FACTORY has no interface implemented.
Friends
Class CL_FDT_FORMULA_ELEMENT_FACTORY has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 GC_BUILTIN_CLASS Constant Public Type reference (TYPE) SEOCLSNAME 'CL_FOEV_BUILTINS' Class for built in formula functionals 20070108
2 GC_FORMULA_FUNCTIONAL_CLASS Constant Public Type reference (TYPE) SEOCLSNAME 'CL_FDT_FORMULA_FUNCTIONAL' class for built in formula functionals 20110712
3 GC_TOKEN_ABS Constant Public Type reference (TYPE) STRING 'ABS' 20070108
4 GC_TOKEN_AND Constant Public Type reference (TYPE) STRING 'AND' 20070108
5 GC_TOKEN_CONCATENATE Constant Public Type reference (TYPE) STRING 'CONCATENATE' 20120621
6 GC_TOKEN_CONCATENATE_STRUCTURE Constant Public Type reference (TYPE) STRING 'CONCATENATE_STRUCTURE' 20121010
7 GC_TOKEN_CONCATENATE_TABLE Constant Public Type reference (TYPE) STRING 'CONCATENATE_TABLE' 20121010
8 GC_TOKEN_CONCAT_OP Constant Public Type reference (TYPE) STRING '&' 20120621
9 GC_TOKEN_DIVIDE Constant Public Type reference (TYPE) STRING '/' 20070108
10 GC_TOKEN_FRAC Constant Public Type reference (TYPE) STRING 'FRAC' 20090422
11 GC_TOKEN_IF Constant Public Type reference (TYPE) STRING 'IF' 20070108
12 GC_TOKEN_IS_INITIAL Constant Public Type reference (TYPE) STRING 'IS_INITIAL' 20070108
13 GC_TOKEN_MAX Constant Public Type reference (TYPE) STRING 'MAX' 20090507
14 GC_TOKEN_MIN Constant Public Type reference (TYPE) STRING 'MIN' 20090507
15 GC_TOKEN_MINUS Constant Public Type reference (TYPE) STRING '-' 20070108
16 GC_TOKEN_MULTIPLY Constant Public Type reference (TYPE) STRING '*' 20070108
17 GC_TOKEN_NOT Constant Public Type reference (TYPE) STRING 'NOT' 20070108
18 GC_TOKEN_OR Constant Public Type reference (TYPE) STRING 'OR' 20070108
19 GC_TOKEN_PLUS Constant Public Type reference (TYPE) STRING '+' 20070108
20 GC_TOKEN_POWER Constant Public Type reference (TYPE) STRING '^' 20070108
21 GC_TOKEN_ROUND Constant Public Type reference (TYPE) STRING 'ROUND' 20090817
22 GC_TOKEN_TO_NUMBER Constant Public Type reference (TYPE) STRING 'TONUMBER' 20070108
23 GC_TOKEN_TO_STRING Constant Public Type reference (TYPE) STRING 'TOSTRING' 20120620
24 GC_TOKEN_TRUNC Constant Public Type reference (TYPE) STRING 'TRUNC' 20090422
25 MT_ARGUMENT Instance attribute Public Type reference (TYPE) TY_LT_FORMULA_ELEMENT Arguments of functional elements 20070108
26 MV_DATA_OBJECT_TYPE Instance attribute Public Type reference (TYPE) IF_FDT_TYPES=>DATA_OBJECT_TYPE Data object type of the result of this element 20070108
27 MV_ELEMENT_TYPE Instance attribute Public Type reference (TYPE) IF_FDT_TYPES=>ELEMENT_TYPE Element type of the result of this element 20070108
28 MV_TOKEN Instance attribute Public Type reference (TYPE) STRING Formula token / element 20070108
29 MV_TOKEN_TYPE Instance attribute Public Type reference (TYPE) FDT_FORMULA_TOKEN_TYPE Type of formula token / element 20070108
Methods
# Method Level Visibility Method type Description Created on
1 CREATE_ELEMENT Static method Private Method Create one element of the formula tree, called recursively 20070108
2 GET_ELEMENT_INSTANCE Static method Public Method Get instance for a formula element including all children 20070108
3 _GET_ELEMENT_INSTANCE Static method Private Method Get instance for a single formula element 20070108
Events
Class CL_FDT_FORMULA_ELEMENT_FACTORY has no event.
Types
# Type Visibility Typing Associated Type Description Created on Type Source
1 TY_LT_FORMULA_ELEMENT Public See coding 20070108 ty_lt_formula_element TYPE STANDARD TABLE OF REF TO cl_fdt_formula_element
2 TY_S_TOKEN Public See coding Formula token / element with all info for processing 20070108 BEGIN OF ty_s_token. INCLUDE TYPE if_fdt_formula=>s_token. TYPES: psort TYPE sfbepsort, arity TYPE sfbearity, data_object_type TYPE if_fdt_types=>data_object_type, element_type TYPE if_fdt_types=>element_type, class TYPE seoclsname, method TYPE seocmpname. TYPES: END OF ty_s_token
3 TY_T_TOKEN Public See coding Table of formula tokens / elements 20070108 ty_t_token TYPE SORTED TABLE OF ty_s_token WITH UNIQUE KEY psort
Method Signatures

Method CREATE_ELEMENT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CV_INDEX Call by reference Type reference (TYPE) I Index in table IT_TOKEN 20070108
2 Exporting EO_ELEMENT Call by reference Object reference (TYPE REF TO) CL_FDT_FORMULA_ELEMENT Element of a formula for processing 20070108
3 Importing IT_TOKEN Call by reference Type reference (TYPE) TY_T_TOKEN Table of formula tokens / elements 20070108

Method CREATE_ELEMENT on class CL_FDT_FORMULA_ELEMENT_FACTORY has no exception.

Method GET_ELEMENT_INSTANCE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IT_TOKEN Call by reference Type reference (TYPE) TY_T_TOKEN Table of formula tokens / elements 20070108
2 Returning RO_FORMULA_ELEMENT Value transfer Object reference (TYPE REF TO) CL_FDT_FORMULA_ELEMENT Element of a formula for processing 20070108

Method GET_ELEMENT_INSTANCE on class CL_FDT_FORMULA_ELEMENT_FACTORY has no exception.

Method _GET_ELEMENT_INSTANCE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IS_TOKEN Call by reference Type reference (TYPE) TY_S_TOKEN Formula element / token to be represented by this instance 20070108
2 Returning RO_FORMULA_ELEMENT Value transfer Object reference (TYPE REF TO) CL_FDT_FORMULA_ELEMENT Element of a formula for processing 20070108

Method _GET_ELEMENT_INSTANCE on class CL_FDT_FORMULA_ELEMENT_FACTORY has no exception.
History
Last changed by/on SAP  20130531 
SAP Release Created in 710