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

⤷

⤷

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 | ![]() |
Type group use (TYPE-POOLS tp) | Type group use (TYPE-POOLS tp) |
2 | ![]() |
Forward declaration class (CLASS c DEFINITION DEFERRED) | Forward declaration class (CLASS c DEFINITION DEFERRED) |
3 | ![]() |
Forward declaration interface (INTERFACE i DEFINITION DEF... | Forward declaration interface (INTERFACE i DEFINITION DEF... |
4 | ![]() |
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 | ![]() |
Instance attribute | Private | Type reference (TYPE) | TABNAME | 'FDT_EXPR_1400' | Table Name | 20070813 | |
2 | ![]() |
Instance attribute | Private | Type reference (TYPE) | TABNAME | 'FDT_EXPR_1401' | Table Name | 20070813 | |
3 | ![]() |
Constant | Private | Type reference (TYPE) | STRING | '0123456789ABCDEF' | Characters that make up a GUID | 20051130 | |
4 | ![]() |
Static Attribute | Public | Type reference (TYPE) | TYPENAME | 'FDT STRUCTURED TABLE' | A strutured FDT table | 20080112 | |
5 | ![]() |
Instance attribute | Private | Object reference (TYPE REF TO) | CL_FDT_FORMULA_PARSER | FDT: Formula Parser Class | 20110627 | ||
6 | ![]() |
Instance attribute | Private | Type reference (TYPE) | S_BUFFER | Transactional Buffer | 20051031 | ||
7 | ![]() |
Instance attribute | Private | Type reference (TYPE) | S_BUFFER | Transactional Buffer | 20051031 | ||
8 | ![]() |
Instance attribute | Private | Type reference (TYPE) | IF_FDT_FORMULA=>S_ERROR_TOKEN | Information about errors of last check (not in ms_buffer) | 20080728 | ||
9 | ![]() |
Instance attribute | Private | Type reference (TYPE) | IF_FDT_FORMULA=>T_FUNCTIONAL_DEF | Functional Definitions (formula function) | 20111017 | ||
10 | ![]() |
Static Attribute | Public | Type reference (TYPE) | TH_TOKEN_DOCU | Doku for tokens | 20080807 | ||
11 | ![]() |
Instance attribute | Private | Type reference (TYPE) | ABAP_BOOL | ABAP_TRUE: FoBu formula was changed | 20051031 | ||
12 | ![]() |
Instance attribute | Private | Attribute reference (LIKE) | 20051031 | ||||
13 | ![]() |
Instance attribute | Private | Type reference (TYPE) | IF_FDT_TYPES=>TIMESTAMP | Timestamp for formula maintenance | 20051108 | ||
14 | ![]() |
Instance attribute | Private | Type reference (TYPE) | ABAP_BOOL | ABAP_TRUE: MS_BUFFER_DB is loaded | 20070813 | ||
15 | ![]() |
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 | ![]() |
Instance method | Private | Method | Checks the result data object | 20110629 |
2 | ![]() |
Instance method | Private | Method | Gets the text version of a formula | 20110629 |
3 | ![]() |
Instance method | Private | Method | Convert calculated result to result data object type | 20110914 |
4 | ![]() |
Instance method | Private | Method | Generate Code for result conversion | 20110914 |
5 | ![]() |
Instance method | Private | Method | Get Formula Evaluator instance | 20051031 |
6 | ![]() |
Instance method | Private | Method | Get Formula Parser Instance | 20110627 |
7 | ![]() |
Instance method | Public | Method | Get all formula functionals | 20111017 |
8 | ![]() |
Instance method | Public | Method | Internal use: Get template for token (functionals) | 20090610 |
9 | ![]() |
Instance method | Private | Method | 'X': if result of formula calculation needs to be converted | 20110914 |
10 | ![]() |
Instance method | Private | Method | Load the buffer | 20051031 |
11 | ![]() |
Instance method | Private | Method | Load the buffer from Database | 20051031 |
12 | ![]() |
Instance method | Private | Method | Save the buffer into the Database | 20051031 |
13 | ![]() |
Instance method | Private | Method | Set the buffer | 20051031 |
14 | ![]() |
Instance method | Private | Method | Copy formula token from FoBu format to FDT format | 20061227 |
15 | ![]() |
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 | ![]() |
IT_PARSED_FORMULA | Call by reference | Type reference (TYPE) | CL_FDT_FORMULA_PARSER=>T_PROC_TOKEN | 20110629 | |||
2 | ![]() |
IT_TOKEN | Call by reference | Type reference (TYPE) | IF_FDT_FORMULA=>T_TOKEN | Formula token table | 20110629 | ||
3 | ![]() |
IV_ACTIVATION_CHECK | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | 20110629 | ||
4 | ![]() |
RT_MESSAGE | Value transfer | Type reference (TYPE) | IF_FDT_TYPES=>T_MESSAGE | Messages | 20110629 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
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 | ![]() |
EV_FORMULA | Call by reference | Type reference (TYPE) | IF_FDT_FORMULA=>FORMULA | Text | 20110629 | ||
2 | ![]() |
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 | ![]() |
EA_TARGET | Call by reference | Type reference (TYPE) | ANY | Target Value | 20110916 | ||
2 | ![]() |
IA_VALUE | Call by reference | Type reference (TYPE) | ANY | Calculated Value(source) | 20110914 | ||
3 | ![]() |
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 | ![]() |
IV_RESULT_ID | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>ID | Result ID | 20110914 | ||
5 | ![]() |
IV_TIMESTAMP | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>TIMESTAMP | Time Stamp (active version, UTC) | 20110914 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
FDT: Conversion Failure | 20120730 | |
2 | ![]() |
FDT: Invalid Input | 20120730 |
Method GENERATE_RESULT_CONVERT Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
ET_SOURCE_CODE | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>T_SOURCE_CODE | Table with Source Code | 20110914 | ||
2 | ![]() |
IO_GENERATION_MNGR | Call by reference | Object reference (TYPE REF TO) | CL_FDT_GENERATION_MANAGER | FDT: Generation of Classes | 20110914 | ||
3 | ![]() |
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 | ![]() |
IV_RESULT_ID | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>ID | Result ID | 20110914 | ||
5 | ![]() |
IV_SOURCE_VARIABLE | Call by reference | Type reference (TYPE) | CLIKE | Source Variable | 20110914 | ||
6 | ![]() |
IV_TARGET_VARIABLE | Call by reference | Type reference (TYPE) | CLIKE | Target Variable | 20110914 | ||
7 | ![]() |
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 | ![]() |
EO_FOEV | Value transfer | Object reference (TYPE REF TO) | CL_FDT_FORMULA_ELEMENT | Element of a formula for processing | 20110912 | ||
2 | ![]() |
ET_TOKEN_PARSED | Call by reference | Type reference (TYPE) | CL_FDT_FORMULA_PARSER=>T_PROC_TOKEN | Parsed formula tokens | 20110912 | ||
3 | ![]() |
IV_TIMESTAMP | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>TIMESTAMP | Time Stamp (active version) | 20051103 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
FDT: Invalid Input | 20051031 |
Method GET_FOPR Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
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 | ![]() |
ET_FUNCTIONAL_CATEGORY | Call by reference | Type reference (TYPE) | IF_FDT_FORMULA=>T_FUNCTIONAL_CATEG | Function categories | 20111017 | ||
2 | ![]() |
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 | ![]() |
ET_TOKEN_TEMPLATE | Call by reference | Type reference (TYPE) | IF_FDT_FORMULA=>T_TOKEN | Token table of template | 20090610 | ||
2 | ![]() |
EV_TOKEN_TEMPLATE | Value transfer | Type reference (TYPE) | STRING | Template as string | 20090610 | ||
3 | ![]() |
IS_TOKEN | Call by reference | Type reference (TYPE) | IF_FDT_FORMULA=>S_TOKEN | Formula token | 20090610 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
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 | ![]() |
EV_CONV_REQD | Call by reference | Type reference (TYPE) | ABAP_BOOL | 20110914 | |||
2 | ![]() |
EV_SOURCE_TYPENAME | Call by reference | Type reference (TYPE) | STRING | Name of Dictionary Type | 20110914 | ||
3 | ![]() |
IO_GENERATION_MNGR | Call by reference | Object reference (TYPE REF TO) | CL_FDT_GENERATION_MANAGER | FDT: Generation of Classes | 20110914 | ||
4 | ![]() |
IS_SOURCE_FORMULA_TOKEN | Call by reference | Type reference (TYPE) | CL_FDT_FORMULA_PARSER=>S_PROC_TOKEN | 20110914 | |||
5 | ![]() |
IV_TIMESTAMP | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>TIMESTAMP | Time Stamp (active version, UTC) | 20110914 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
FDT: Invalid Input | 20110914 | |
2 | ![]() |
FDT: Processing Error | 20110914 |
Method LOAD_BUFFER Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
IV_TIMESTAMP | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>TIMESTAMP | Timestamp of active version | 20070811 | ||
2 | ![]() |
IV_VERSION | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>VERSION | 20051031 | |||
3 | ![]() |
RS_BUFFER | Value transfer | Type reference (TYPE) | S_BUFFER | Transactional Buffer | 20051031 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
FDT: Invalid Input | 20051031 |
Method LOAD_BUFFER_DB Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
IV_VERSION | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>VERSION | 20051031 | |||
2 | ![]() |
RS_BUFFER | Value transfer | Type reference (TYPE) | S_BUFFER | Transactional Buffer | 20051031 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
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 | ![]() |
IS_BUFFER | Call by reference | Type reference (TYPE) | S_BUFFER | Transactional Buffer | 20051031 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
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 | ![]() |
ES_TOKEN | Call by reference | Type reference (TYPE) | IF_FDT_FORMULA=>S_TOKEN | Formula Token / Element in FDT format | 20061227 | ||
2 | ![]() |
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 | ![]() |
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 |