SAP ABAP Class CL_FDT_FORMULA_ELEMENT (Element of a formula 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
⤷
⤷
Meta Relationship - Used By
| # | Relationship type | Used by | Short Description | Created on |
|---|---|---|---|---|
| 1 | Inheritance (c INHERITING FROM c_ref) | CL_FDT_FORMULA_ELEM_BOOLEAN | Formula element: Boolean functions (AND, OR, NOT) | 20061228 |
| 2 | Inheritance (c INHERITING FROM c_ref) | CL_FDT_FORMULA_ELEM_CALC | Formula element: Basic calculations | 20061228 |
| 3 | Inheritance (c INHERITING FROM c_ref) | CL_FDT_FORMULA_ELEM_CALC_ONE_P | Formula element: Built in calculations with one parameter | 20061227 |
| 4 | Inheritance (c INHERITING FROM c_ref) | CL_FDT_FORMULA_ELEM_COMPARISON | Formula element: Comparison | 20061228 |
| 5 | Inheritance (c INHERITING FROM c_ref) | CL_FDT_FORMULA_ELEM_CONSTANT | Formula element: Constant | 20061228 |
| 6 | Inheritance (c INHERITING FROM c_ref) | CL_FDT_FORMULA_ELEM_ERROR | Formula element: Error token in formula | 20061228 |
| 7 | Inheritance (c INHERITING FROM c_ref) | CL_FDT_FORMULA_ELEM_FDT_OBJECT | Formula element: Access to FDT expressions and data objects | 20061227 |
| 8 | Inheritance (c INHERITING FROM c_ref) | CL_FDT_FORMULA_ELEM_FUNCTIONAL | Formula element: Call of formula functions | 20061228 |
| 9 | Inheritance (c INHERITING FROM c_ref) | CL_FDT_FORMULA_ELEM_IF | Formula element: IF function | 20070108 |
| 10 | Inheritance (c INHERITING FROM c_ref) | CL_FDT_FORMULA_ELEM_MAX | Formula element: Max and min calculation | 20090507 |
| ... | Click here to see Used By full list (11 items) | |||
Properties
| Class | CL_FDT_FORMULA_ELEMENT | |
| Short Description | Element of a formula for processing | |
| Super Class | ||
| Instantiability of a Class | 1 | Protected |
| Final |
General Data
| Message Class | ||
| Program status | ||
| Category | 0 | |
| Package | SFDT_EXPRESSIONS | BRFplus: Expressions |
| Created | 20061227 | SAP |
| Last change | 20130531 | 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... | |
| 5 | Forward declaration interface (INTERFACE i DEFINITION DEF... | Forward declaration interface (INTERFACE i DEFINITION DEF... |
Interfaces
Class CL_FDT_FORMULA_ELEMENT has no interface implemented.
Friends
Class CL_FDT_FORMULA_ELEMENT has no friend class.
Attributes
| # | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Constant | Public | Type reference (TYPE) | SEOCLSNAME | 'CL_FOEV_BUILTINS' | Class for built in formula functionals | 20061227 | ||
| 2 | Constant | Public | Type reference (TYPE) | STRING | '2' | 20101026 | |||
| 3 | Constant | Public | Type reference (TYPE) | STRING | '1' | 20101026 | |||
| 4 | Constant | Public | Type reference (TYPE) | STRING | 'ABS' | 20070104 | |||
| 5 | Constant | Public | Type reference (TYPE) | STRING | 'AND' | 20070104 | |||
| 6 | Constant | Public | Type reference (TYPE) | STRING | 'CONCATENATE' | 20120622 | |||
| 7 | Constant | Public | Type reference (TYPE) | STRING | 'CONCATENATE_STRUCTURE' | 20121010 | |||
| 8 | Constant | Public | Type reference (TYPE) | STRING | 'CONCATENATE_TABLE' | 20121010 | |||
| 9 | Constant | Public | Type reference (TYPE) | STRING | '&' | 20120622 | |||
| 10 | Constant | Public | Type reference (TYPE) | STRING | '/' | 20070104 | |||
| 11 | Constant | Public | Type reference (TYPE) | STRING | 'FRAC' | 20090422 | |||
| 12 | Constant | Public | Type reference (TYPE) | STRING | 'IF' | 20070108 | |||
| 13 | Constant | Public | Type reference (TYPE) | STRING | 'IS_INITIAL' | 20070104 | |||
| 14 | Constant | Public | Type reference (TYPE) | STRING | 'MAX' | 20090507 | |||
| 15 | Constant | Public | Type reference (TYPE) | STRING | 'MIN' | 20090507 | |||
| 16 | Constant | Public | Type reference (TYPE) | STRING | '-' | 20070104 | |||
| 17 | Constant | Public | Type reference (TYPE) | STRING | '*' | 20070104 | |||
| 18 | Constant | Public | Type reference (TYPE) | STRING | 'NOT' | 20070104 | |||
| 19 | Constant | Public | Type reference (TYPE) | STRING | 'OR' | 20070104 | |||
| 20 | Constant | Public | Type reference (TYPE) | STRING | '+' | 20070104 | |||
| 21 | Constant | Public | Type reference (TYPE) | STRING | '^' | 20070104 | |||
| 22 | Constant | Public | Type reference (TYPE) | STRING | 'TONUMBER' | 20070104 | |||
| 23 | Constant | Public | Type reference (TYPE) | STRING | 'TOSTRING' | 20120614 | |||
| 24 | Constant | Public | Type reference (TYPE) | STRING | 'TRUNC' | 20090422 | |||
| 25 | Instance attribute | Public | Type reference (TYPE) | TY_LT_FORMULA_ELEMENT | Arguments of functional elements | 20061227 | |||
| 26 | Instance attribute | Public | Type reference (TYPE) | IF_FDT_TYPES=>DATA_OBJECT_TYPE | Data object type of the result of this element | 20061227 | |||
| 27 | Instance attribute | Public | Type reference (TYPE) | IF_FDT_TYPES=>ELEMENT_TYPE | Element type of the result of this element | 20061227 | |||
| 28 | Instance attribute | Protected | Type reference (TYPE) | ABAP_BOOL | 'X': If token is calculation type add, subtract, multiply.. | 20121206 | |||
| 29 | Instance attribute | Protected | Type reference (TYPE) | SFBEPSORT | FoBuEv: Sort Field for Prefix Notation | 20090313 | |||
| 30 | Instance attribute | Public | Type reference (TYPE) | STRING | Formula token / element | 20061227 | |||
| 31 | Instance attribute | Public | Type reference (TYPE) | FDT_FORMULA_TOKEN_TYPE | Type of formula token / element | 20061227 | |||
| 32 | Static Attribute | Public | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | Flag to determine the trace written | 20110506 |
Methods
| # | Method | Level | Visibility | Method type | Description | Created on |
|---|---|---|---|---|---|---|
| 1 | Instance method | Public | Method | Add argument to functional elements | 20061227 | |
| 2 | Instance method | Protected | Constructor | CONSTRUCTOR | 20061227 | |
| 3 | Instance method | Protected | Method | Convert data to match a desired type | 20080326 | |
| 4 | Instance method | Public | Method | Evaluate formula element | 20061227 | |
| 5 | Instance method | Public | Method | Generate source code for method EVALUATE | 20070116 | |
| 6 | Instance method | Protected | Method | Parse Arguments | 20090313 | |
| 7 | Instance method | Public | Method | Parse Lean Trace for Formula Element | 20090313 | |
| 8 | Instance method | Protected | Method | Parse Token | 20090313 | |
| 9 | Instance method | Private | Method | Prepares a parameter to be writen into the trace | 20071023 | |
| 10 | Static method | Public | Method | Split the long text for message parameters | 20110506 | |
| 11 | Instance method | Protected | Method | Writes an additional info entry into the trace | 20071023 |
Events
Class CL_FDT_FORMULA_ELEMENT has no event.
Types
| # | Type | Visibility | Typing | Associated Type | Description | Created on | Type Source |
|---|---|---|---|---|---|---|---|
| 1 | MOVE_TYPE | Public | Type reference (TYPE) | STRING | 20101026 | |
|
| 2 | TY_LT_FORMULA_ELEMENT | Public | See coding | 20061229 | ty_lt_formula_element TYPE STANDARD TABLE OF REF TO cl_fdt_formula_element
|
||
| 3 | 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
|
|
| 4 | 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 ADD_ARGUMENT Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IO_ARGUMENT | Call by reference | Object reference (TYPE REF TO) | CL_FDT_FORMULA_ELEMENT | Argument of the functional element | 20061227 |
Method ADD_ARGUMENT on class CL_FDT_FORMULA_ELEMENT has no exception.
Method CONSTRUCTOR Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IS_TOKEN | Call by reference | Type reference (TYPE) | TY_S_TOKEN | Formula element / token to be represented by this instance | 20061228 |
Method CONSTRUCTOR on class CL_FDT_FORMULA_ELEMENT has no exception.
Method DATA_CONVERT Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IO_DATA_OBJECT | Call by reference | Object reference (TYPE REF TO) | IF_FDT_DATA_OBJECT | FDT: Data Object | 20101026 | |||
| 2 | IR_VALUE | Call by reference | Object reference (TYPE REF TO) | DATA | 20080326 | ||||
| 3 | IV_DATA_OBJECT_TYPE | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>DATA_OBJECT_TYPE | Data Object Type | 20080326 | |||
| 4 | IV_DESIRED_TYPE | Call by reference | Type reference (TYPE) | CSEQUENCE | 20080326 | ||||
| 5 | IV_ELEMENT_TYPE | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>ELEMENT_TYPE | Elementary Data Type | 20080326 | |||
| 6 | IV_RESULT_MOVE_TYPE | Call by reference | Type reference (TYPE) | CL_FDT_FORMULA_ELEMENT=>MOVE_TYPE | CL_FDT_FORMULA_ELEMENT=>GC_MOVE_TYPE_DIRECT | 20101026 | |||
| 7 | RR_VALUE | Value transfer | Object reference (TYPE REF TO) | DATA | 20080326 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | FDT: Conversion Failure | 20080326 |
Method EVALUATE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IO_CONTEXT | Call by reference | Object reference (TYPE REF TO) | IF_FDT_CONTEXT | FDT: Context | 20061227 | |||
| 2 | IO_PROCESSOR | Call by reference | Object reference (TYPE REF TO) | IF_FDT_PROCESSOR | FDT: Processor | 20061227 | |||
| 3 | IV_EXPRESSION_ID | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>ID | ID of FDT Formula Expression | 20061227 | |||
| 4 | IV_TIMESTAMP | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>TIMESTAMP | 20061227 | ||||
| 5 | RR_RESULT | Value transfer | Object reference (TYPE REF TO) | DATA | 20061227 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | FDT: Processing Error | 20071129 |
Method GENERATE_EVALUATE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CTS_USED_CONTEXT_ID | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>TS_USED_CONTEXT_ID | The required and optional context fields in the src code | 20070116 | |||
| 2 | CV_REFERENCE_USED | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | 'X': True if result is created as reference | 20121207 | ||
| 3 | ET_SOURCE_CODE | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>T_SOURCE_CODE | Table for source code | 20070116 | |||
| 4 | EV_DIRECT_RESULT_NAME | Call by reference | Type reference (TYPE) | STRING | 20081022 | ||||
| 5 | IO_GENERATION_MNGR | Call by reference | Object reference (TYPE REF TO) | CL_FDT_GENERATION_MANAGER | FDT: Generation of Classes | 20080420 | |||
| 6 | IV_CREATE_VARIABLE | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_TRUE | Include declaration of result var IV_VARIABLE_NAME yes/no? | 20070116 | ||
| 7 | IV_EXPRESSION_ID | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>ID | 20070117 | ||||
| 8 | IV_FUNCTION_ID | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>ID | 20070720 | ||||
| 9 | IV_RESULT_MOVE_TYPE | Call by reference | Type reference (TYPE) | CL_FDT_FORMULA_ELEMENT=>MOVE_TYPE | CL_FDT_FORMULA_ELEMENT=>GC_MOVE_TYPE_CONVERT | 20101026 | |||
| 10 | IV_TIMESTAMP | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>TIMESTAMP | 20070116 | ||||
| 11 | IV_VARIABLE_NAME | Call by reference | Type reference (TYPE) | CLIKE | Name of the variable | 20070116 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | FDT: Error in the Generation Process | 20070116 | ||
| 2 | FDT: Invalid Input | 20070116 |
Method PARSE_ARGUMENTS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IO_DOCUMENT | Call by reference | Object reference (TYPE REF TO) | IF_IXML_DOCUMENT | IF_IXML_DOCUMENT | 20090313 | |||
| 2 | IO_PARENT | Call by reference | Object reference (TYPE REF TO) | IF_IXML_ELEMENT | 20090313 | ||||
| 3 | IS_HEADER | Call by reference | Type reference (TYPE) | IF_FDT_LEAN_TRACE=>S_HEADER | Trace Header for this expression | 20090313 | |||
| 4 | IS_RECORD | Call by reference | Type reference (TYPE) | IF_FDT_LEAN_TRACE=>S_RECORD | Trace Record for this expression | 20090313 | |||
| 5 | ITS_RECORD | Call by reference | Type reference (TYPE) | IF_FDT_LEAN_TRACE=>TS_RECORD | 20090317 | ||||
| 6 | IT_HEADER | Call by reference | Type reference (TYPE) | IF_FDT_LEAN_TRACE=>T_HEADER | Trace Headers for complete trace(s) | 20090313 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | FDT: Lean Trace | 20090422 |
Method PARSE_ELEMENT Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IO_DOCUMENT | Call by reference | Object reference (TYPE REF TO) | IF_IXML_DOCUMENT | IF_IXML_DOCUMENT | 20090313 | |||
| 2 | IO_PARENT | Call by reference | Object reference (TYPE REF TO) | IF_IXML_ELEMENT | 20090313 | ||||
| 3 | IS_HEADER | Call by reference | Type reference (TYPE) | IF_FDT_LEAN_TRACE=>S_HEADER | Trace Header for this expression | 20090313 | |||
| 4 | IS_RECORD | Call by reference | Type reference (TYPE) | IF_FDT_LEAN_TRACE=>S_RECORD | Trace Record for this expression | 20090313 | |||
| 5 | ITS_RECORD | Call by reference | Type reference (TYPE) | IF_FDT_LEAN_TRACE=>TS_RECORD | 20090317 | ||||
| 6 | IT_HEADER | Call by reference | Type reference (TYPE) | IF_FDT_LEAN_TRACE=>T_HEADER | Trace Headers for complete trace(s) | 20090313 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | FDT: System Failure | 20090422 |
Method PARSE_TOKEN Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IO_DOCUMENT | Call by reference | Object reference (TYPE REF TO) | IF_IXML_DOCUMENT | IF_IXML_DOCUMENT | 20090313 | |||
| 2 | IO_PARENT | Call by reference | Object reference (TYPE REF TO) | IF_IXML_ELEMENT | IF_IXML_ELEMENT | 20090313 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | FDT: Lean Trace | 20090422 |
Method PREPARE_PARAMETER Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_MSG_ID | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>ID | Universal Unique Identifier | 20071023 | |||
| 2 | IV_MSG_VALUE | Call by reference | Type reference (TYPE) | ANY | 20071023 | ||||
| 3 | IV_TIMESTAMP | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>TIMESTAMP | Time Stamp (active version) | 20071023 | |||
| 4 | RV_TEXT | Value transfer | Type reference (TYPE) | STRING | 20071023 |
Method PREPARE_PARAMETER on class CL_FDT_FORMULA_ELEMENT has no exception.
Method SPLIT_LONG_TEXT Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_MSG_1 | Call by reference | Type reference (TYPE) | STRING | 20110506 | ||||
| 2 | EV_MSG_2 | Call by reference | Type reference (TYPE) | STRING | 20110506 | ||||
| 3 | EV_MSG_3 | Call by reference | Type reference (TYPE) | STRING | 20110506 | ||||
| 4 | EV_MSG_4 | Call by reference | Type reference (TYPE) | STRING | 20110506 | ||||
| 5 | IV_EXPRESSION_ID | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>ID | Universal Unique Identifier | 20110506 | |||
| 6 | IV_TIMESTAMP | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>TIMESTAMP | Time Stamp (active version, UTC) | 20110506 |
Method SPLIT_LONG_TEXT on class CL_FDT_FORMULA_ELEMENT has no exception.
Method WRITE_TRACE_INFO Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IO_TRACE | Call by reference | Object reference (TYPE REF TO) | IF_FDT_TRACE_WRITE | FDT: Trace (Write Interface) | 20071023 | |||
| 2 | IV_MSG_CLASS | Call by reference | Type reference (TYPE) | ARBGB | Application Area | 20071023 | |||
| 3 | IV_MSG_NR | Call by reference | Type reference (TYPE) | MSGNR | Message number | 20071023 | |||
| 4 | IV_MSG_V1_ID | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>ID | Universal Unique Identifier | 20071023 | |||
| 5 | IV_MSG_V1_VALUE | Call by reference | Type reference (TYPE) | ANY | Message Variable 1 Value | 20071023 | |||
| 6 | IV_MSG_V2_ID | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>ID | Universal Unique Identifier | 20071023 | |||
| 7 | IV_MSG_V2_VALUE | Call by reference | Type reference (TYPE) | ANY | Message Variable 2 Value | 20071023 | |||
| 8 | IV_MSG_V3_ID | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>ID | Universal Unique Identifier | 20071023 | |||
| 9 | IV_MSG_V3_VALUE | Call by reference | Type reference (TYPE) | ANY | Message Variable 3 Value | 20071023 | |||
| 10 | IV_MSG_V4_ID | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>ID | Universal Unique Identifier | 20071023 | |||
| 11 | IV_MSG_V4_VALUE | Call by reference | Type reference (TYPE) | ANY | Message Variable 4 Value | 20071023 | |||
| 12 | IV_TIMESTAMP | Call by reference | Type reference (TYPE) | IF_FDT_TYPES=>TIMESTAMP | Time Stamp (active version) | 20071023 |
Method WRITE_TRACE_INFO on class CL_FDT_FORMULA_ELEMENT has no exception.
Meta Relationship - Used By (full list)
History
| Last changed by/on | SAP | 20130531 |
| SAP Release Created in | 710 |