SAP ABAP Class CL_FDT_FORMULA_PARSER (FDT: Formula Parser Class)
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_PARSER  
Short Description FDT: Formula Parser Class    
Super Class    
Instantiability of a Class 2  Public 
Final    
General Data
Message Class    
Program status     
Category 0   
Package SFDT_EXPRESSIONS   BRFplus: Expressions 
Created 20110504   SAP 
Last change 20130531   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_FORMULA_ELEMENT Forward declaration class (CLASS c DEFINITION DEFERRED)  Forward declaration class (CLASS c DEFINITION DEFERRED)
3 CL_FDT_TOKENIZER Forward declaration class (CLASS c DEFINITION DEFERRED)  Forward declaration class (CLASS c DEFINITION DEFERRED)
4 IF_FDT_CONSTANTS Forward declaration interface (INTERFACE i DEFINITION DEF...  Forward declaration interface (INTERFACE i DEFINITION DEF...
5 IF_FDT_FORMULA 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
Class CL_FDT_FORMULA_PARSER has no interface implemented.
Friends
Class CL_FDT_FORMULA_PARSER has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 GC_COMMA Constant Private Type reference (TYPE) STRING 'A,' 20110505
2 GC_DELIM_COMMENT Constant Private Type reference (TYPE) CHAR1 '"' 20110505
3 GC_DELIM_STRING Constant Private Type reference (TYPE) CHAR1 '''' 20110505
4 GC_DIMENSION_CONFLICT Constant Public Type reference (TYPE) STRING 'DIMEN_CONFLICT' 20110928
5 GC_ERROR_PURPOSE_FOLLOW_SYM Constant Private Type reference (TYPE) STRING 'FOLLOW_SET' 20110920
6 GC_ERROR_PURPOSE_POST_PARSING Constant Private Type reference (TYPE) STRING 'POST_PARSING' 20110920
7 GC_ESCAPE_QUOTE Constant Private Type reference (TYPE) CHAR2 '''''' 20110505
8 GC_MAX_LEN_OF_SYMBOL Static Attribute Private Type reference (TYPE) I 61 20110505
9 GC_QUAN_DIV_RUNTIME_DEP Constant Public Type reference (TYPE) STRING 'DIV_RES_RNTIME_DEPENDENT' 20111027
10 GC_REGEX_BRACKETS Constant Private Type reference (TYPE) STRING 'A[()]' 20110505
11 GC_REGEX_COMMA Constant Private Type reference (TYPE) STRING 'A,' 20110505
12 GC_REGEX_COMMENT Static Attribute Private Type reference (TYPE) STRING '' 20110505
13 GC_REGEX_CONST_AMOUNT1 Static Attribute Private Type reference (TYPE) STRING '' 20120710
14 GC_REGEX_CONST_AMOUNT2 Static Attribute Private Type reference (TYPE) STRING '' 20120710
15 GC_REGEX_CONST_BOOLEAN Constant Private Type reference (TYPE) STRING 'A(''''{FDT_BOOLEAN}|''X''{FDT_BOOLEAN})' 20110505
16 GC_REGEX_CONST_CURRENCY Constant Private Type reference (TYPE) STRING 'A''[A-Z]{1,5}''{FDT_CURRENCY}' 20110505
17 GC_REGEX_CONST_NUM1 Constant Private Type reference (TYPE) STRING 'A(([0-9]+([,.][0-9]+)?([,.][0-9]+)?(E[+-]?[0-9]+)?|[0-9]+))>(-)?' 20120710
18 GC_REGEX_CONST_NUM2 Constant Private Type reference (TYPE) STRING 'A((-)?([0-9]+([,.][0-9]+)?([,.][0-9]+)?(E[+-]?[0-9]+)?|[0-9]+))>' 20120710
19 GC_REGEX_CONST_QUANTITY1 Static Attribute Private Type reference (TYPE) STRING '' 20120710
20 GC_REGEX_CONST_QUANTITY2 Static Attribute Private Type reference (TYPE) STRING '' 20120710
21 GC_REGEX_CONST_STRING Static Attribute Private Type reference (TYPE) STRING '' 20110505
22 GC_REGEX_CONST_UNIT Constant Private Type reference (TYPE) STRING 'A''[A-Z0-9]{1,5}''{FDT_UNIT}' 20110505
23 GC_REGEX_FUNCTIONAL Constant Private Type reference (TYPE) STRING 'A[A-Za-z][A-Za-z0-9_]*' 20110505
24 GC_REGEX_GUID Constant Private Type reference (TYPE) STRING 'A[0-9A-F]{32}>' 20110505
25 GC_REGEX_LINEFEED Static Attribute Private Type reference (TYPE) STRING '' 20110505
26 GC_REGEX_OPERATOR Constant Private Type reference (TYPE) STRING 'A([+-*/&^<>=]|[<>]=|<>)' 20110505
27 GC_REGEX_SPACES Constant Private Type reference (TYPE) STRING 'A[ ]+' 20110505
28 GC_START_SYMBOL Constant Public Type reference (TYPE) CHAR1 'F' 20110504
29 GC_TOKEN_BRACKET_LEFT Constant Public Type reference (TYPE) CHAR2 'BL' 20110504
30 GC_TOKEN_BRACKET_RIGHT Constant Public Type reference (TYPE) CHAR2 'BR' 20110504
31 GC_TOKEN_SEMANTIC_BRACKET Constant Private Type reference (TYPE) CHAR30 'brackets' 30 Characters 20120216
32 GC_TOKEN_SEMANTIC_ELEMENTARY Constant Private Type reference (TYPE) CHAR30 'elementary' 30 Characters 20120216
33 GC_TOKEN_SEMANTIC_FUNCTIONAL Constant Private Type reference (TYPE) CHAR30 'functional' Character Field Length = 10 20120216
34 GC_TOKEN_SEMANTIC_PARAM Constant Private Type reference (TYPE) CHAR30 'param' 30 Characters 20120216
35 GT_FOLLOW_SETS Static Attribute Public Type reference (TYPE) T_FOLLOW_SET 20110505
36 GT_OPERATOR_PRIO Static Attribute Public Type reference (TYPE) T_OPERATOR_PRIORITIES 20110505
37 GT_PRODUCTIONS Static Attribute Public Type reference (TYPE) T_PRODUCTIONS 20110505
38 MT_FUNCTIONAL_DEF Instance attribute Private Type reference (TYPE) IF_FDT_FORMULA=>T_FUNCTIONAL_DEF Functional Definitions (formula function) 20110510
39 MT_TYPE_ID_BUFFER Instance attribute Private Type reference (TYPE) T_TYPE_ID_BUFFER 20110509
40 MV_FORMULA_ID Instance attribute Private Type reference (TYPE) IF_FDT_TYPES=>ID Formula ID 20110510
Methods
# Method Level Visibility Method type Description Created on
1 BUILD_FORMULA_TAB Instance method Private Method Build formula table and check types when reducing symbols 20110510
2 CHECK_ADDITION Instance method Private Method Checks compatibility of operands in addition/subtraction 20110509
3 CHECK_COMPARISON Instance method Private Method Checks compatibility of operands in comparison 20110509
4 CHECK_DIVISION Instance method Private Method Checks compatibility of operands in division 20110509
5 CHECK_ELEMENTARY_OPD Instance method Private Method Get type information on elementary token 20110512
6 CHECK_EXPONENT Instance method Private Method Checks compatibility of operands in power 20110509
7 CHECK_FOLLOW_SET Instance method Private Method Checks whether next symbol is contained in follow set 20110504
8 CHECK_FUNCTIONAL Instance method Private Method Checks correctness of functional call 20110512
9 CHECK_INFIX_OP Instance method Private Method Get type information on a binary operator 20110512
10 CHECK_MULTIPLICATION Instance method Private Method Checks compatibility of operands in multiplication 20110509
11 CHECK_POST_PARSING Instance method Private Method Checks if parsing is successful 20110509
12 CONSTRUCTOR Instance method Public Constructor Constructor 20110504
13 FIND_REGEX Instance method Private Method Finds regex match and appends it to the match table 20110505
14 GET_LONGEST_MATCH Instance method Private Method Get the longest regex match starting at the parameter string 20110505
15 GET_OPERATOR_TEXT Instance method Private Method Get text for operators ( '+', '-', etc.. ) 20110916
16 GET_PARAM_INDEX Instance method Private Method Needed during REVERSE_PSORT for finding a parameter in table 20110509
17 GET_TABLE_LINE_PROPERTIES Instance method Private Method Get table line properties 20120216
18 GET_TEXT_FOR_SYMBOL Instance method Private Method Creates a string describing expected symbols in case of err 20110510
19 GET_TYPE_INSTANCE Instance method Private Method Get data object instance 20110509
20 GET_TYPE_TEXT Instance method Private Method Converts data object type to internal formula repr 20110614
21 IS_COMPATIBLE_TO_DDIC_TYPE Instance method Private Method Checks consistency with ddic type 20110510
22 IS_REDUCE_ALLOWED Instance method Private Method Checks whether stack can be reduced,considers operator prios 20110505
23 IS_START_SYMBOL_ON_STACK Instance method Private Method Determines whether only the start symbol is on the stack 20110505
24 IS_TABLE_UNSTRUCTURED Instance method Private Method Checks if table is unstructured 20110510
25 LOAD_HELPER Instance method Private Method Loads grammer productions, follow sets 20110505
26 PARSE Instance method Public Method Parse table of tokens 20110505
27 PARSE_INTERNAL Instance method Private Method Method for parsing formula with token table / formula string 20110505
28 REDUCE_STACK Instance method Private Method Reduces the stack with help of grammar rules (productions) 20110504
29 REVERSE_PSORT Instance method Private Method Builds the psort so that the rpn (upn) is created 20110504
30 SHIFT_ONTO_STACK Instance method Private Method Shifts a token onto the stack 20110504
31 TOKENIZE_STRING Instance method Private Method Tokenize Formula string into table of tokens 20110505
32 TOKEN_TO_GRAMMAR_SYMBOL Instance method Private Method Returns the grammar symbol on position pos from token table 20110504
33 _CHECK_ERROR_SEMANTIC Instance method Private Method Returns error messages based on syntax checks 20110804
34 _CHECK_FUNCTIONAL_INTERNAL Instance method Private Method Check for BRF+ specific functions 20110613
35 _CHECK_TABLE_FUNCTIONAL Instance method Private Method Check consistency of table functionals in BRFplus Standard 20120809
Events
Class CL_FDT_FORMULA_PARSER has no event.
Types
# Type Visibility Typing Associated Type Description Created on Type Source
1 ERROR_PURPOSE Private Type reference (TYPE) STRING 20110920
2 GRAMMAR_SYMBOL Public See coding 20110505 grammar_symbol TYPE c LENGTH 10
3 PRODUCTION_RIGHT_SIDE Public See coding 20110505 production_right_side TYPE c LENGTH 25
4 S_FOLLOW_SET Public See coding 20110505 BEGIN OF s_follow_set, symbol TYPE grammar_symbol, follow_set TYPE string, END OF s_follow_set
5 S_OPERATOR_PRIORITY Public See coding 20110505 BEGIN OF s_operator_priority, operator TYPE char2, prio TYPE i, associativity TYPE char5, left_operand TYPE grammar_symbol, "grammer symbol that is left oprand of the operator in grammar (needed for priority check) END OF s_operator_priority
6 S_PROC_TOKEN Public See coding 20110609 BEGIN OF s_proc_token. INCLUDE TYPE cl_fdt_formula_element=>ty_s_token. TYPES: line TYPE fdt_expr_1401s-line. TYPES: END OF s_proc_token
7 S_PRODUCTION Public See coding 20110505 BEGIN OF s_production, left_side TYPE grammar_symbol, right_side_reversed TYPE production_right_side, right_side_symbol_count TYPE i, right_side_char_count TYPE i, semantic_action TYPE c LENGTH 10, "semantic action executed when using this production for reduce END OF s_production
8 S_REGEX_MATCH Private See coding 20110505 BEGIN OF s_regex_match, token_type TYPE fdt_formula_token_type, token TYPE string, string_from TYPE i, string_to TYPE i, match_len TYPE i, prio TYPE i, END OF s_regex_match
9 S_STACK Public See coding 20110505 BEGIN OF s_stack, grammar_symbol TYPE grammar_symbol, token TYPE string, token_semantic TYPE c LENGTH 10, add_info TYPE string, line TYPE i, string_from TYPE i, string_to TYPE i, data_object_type TYPE if_fdt_types=>data_object_type, element_type TYPE if_fdt_types=>element_type, generic TYPE abap_bool, END OF s_stack
10 S_TOKEN Public See coding 20110505 BEGIN OF s_token, token_type TYPE fdt_formula_token_type, token TYPE string, string_from TYPE i, string_to TYPE i, add_info TYPE string, END OF s_token
11 S_TYPE_ID_BUFFER Private See coding 20110509 begin of s_type_id_buffer, data_object_type type if_fdt_types=>data_object_type, element_type type fdt_expr_1401s-type, id type if_fdt_types=>id, end of s_type_id_buffer
12 T_FOLLOW_SET Public See coding 20110505 t_follow_set TYPE STANDARD TABLE OF s_follow_set WITH KEY symbol
13 T_OPERATOR_PRIORITIES Public See coding 20110505 t_operator_priorities TYPE STANDARD TABLE OF s_operator_priority WITH KEY operator
14 T_PROC_TOKEN Public See coding 20110609 t_proc_token TYPE STANDARD TABLE OF s_proc_token WITH NON-UNIQUE DEFAULT KEY
15 T_PRODUCTIONS Public See coding 20110505 t_productions TYPE STANDARD TABLE OF s_production WITH DEFAULT KEY
16 T_REGEX_MATCH Private See coding 20110505 t_regex_match TYPE STANDARD TABLE OF s_regex_match WITH DEFAULT KEY
17 T_STACK Public See coding 20110505 t_stack TYPE STANDARD TABLE OF s_stack WITH DEFAULT KEY
18 T_TOKEN Public See coding 20110505 t_token TYPE STANDARD TABLE OF s_token WITH DEFAULT KEY
19 T_TYPE_ID_BUFFER Private See coding 20110509 t_type_id_buffer type standard table of s_type_id_buffer with key data_object_type element_type
Method Signatures

Method BUILD_FORMULA_TAB Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_FORMULA Call by reference Type reference (TYPE) T_PROC_TOKEN Table of formula tokens / elements 20110510
2 Changing CT_PARAMETER_STACK Call by reference Type reference (TYPE) T_STACK 20110510
3 Changing CT_STACK Call by reference Type reference (TYPE) T_STACK 20110510
4 Changing CV_CURRENT_PSORT_NUM Call by reference Type reference (TYPE) I 20110510
5 Changing CV_PRODUCTION_FOUND Call by reference Type reference (TYPE) ABAP_BOOL 20120327
6 Exporting ET_MESSAGE Call by reference Type reference (TYPE) IF_FDT_TYPES=>T_MESSAGE Messages 20110513
7 Importing IS_PRODUCTION Call by reference Type reference (TYPE) S_PRODUCTION 20110510
# Exception Resumable Description Created on
1 CX_FDT_INPUT FDT: Invalid Input 20110525

Method CHECK_ADDITION Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CS_FORMULA_LINE Call by reference Type reference (TYPE) S_PROC_TOKEN Formula token / element with all info for processing 20110509
2 Changing CS_NEW_SYMBOL Call by reference Type reference (TYPE) S_STACK 20110509
3 Exporting ET_MESSAGE Call by reference Type reference (TYPE) IF_FDT_TYPES=>T_MESSAGE Messages 20110511
4 Importing IS_OPERAND_LEFT Call by reference Type reference (TYPE) S_STACK 20110510
5 Importing IS_OPERAND_RIGHT Call by reference Type reference (TYPE) S_STACK 20110510
6 Importing IV_OPERATOR_TOKEN Call by reference Type reference (TYPE) S_STACK-TOKEN 20110803
# Exception Resumable Description Created on
1 CX_FDT_INPUT FDT: Invalid Input 20110613

Method CHECK_COMPARISON Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CS_FORMULA_LINE Call by reference Type reference (TYPE) S_PROC_TOKEN Formula token / element with all info for processing 20110509
2 Changing CS_NEW_SYMBOL Call by reference Type reference (TYPE) S_STACK 20110509
3 Exporting ET_MESSAGE Call by reference Type reference (TYPE) IF_FDT_TYPES=>T_MESSAGE Messages 20110511
4 Importing IS_OPERAND_LEFT Call by reference Type reference (TYPE) S_STACK 20110510
5 Importing IS_OPERAND_RIGHT Call by reference Type reference (TYPE) S_STACK 20110510
6 Importing IV_OPERATOR_TOKEN Call by reference Type reference (TYPE) S_STACK-TOKEN 20110912

Method CHECK_COMPARISON on class CL_FDT_FORMULA_PARSER has no exception.

Method CHECK_DIVISION Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CS_FORMULA_LINE Call by reference Type reference (TYPE) S_PROC_TOKEN Formula token / element with all info for processing 20110509
2 Changing CS_NEW_SYMBOL Call by reference Type reference (TYPE) S_STACK 20110509
3 Exporting ET_MESSAGE Call by reference Type reference (TYPE) IF_FDT_TYPES=>T_MESSAGE Messages 20110511
4 Importing IS_OPERAND_LEFT Call by reference Type reference (TYPE) S_STACK 20110510
5 Importing IS_OPERAND_RIGHT Call by reference Type reference (TYPE) S_STACK 20110510

Method CHECK_DIVISION on class CL_FDT_FORMULA_PARSER has no exception.

Method CHECK_ELEMENTARY_OPD Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CS_SYMBOL Call by reference Type reference (TYPE) S_STACK Current Symbol 20110512
2 Changing CT_FORMULA Call by reference Type reference (TYPE) T_PROC_TOKEN Parsed Formula 20110512
3 Changing CV_CURRENT_PSORT_NUM Call by reference Type reference (TYPE) I 20110512
4 Exporting ET_MESSAGE Call by reference Type reference (TYPE) IF_FDT_TYPES=>T_MESSAGE Messages 20110512

Method CHECK_ELEMENTARY_OPD on class CL_FDT_FORMULA_PARSER has no exception.

Method CHECK_EXPONENT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CS_FORMULA_LINE Call by reference Type reference (TYPE) S_PROC_TOKEN Formula token / element with all info for processing 20110509
2 Changing CS_NEW_SYMBOL Call by reference Type reference (TYPE) S_STACK 20110509
3 Exporting ET_MESSAGE Call by reference Type reference (TYPE) IF_FDT_TYPES=>T_MESSAGE Messages 20110511
4 Importing IS_OPERAND_LEFT Call by reference Type reference (TYPE) S_STACK 20110510
5 Importing IS_OPERAND_RIGHT Call by reference Type reference (TYPE) S_STACK 20110510

Method CHECK_EXPONENT on class CL_FDT_FORMULA_PARSER has no exception.

Method CHECK_FOLLOW_SET Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_MESSAGE Call by reference Type reference (TYPE) IF_FDT_TYPES=>T_MESSAGE Messages 20110509
2 Importing IS_CURRENT_SYMBOL Call by reference Type reference (TYPE) S_STACK Current Symbol on the processing stack 20110504
3 Importing IS_NEXT_SYMBOL Call by reference Type reference (TYPE) S_STACK Next Symbol on the processing stack 20110504

Method CHECK_FOLLOW_SET on class CL_FDT_FORMULA_PARSER has no exception.

Method CHECK_FUNCTIONAL Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CS_NEW_SYMBOL Call by reference Type reference (TYPE) S_STACK 20110512
2 Changing CT_FORMULA Call by reference Type reference (TYPE) T_PROC_TOKEN Table of formula tokens / elements 20110512
3 Changing CT_PARAMETER_STACK Call by reference Type reference (TYPE) T_STACK 20110512
4 Changing CV_CURRENT_PSORT_NUM Call by reference Type reference (TYPE) I 20110512
5 Exporting ET_MESSAGE Call by reference Type reference (TYPE) IF_FDT_TYPES=>T_MESSAGE Messages 20110512
6 Importing IS_SYMBOL_FIRST_PARAM Call by reference Type reference (TYPE) S_STACK 20110512
7 Importing IS_SYMBOL_FUNCTIONAL Call by reference Type reference (TYPE) S_STACK 20110512
8 Importing IV_PARAM_CNT_IN_FORMULA Call by reference Type reference (TYPE) I 20110512
# Exception Resumable Description Created on
1 CX_FDT_INPUT FDT: Invalid Input 20110527

Method CHECK_INFIX_OP Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CS_NEW_SYMBOL Call by reference Type reference (TYPE) S_STACK 20110512
2 Changing CT_FORMULA Call by reference Type reference (TYPE) T_PROC_TOKEN Parsed formula 20110512
3 Changing CV_CURRENT_PSORT_NUM Call by reference Type reference (TYPE) I 20110512
4 Exporting ET_MESSAGE Call by reference Type reference (TYPE) IF_FDT_TYPES=>T_MESSAGE Messages 20110512
5 Importing IS_OPERAND_LEFT Call by reference Type reference (TYPE) S_STACK Operand to the left of the operator 20110512
6 Importing IS_OPERAND_RIGHT Call by reference Type reference (TYPE) S_STACK Operand to the right of the operator 20110512
7 Importing IS_SYMBOL_OPERATOR Call by reference Type reference (TYPE) S_STACK Operator 20110512
# Exception Resumable Description Created on
1 CX_FDT_INPUT 20110512

Method CHECK_MULTIPLICATION Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CS_FORMULA_LINE Call by reference Type reference (TYPE) S_PROC_TOKEN Formula token / element with all info for processing 20110509
2 Changing CS_NEW_SYMBOL Call by reference Type reference (TYPE) S_STACK 20110509
3 Exporting ET_MESSAGE Call by reference Type reference (TYPE) IF_FDT_TYPES=>T_MESSAGE Messages 20110511
4 Importing IS_OPERAND_LEFT Call by reference Type reference (TYPE) S_STACK 20110510
5 Importing IS_OPERAND_RIGHT Call by reference Type reference (TYPE) S_STACK 20110510
6 Importing IV_OPERATOR_TOKEN Call by reference Type reference (TYPE) S_STACK-TOKEN CL_FDT_FORMULA_ELEMENT=>GC_TOKEN_MULTIPLY 20110916

Method CHECK_MULTIPLICATION on class CL_FDT_FORMULA_PARSER has no exception.

Method CHECK_POST_PARSING Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_PARSED_FORMULA Call by reference Type reference (TYPE) T_PROC_TOKEN formula table; used for persisting and executing formula 20110509
2 Exporting ET_MESSAGE Call by reference Type reference (TYPE) IF_FDT_TYPES=>T_MESSAGE Messages 20110510
3 Importing IT_STACK Call by reference Type reference (TYPE) T_STACK 20110509
4 Importing IV_CURRENT_TOKEN_INDEX Call by reference Type reference (TYPE) I 20110509
5 Importing IV_TOKEN_COUNT Call by reference Type reference (TYPE) I 20110509

Method CHECK_POST_PARSING on class CL_FDT_FORMULA_PARSER has no exception.

Method CONSTRUCTOR Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_FORMULA_ID Call by reference Type reference (TYPE) IF_FDT_TYPES=>ID FDT: Formula 20110510
# Exception Resumable Description Created on
1 CX_FDT_INPUT FDT: Invalid Input 20110510

Method FIND_REGEX Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_MATCH Call by reference Type reference (TYPE) T_REGEX_MATCH Table of Matches Found 20110505
2 Exporting ET_MESSAGE Call by reference Type reference (TYPE) IF_FDT_TYPES=>T_MESSAGE Messages 20110510
3 Importing IV_POS Call by reference Type reference (TYPE) I Current Position 20110505
4 Importing IV_PRIO Call by reference Type reference (TYPE) I Priority 20110505
5 Importing IV_REGEX Call by reference Type reference (TYPE) STRING Regular Expression 20110505
6 Importing IV_STRING Call by reference Type reference (TYPE) STRING Formula string to be parsed 20110505
7 Importing IV_TOKEN_TYPE Call by reference Type reference (TYPE) FDT_FORMULA_TOKEN_TYPE FDT: Type of a formula token 20110505
# Exception Resumable Description Created on
1 CX_FDT_INPUT FDT: Invalid Input 20110510

Method GET_LONGEST_MATCH Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ES_LONG_MATCH Call by reference Type reference (TYPE) S_REGEX_MATCH Longest Match found 20110510
2 Exporting ET_MESSAGE Call by reference Type reference (TYPE) IF_FDT_TYPES=>T_MESSAGE Messages 20110510
3 Importing IV_POS Call by reference Type reference (TYPE) I Current Position 20110505
4 Importing IV_STRING Call by reference Type reference (TYPE) STRING Formula String to be parsed 20110505
# Exception Resumable Description Created on
1 CX_FDT_INPUT FDT: Invalid Input 20110510

Method GET_OPERATOR_TEXT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_OPERATOR Call by reference Type reference (TYPE) CSEQUENCE Operator 20110916
2 Returning RV_TEXT Value transfer Type reference (TYPE) STRING Operator text 20110916

Method GET_OPERATOR_TEXT on class CL_FDT_FORMULA_PARSER has no exception.

Method GET_PARAM_INDEX Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CV_FORMULA_INDEX Call by reference Type reference (TYPE) I 20110510
2 Importing IT_FORMULA Call by reference Type reference (TYPE) T_PROC_TOKEN formula table; used for persisting and executing formula 20110509
3 Importing IV_ARITY Call by reference Type reference (TYPE) FDT_EXPR_1401S-ARITY FoBuEv: No. of Operands in a Function Symbol 20110509

Method GET_PARAM_INDEX on class CL_FDT_FORMULA_PARSER has no exception.

Method GET_TABLE_LINE_PROPERTIES Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_ELEMENT_TYPE Call by reference Type reference (TYPE) IF_FDT_TYPES=>ELEMENT_TYPE Line type of table 20120216
2 Importing IV_TABLE_TYPE Call by reference Type reference (TYPE) RS38L_TYP Dictionary type of table 20120216

Method GET_TABLE_LINE_PROPERTIES on class CL_FDT_FORMULA_PARSER has no exception.

Method GET_TEXT_FOR_SYMBOL Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_STRING Call by reference Type reference (TYPE) STRING 20110510
2 Importing IV_SYMBOL Call by reference Type reference (TYPE) GRAMMAR_SYMBOL 20110510
3 Returning RV_STRING Value transfer Type reference (TYPE) STRING 20110510

Method GET_TEXT_FOR_SYMBOL on class CL_FDT_FORMULA_PARSER has no exception.

Method GET_TYPE_INSTANCE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_DATA_OBJECT_TYPE Call by reference Type reference (TYPE) IF_FDT_TYPES=>DATA_OBJECT_TYPE IF_FDT_CONSTANTS=>GC_DATA_OBJECT_TYPE_ELEMENT Data Object Type 20110509
2 Importing IV_ELEMENT_TYPE Call by reference Type reference (TYPE) IF_FDT_TYPES=>ELEMENT_TYPE FoBuEv: Type Name 20110509
3 Returning RO_INSTANCE Value transfer Object reference (TYPE REF TO) IF_FDT_DATA_OBJECT FDT: Abstract Data Object Class 20110513
# Exception Resumable Description Created on
1 CX_FDT_INPUT FDT: Invalid Input 20110712

Method GET_TYPE_TEXT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IS_SYMBOL Call by reference Type reference (TYPE) S_STACK 20110614
2 Importing IV_TYPE Call by reference Type reference (TYPE) CLIKE Type Name 20110624
3 Returning RV_TEXT Value transfer Type reference (TYPE) STRING Type Text 20110614

Method GET_TYPE_TEXT on class CL_FDT_FORMULA_PARSER has no exception.

Method IS_COMPATIBLE_TO_DDIC_TYPE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IS_SYMBOL Call by reference Type reference (TYPE) S_STACK 20110510
2 Importing IV_DDIC_TYPENAME Call by reference Type reference (TYPE) CSEQUENCE 20110510
3 Returning RV_COMPATIBLE Value transfer Type reference (TYPE) ABAP_BOOL 20110510
# Exception Resumable Description Created on
1 CX_FDT_INPUT FDT: Invalid Input 20120528

Method IS_REDUCE_ALLOWED Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IT_STACK Call by reference Type reference (TYPE) T_STACK 20110505
2 Importing IV_NEXT_SYMBOL Call by reference Type reference (TYPE) S_STACK 20110505
3 Returning RV_REDUCE_ALLOWED Value transfer Type reference (TYPE) ABAP_BOOL 20110510

Method IS_REDUCE_ALLOWED on class CL_FDT_FORMULA_PARSER has no exception.

Method IS_START_SYMBOL_ON_STACK Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IT_STACK Call by reference Type reference (TYPE) T_STACK 20110505
2 Returning RV_IS_ON_STACK Value transfer Type reference (TYPE) ABAP_BOOL 20110510

Method IS_START_SYMBOL_ON_STACK on class CL_FDT_FORMULA_PARSER has no exception.

Method IS_TABLE_UNSTRUCTURED Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IS_SYMBOL Call by reference Type reference (TYPE) S_STACK 20110510
2 Returning RV_UNSTRUCTURED Value transfer Type reference (TYPE) ABAP_BOOL 20110510

Method IS_TABLE_UNSTRUCTURED on class CL_FDT_FORMULA_PARSER has no exception.

Method LOAD_HELPER Signature

Method LOAD_HELPER on class CL_FDT_FORMULA_PARSER has no parameter.
Method LOAD_HELPER on class CL_FDT_FORMULA_PARSER has no exception.

Method PARSE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_MESSAGE Call by reference Type reference (TYPE) IF_FDT_TYPES=>T_MESSAGE Messages 20110513
2 Exporting ET_PARSED_FORMULA Call by reference Type reference (TYPE) T_PROC_TOKEN Table of formula tokens / elements 20110513
3 Importing IT_TOKEN Call by reference Type reference (TYPE) IF_FDT_FORMULA=>T_TOKEN Formula token table 20110513
4 Importing IV_FORMULA Call by reference Type reference (TYPE) STRING Formula String 20110513
# Exception Resumable Description Created on
1 CX_FDT_INPUT FDT: Invalid Input 20110510

Method PARSE_INTERNAL Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_MESSAGE Call by reference Type reference (TYPE) IF_FDT_TYPES=>T_MESSAGE Messages 20110513
2 Exporting ET_PARSED_FORMULA Call by reference Type reference (TYPE) T_PROC_TOKEN Table of formula tokens / elements 20110513
3 Importing IT_TOKEN Call by reference Type reference (TYPE) T_TOKEN Table of tokens 20110505
4 Importing IV_STRING Call by reference Type reference (TYPE) STRING Formula string to be parsed 20110505
# Exception Resumable Description Created on
1 CX_FDT_INPUT FDT: Invalid Input 20110509

Method REDUCE_STACK Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_FORMULA Call by reference Type reference (TYPE) T_PROC_TOKEN Table of formula tokens / elements 20110504
2 Changing CT_PARAMETER_STACK Call by reference Type reference (TYPE) T_STACK 20110504
3 Changing CT_STACK Call by reference Type reference (TYPE) T_STACK 20110504
4 Changing CV_CURRENT_PSORT_NUM Call by reference Type reference (TYPE) I 20110504
5 Exporting ET_MESSAGE Call by reference Type reference (TYPE) IF_FDT_TYPES=>T_MESSAGE Messages 20110513
6 Importing IS_NEXT_SYMBOL Call by reference Type reference (TYPE) S_STACK 20110504
# Exception Resumable Description Created on
1 CX_FDT_INPUT FDT: Invalid Input 20110512

Method REVERSE_PSORT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_FORMULA Call by reference Type reference (TYPE) T_PROC_TOKEN formula table; used for persisting and executing formula 20110504
2 Changing CV_PSORT_NUM Call by reference Type reference (TYPE) I 20110504
3 Importing IV_ARITY Call by reference Type reference (TYPE) FDT_EXPR_1401S-ARITY FoBuEv: No. of Operands in a Function Symbol 20110504
4 Importing IV_FORMULA_INDEX Call by reference Type reference (TYPE) I 20110510

Method REVERSE_PSORT on class CL_FDT_FORMULA_PARSER has no exception.

Method SHIFT_ONTO_STACK Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_STACK Call by reference Type reference (TYPE) T_STACK 20110504
2 Importing IS_SYMBOL Call by reference Type reference (TYPE) S_STACK 20110504

Method SHIFT_ONTO_STACK on class CL_FDT_FORMULA_PARSER has no exception.

Method TOKENIZE_STRING Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_TOKEN Call by reference Type reference (TYPE) T_TOKEN Table of Tokens 20110505
2 Importing IV_FORMULA Call by reference Type reference (TYPE) STRING Formula String 20110505
# Exception Resumable Description Created on
1 CX_FDT_INPUT FDT: Invalid Input 20110510

Method TOKEN_TO_GRAMMAR_SYMBOL Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CS_SYMBOL Call by reference Type reference (TYPE) S_STACK 20110504
2 Changing CT_FORMULA Call by reference Type reference (TYPE) T_PROC_TOKEN Table of formula tokens / elements 20110504
3 Changing CV_TOKEN_INDEX Call by reference Type reference (TYPE) I 20110504
4 Importing IT_TOKEN Call by reference Type reference (TYPE) T_TOKEN token table when parsing table 20110505

Method TOKEN_TO_GRAMMAR_SYMBOL on class CL_FDT_FORMULA_PARSER has no exception.

Method _CHECK_ERROR_SEMANTIC Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IS_CURRENT_SYMBOL Call by reference Type reference (TYPE) S_STACK 20110804
2 Importing IS_NEXT_SYMBOL Call by reference Type reference (TYPE) S_STACK 20110804
3 Importing IV_ERROR_PURPOSE Call by reference Type reference (TYPE) ERROR_PURPOSE 20110920
4 Returning RT_MESSAGE Value transfer Type reference (TYPE) IF_FDT_TYPES=>T_MESSAGE Messages 20110804

Method _CHECK_ERROR_SEMANTIC on class CL_FDT_FORMULA_PARSER has no exception.

Method _CHECK_FUNCTIONAL_INTERNAL Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CS_NEW_SYMBOL Call by reference Type reference (TYPE) S_STACK 20110707
2 Exporting ET_MESSAGE Call by reference Type reference (TYPE) IF_FDT_TYPES=>T_MESSAGE Messages 20110613
3 Importing IT_PARAMETER Call by reference Type reference (TYPE) T_STACK List of parameters 20110613
4 Importing IV_FUNC_NAME Call by reference Type reference (TYPE) STRING Functional name 20110613

Method _CHECK_FUNCTIONAL_INTERNAL on class CL_FDT_FORMULA_PARSER has no exception.

Method _CHECK_TABLE_FUNCTIONAL Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_MESSAGE Call by reference Type reference (TYPE) IF_FDT_TYPES=>T_MESSAGE Error messages 20120809
2 Importing IS_COLUMN_PARAM Call by reference Type reference (TYPE) S_STACK Column name 20120809
3 Importing IS_TABLE_PARAM Call by reference Type reference (TYPE) S_STACK Table parameter 20120809

Method _CHECK_TABLE_FUNCTIONAL on class CL_FDT_FORMULA_PARSER has no exception.
History
Last changed by/on SAP  20130531 
SAP Release Created in 731