SAP ABAP Class CL_FDT_FORMULA (FDT: Formula)
Hierarchy
☛
SAP_BASIS (Software Component) SAP Basis Component
⤷ BC-SRV-BR (Application Component) BRFplus - ABAP-Based Business Rules
⤷ SFDT_EXPRESSIONS (Package) BRFplus: Expressions
⤷ 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 | 20051031 |
2 | Interface implementation (CLASS c. INTERFACES i_ref) | IF_FDT_FORMULA | FDT: Formula | 20051031 |
Properties
Class | CL_FDT_FORMULA | |
Short Description | FDT: Formula | |
Super Class | CL_FDT_EXPRESSION | FDT: Abstract Expression Class |
Instantiability of a Class | 1 | Protected |
Final |
General Data
Message Class | ||
Program status | ||
Category | 0 | |
Package | SFDT_EXPRESSIONS | BRFplus: Expressions |
Created | 20051031 | 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_FORMULA_PARSER | Forward declaration class (CLASS c DEFINITION DEFERRED) | Forward declaration class (CLASS c DEFINITION DEFERRED) |
3 | IF_FDT_FORMULA | Forward declaration interface (INTERFACE i DEFINITION DEF... | Forward declaration interface (INTERFACE i DEFINITION DEF... |
4 | 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_FORMULA | FDT: Formula | 20051031 |
Friends
# | Friend | Modeled only | Created on | Description |
---|---|---|---|---|
1 | CL_FDT_FACTORY | 20051031 | FDT: Factory |
Attributes
# | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | GC_EXPR_1400 | Instance attribute | Private | Type reference (TYPE) | TABNAME | 'FDT_EXPR_1400' | Table Name | 20070813 | |
2 | GC_EXPR_1401 | Instance attribute | Private | Type reference (TYPE) | TABNAME | 'FDT_EXPR_1401' | Table Name | 20070813 | |
3 | GC_GUID_CHARS | Constant | Private | Type reference (TYPE) | STRING | '0123456789ABCDEF' | Characters that make up a GUID | 20051130 | |
4 | GC_STRUCT_TABLE_SONDERLOCKE | Static Attribute | Public | Type reference (TYPE) | TYPENAME | 'FDT STRUCTURED TABLE' | A strutured FDT table | 20080112 | |
5 | MO_PARSER | Instance attribute | Private | Object reference (TYPE REF TO) | CL_FDT_FORMULA_PARSER | FDT: Formula Parser Class | 20110627 | ||
6 | MS_BUFFER | Instance attribute | Private | Type reference (TYPE) | S_BUFFER | Transactional Buffer | 20051031 | ||
7 | MS_BUFFER_DB | Instance attribute | Private | Type reference (TYPE) | S_BUFFER | Transactional Buffer | 20051031 | ||
8 | MS_ERROR_TOKEN | Instance attribute | Private | Type reference (TYPE) | IF_FDT_FORMULA=>S_ERROR_TOKEN | Information about errors of last check (not in ms_buffer) | 20080728 | ||
9 | MT_BUILTIN_FUNCTIONS | Instance attribute | Private | Type reference (TYPE) | IF_FDT_FORMULA=>T_FUNCTIONAL_DEF | Functional Definitions (formula function) | 20111017 | ||
10 | MT_TOKEN_DOCU | Static Attribute | Public | Type reference (TYPE) | TH_TOKEN_DOCU | Doku for tokens | 20080807 | ||
11 | MV_CHANGED | Instance attribute | Private | Type reference (TYPE) | ABAP_BOOL | ABAP_TRUE: FoBu formula was changed | 20051031 | ||
12 | MV_ID | Instance attribute | Private | Attribute reference (LIKE) | 20051031 | ||||
13 | MV_MAINT_TIMESTAMP | Instance attribute | Private | Type reference (TYPE) | IF_FDT_TYPES=>TIMESTAMP | Timestamp for formula maintenance | 20051108 | ||
14 | MV_MS_BUFFER_DB_LOADED | Instance attribute | Private | Type reference (TYPE) | ABAP_BOOL | ABAP_TRUE: MS_BUFFER_DB is loaded | 20070813 | ||
15 | MV_MS_BUFFER_LOADED | Instance attribute | Private | Type reference (TYPE) | ABAP_BOOL | ABAP_TRUE: MS_BUFFER is loaded | 20060801 |
Methods
# | Method | Level | Visibility | Method type | Description | Created on |
---|---|---|---|---|---|---|
1 | CHECK_RESULT | Instance method | Private | Method | Checks the result data object | 20110629 |
2 | CONVERT_FORMULA_TO_TEXT | Instance method | Private | Method | Gets the text version of a formula | 20110629 |
3 | CONVERT_RESULT | Instance method | Private | Method | Convert calculated result to result data object type | 20110914 |
4 | GENERATE_RESULT_CONVERT | Instance method | Private | Method | Generate Code for result conversion | 20110914 |
5 | GET_FOEV | Instance method | Private | Method | Get Formula Evaluator instance | 20051031 |
6 | GET_FOPR | Instance method | Private | Method | Get Formula Parser Instance | 20110627 |
7 | GET_FUNCTIONAL | Instance method | Public | Method | Get all formula functionals | 20111017 |
8 | GET_TOKEN_TEMPLATE | Instance method | Public | Method | Internal use: Get template for token (functionals) | 20090610 |
9 | IS_RESULT_CONV_REQD | Instance method | Private | Method | 'X': if result of formula calculation needs to be converted | 20110914 |
10 | LOAD_BUFFER | Instance method | Private | Method | Load the buffer | 20051031 |
11 | LOAD_BUFFER_DB | Instance method | Private | Method | Load the buffer from Database | 20051031 |
12 | SAVE_BUFFER_DB | Instance method | Private | Method | Save the buffer into the Database | 20051031 |
13 | SET_BUFFER | Instance method | Private | Method | Set the buffer | 20051031 |
14 | TOKEN_FOBU_TO_FDT | Instance method | Private | Method | Copy formula token from FoBu format to FDT format | 20061227 |
15 | _CONVERT_TOKEN_IN | Instance method | Private | Method | Convert tokens from persistent format to runtime format | 20110629 |
Events
Class CL_FDT_FORMULA has no event.
Types
# | Type | Visibility | Typing | Associated Type | Description | Created on | Type Source |
---|---|---|---|---|---|---|---|
1 | S_BUFFER | Private | See coding | Formula buffer | 20051031 | BEGIN OF s_buffer,
id TYPE if_fdt_types=>id,
valid TYPE abap_bool,
fobu_type TYPE fdt_formula_token-type, "OBSOLETE field do not use
t_token TYPE fdt_formula_token_tab,
o_fobu TYPE REF TO cl_fobu_formula, "OBSOLETE field do not use
o_foev TYPE REF TO cl_fdt_formula_element,
new_fobu TYPE abap_bool,
END OF s_buffer
|
|
2 | S_EVALUATION_CONTEXT | Private | See coding | Context for formula exaluation (timestamp, processor, ...) | 20051108 | BEGIN OF s_evaluation_context,
timestamp TYPE if_fdt_types=>timestamp,
o_context TYPE REF TO if_fdt_context,
o_processor TYPE REF TO if_fdt_processor,
END OF s_evaluation_context
|
|
3 | S_TOKEN_DOCU | Public | See coding | 20080807 | BEGIN OF s_token_docu,
token TYPE fdt_fsym,
sapscript_object TYPE if_fdt_types=>s_sapscript_object,
END OF s_token_docu
|
||
4 | TH_TOKEN_DOCU | Public | See coding | 20080807 | th_token_docu TYPE HASHED TABLE OF s_token_docu WITH UNIQUE KEY token
|
Method Signatures
Method CHECK_RESULT Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Importing | IT_PARSED_FORMULA | Call by reference | Type reference (TYPE) | CL_FDT_FORMULA_PARSER=>T_PROC_TOKEN | 20110629 | |||
2 | Importing | IT_TOKEN | Call by reference | Type reference (TYPE) | IF_FDT_FORMULA=>T_TOKEN | Formula token table | 20110629 | ||
3 | Importing | IV_ACTIVATION_CHECK | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | 20110629 | ||
4 | Returning | RT_MESSAGE | Value transfer | Type reference (TYPE) | IF_FDT_TYPES=>T_MESSAGE | Messages | 20110629 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | CX_FDT_INPUT | FDT: Invalid Input | 20120112 |
Method CONVERT_FORMULA_TO_TEXT Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Exporting | EV_FORMULA | Call by reference | Type reference (TYPE) | IF_FDT_FORMULA=>FORMULA | Text | 20110629 | ||
2 | Importing | IT_TOKEN | Call by reference | Type reference (TYPE) | FDT_FORMULA_TOKEN_TAB | Table with Rows (Tokens) of a Formula | 20110629 |
Method CONVERT_FORMULA_TO_TEXT on class CL_FDT_FORMULA has no exception.
Method CONVERT_RESULT Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Exporting | EA_TARGET | Call by reference | Type reference (TYPE) | ANY | Target Value | 20110916 | ||
2 | Importing | IA_VALUE | Call by reference | Type reference (TYPE) | ANY | Calculated Value(source) | 20110914 | ||
3 | Importing | IS_SOURCE_FORMULA_TOKEN | Call by reference | Type reference (TYPE) | CL_FDT_FORMULA_PARSER=>S_PROC_TOKEN | Formula token containing the final result | 20110914 | ||
4 | Importing | IV_RESULT_ID | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>ID | Result ID | 20110914 | ||
5 | Importing | IV_TIMESTAMP | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>TIMESTAMP | Time Stamp (active version, UTC) | 20110914 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | CX_FDT_CONVERSION | FDT: Conversion Failure | 20120730 | |
2 | CX_FDT_INPUT | FDT: Invalid Input | 20120730 |
Method GENERATE_RESULT_CONVERT Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Exporting | ET_SOURCE_CODE | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>T_SOURCE_CODE | Table with Source Code | 20110914 | ||
2 | Importing | IO_GENERATION_MNGR | Call by reference | Object reference (TYPE REF TO) | CL_FDT_GENERATION_MANAGER | FDT: Generation of Classes | 20110914 | ||
3 | Importing | IS_SOURCE_FORMULA_TOKEN | Call by reference | Type reference (TYPE) | CL_FDT_FORMULA_PARSER=>S_PROC_TOKEN | Formula token containing the final result | 20110914 | ||
4 | Importing | IV_RESULT_ID | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>ID | Result ID | 20110914 | ||
5 | Importing | IV_SOURCE_VARIABLE | Call by reference | Type reference (TYPE) | CLIKE | Source Variable | 20110914 | ||
6 | Importing | IV_TARGET_VARIABLE | Call by reference | Type reference (TYPE) | CLIKE | Target Variable | 20110914 | ||
7 | Importing | IV_TIMESTAMP | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>TIMESTAMP | Time Stamp (active version, UTC) | 20110914 |
Method GENERATE_RESULT_CONVERT on class CL_FDT_FORMULA has no exception.
Method GET_FOEV Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Exporting | EO_FOEV | Value transfer | Object reference (TYPE REF TO) | CL_FDT_FORMULA_ELEMENT | Element of a formula for processing | 20110912 | ||
2 | Exporting | ET_TOKEN_PARSED | Call by reference | Type reference (TYPE) | CL_FDT_FORMULA_PARSER=>T_PROC_TOKEN | Parsed formula tokens | 20110912 | ||
3 | Importing | IV_TIMESTAMP | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>TIMESTAMP | Time Stamp (active version) | 20051103 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | CX_FDT_INPUT | FDT: Invalid Input | 20051031 |
Method GET_FOPR Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Returning | RO_FOPR | Value transfer | Object reference (TYPE REF TO) | CL_FDT_FORMULA_PARSER | FDT: Formula Parser Class | 20110627 |
Method GET_FOPR on class CL_FDT_FORMULA has no exception.
Method GET_FUNCTIONAL Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Exporting | ET_FUNCTIONAL_CATEGORY | Call by reference | Type reference (TYPE) | IF_FDT_FORMULA=>T_FUNCTIONAL_CATEG | Function categories | 20111017 | ||
2 | Exporting | ET_FUNCTIONAL_DEFINITION | Call by reference | Type reference (TYPE) | IF_FDT_FORMULA=>T_FUNCTIONAL_DEF | Functionals | 20111017 |
Method GET_FUNCTIONAL on class CL_FDT_FORMULA has no exception.
Method GET_TOKEN_TEMPLATE Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Exporting | ET_TOKEN_TEMPLATE | Call by reference | Type reference (TYPE) | IF_FDT_FORMULA=>T_TOKEN | Token table of template | 20090610 | ||
2 | Exporting | EV_TOKEN_TEMPLATE | Value transfer | Type reference (TYPE) | STRING | Template as string | 20090610 | ||
3 | Importing | IS_TOKEN | Call by reference | Type reference (TYPE) | IF_FDT_FORMULA=>S_TOKEN | Formula token | 20090610 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | CX_FDT_INPUT | FDT: Invalid Input | 20090610 |
Method IS_RESULT_CONV_REQD Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Exporting | EV_CONV_REQD | Call by reference | Type reference (TYPE) | ABAP_BOOL | 20110914 | |||
2 | Exporting | EV_SOURCE_TYPENAME | Call by reference | Type reference (TYPE) | STRING | Name of Dictionary Type | 20110914 | ||
3 | Importing | IO_GENERATION_MNGR | Call by reference | Object reference (TYPE REF TO) | CL_FDT_GENERATION_MANAGER | FDT: Generation of Classes | 20110914 | ||
4 | Importing | IS_SOURCE_FORMULA_TOKEN | Call by reference | Type reference (TYPE) | CL_FDT_FORMULA_PARSER=>S_PROC_TOKEN | 20110914 | |||
5 | Importing | IV_TIMESTAMP | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>TIMESTAMP | Time Stamp (active version, UTC) | 20110914 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | CX_FDT_INPUT | FDT: Invalid Input | 20110914 | |
2 | CX_FDT_PROCESSING | FDT: Processing Error | 20110914 |
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 | 20051031 | |||
3 | Returning | RS_BUFFER | Value transfer | Type reference (TYPE) | S_BUFFER | Transactional Buffer | 20051031 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | CX_FDT_INPUT | FDT: Invalid Input | 20051031 |
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 | 20051031 | |||
2 | Returning | RS_BUFFER | Value transfer | Type reference (TYPE) | S_BUFFER | Transactional Buffer | 20051031 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | CX_FDT_INPUT | FDT: Invalid Input | 20051031 |
Method SAVE_BUFFER_DB Signature
Method SAVE_BUFFER_DB on class CL_FDT_FORMULA has no parameter.
Method SAVE_BUFFER_DB on class CL_FDT_FORMULA 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 Buffer | 20051031 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | CX_FDT_INPUT | FDT: Invalid Input | 20051031 |
Method TOKEN_FOBU_TO_FDT Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Exporting | ES_TOKEN | Call by reference | Type reference (TYPE) | IF_FDT_FORMULA=>S_TOKEN | Formula Token / Element in FDT format | 20061227 | ||
2 | Importing | IS_TOKEN | Call by reference | Type reference (TYPE) | FDT_FORMULA_SIMPLE_TOKEN | Formula Token / Element in FoBu format | 20061227 |
Method TOKEN_FOBU_TO_FDT on class CL_FDT_FORMULA has no exception.
Method _CONVERT_TOKEN_IN 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 | Formula buffer | 20110629 |
Method _CONVERT_TOKEN_IN on class CL_FDT_FORMULA has no exception.
History
Last changed by/on | SAP | 20140121 |
SAP Release Created in | 710 |