SAP ABAP Class CL_FMHIE_TREE_DATA_STRING (Handling of hierarchical data in memory)
Hierarchy
☛
EA-PS (Software Component) SAP Enterprise Extension Public Services
⤷
PSM-FM-BCS-BU (Application Component) Budgeting
⤷
FMBMA_E (Package) Budgeting Rules, BCS
⤷
⤷
Properties
| Class | CL_FMHIE_TREE_DATA_STRING | |
| Short Description | Handling of hierarchical data in memory | |
| Super Class | ||
| Instantiability of a Class | 2 | Public |
| Final |
General Data
| Message Class | ||
| Program status | ||
| Category | 0 | |
| Package | FMBMA_E | Budgeting Rules, BCS |
| Created | 20050324 | SAP |
| Last change | 20050411 | SAP |
| Shared Memory-enabled | ||
| Fixed point arithmetic | ||
| Unicode checks active |
Forward declarations
Class CL_FMHIE_TREE_DATA_STRING has no forward declaration.
Interfaces
Class CL_FMHIE_TREE_DATA_STRING has no interface implemented.
Friends
Class CL_FMHIE_TREE_DATA_STRING has no friend class.
Attributes
| # | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Instance attribute | Protected | Type reference (TYPE) | FMHIE_NODE_ID_STRING | Node ID for traversal (character based) | 20050326 | |||
| 2 | Constant | Public | Type reference (TYPE) | I | 2 | 20050324 | |||
| 3 | Constant | Public | Type reference (TYPE) | I | 1 | 20050324 | |||
| 4 | Constant | Public | Type reference (TYPE) | BOOLE_D | '' | Data element for domain BOOLE: TRUE (='X') and FALSE (=' ') | 20050324 | ||
| 5 | Constant | Public | Type reference (TYPE) | BOOLE_D | 'X' | Data element for domain BOOLE: TRUE (='X') and FALSE (=' ') | 20050324 | ||
| 6 | Instance attribute | Private | Object reference (TYPE REF TO) | DATA | direct reference to the buffer | 20050324 | |||
| 7 | Instance attribute | Protected | Object reference (TYPE REF TO) | CL_BUBAS_MASS_HASHED_BUFFER | Hashed buffer with direct reference methods | 20050324 |
Methods
| # | Method | Level | Visibility | Method type | Description | Created on |
|---|---|---|---|---|---|---|
| 1 | Instance method | Public | Method | no check or upd of hierarchical relationship | 20050324 | |
| 2 | Instance method | Public | Method | Checks the hierarchy consistency (no loops, pointers) | 20050406 | |
| 3 | Instance method | Public | Method | Check if data are missing (default for the child) | 20050324 | |
| 4 | Instance method | Public | Constructor | 20050324 | ||
| 5 | Instance method | Public | Method | Gets number of nodes | 20050324 | |
| 6 | Instance method | Public | Method | Finds node with given node_objnr | 20050324 | |
| 7 | Instance method | Public | Method | Gets the reference to the table of nodes | 20050324 | |
| 8 | Instance method | Public | Method | 20050326 | ||
| 9 | Instance method | Public | Method | Gets the table of nodes | 20050324 | |
| 10 | Instance method | Public | Method | Reference to buffer - for traversal | 20050326 | |
| 11 | Instance method | Public | Method | Inserts new node into hierarchy - update of hie.relationship | 20050324 | |
| 12 | Instance method | Public | Method | Inserts new node into hierarchy - update of hie.relationship | 20050328 | |
| 13 | Instance method | Public | Method | 20050324 | ||
| 14 | Instance method | Public | Method | Adjust Level and root after reading master data | 20050331 |
Events
Class CL_FMHIE_TREE_DATA_STRING has no event.
Types
| # | Type | Visibility | Typing | Associated Type | Description | Created on | Type Source |
|---|---|---|---|---|---|---|---|
| 1 | T_NODES | Public | See coding | 20050324 | t_nodes TYPE HASHED TABLE OF fmhie_s_node_string WITH
UNIQUE KEY node_objnr
|
Method Signatures
Method APPEND_NODES_FROM_EXT_DATA Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IM_T_NODES | Call by reference | Type reference (TYPE) | FMHIE_T_NODE_STRING | Table of hierarchy nodes (of a given hierarchy ID) | 20050324 |
Method APPEND_NODES_FROM_EXT_DATA on class CL_FMHIE_TREE_DATA_STRING has no exception.
Method CHECK_CONSISTENCY Signature
Method CHECK_CONSISTENCY on class CL_FMHIE_TREE_DATA_STRING has no parameter.
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | The traversal finds more nodes than number of data records | 20050406 | ||
| 2 | The traversal finds fewer nodes than number of data records | 20050406 | ||
| 3 | A pointer (child, parent, ...) points to not existing node | 20050406 |
Method CHECK_DATA_MISSING Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | C_NODE | Call by reference | Type reference (TYPE) | FMHIE_S_NODE_STRING | Object number for FM budgeting and AVC | 20050324 | |||
| 2 | E_FLG_DATA_MISSING | Call by reference | Type reference (TYPE) | BOOLE_D | Data element for domain BOOLE: TRUE (='X') and FALSE (=' ') | 20050324 | |||
| 3 | E_NODE_RELAT | Call by reference | Type reference (TYPE) | FMHIE_S_NODE_STRING | Node of the Hierarchy | 20050324 | |||
| 4 | IM_SUPERIOR | Call by reference | Type reference (TYPE) | BOOLE_D | OFF | Data element for domain BOOLE: TRUE (='X') and FALSE (=' ') | 20050324 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | 20050324 |
Method CONSTRUCTOR Signature
Method CONSTRUCTOR on class CL_FMHIE_TREE_DATA_STRING has no parameter.
Method CONSTRUCTOR on class CL_FMHIE_TREE_DATA_STRING has no exception.
Method COUNT Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | R_COUNT | Value transfer | Type reference (TYPE) | SYTABIX | Internal Table, Current Row Index | 20050324 |
Method COUNT on class CL_FMHIE_TREE_DATA_STRING has no exception.
Method FIND_NODE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IM_NODE_ID | Call by reference | Type reference (TYPE) | FMHIE_NODE_ID_STRING | Object number for FM budgeting and AVC | 20050324 | |||
| 2 | R_NODE_DATA | Value transfer | Type reference (TYPE) | FMHIE_S_NODE_STRING | Node of the Hierarchy | 20050331 |
Method FIND_NODE on class CL_FMHIE_TREE_DATA_STRING has no exception.
Method GET_DIRECT_REFERENCE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | R_REF_TREE | Value transfer | Object reference (TYPE REF TO) | DATA | 20050324 |
Method GET_DIRECT_REFERENCE on class CL_FMHIE_TREE_DATA_STRING has no exception.
Method GET_FIRST_ROOT Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | R_ROOT_ID | Value transfer | Type reference (TYPE) | FMHIE_NODE_ID_STRING | Node ID for traversal (character based) | 20050326 |
Method GET_FIRST_ROOT on class CL_FMHIE_TREE_DATA_STRING has no exception.
Method GET_NODES Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | E_T_NODES | Call by reference | Type reference (TYPE) | FMHIE_T_NODE | Table of hierarchy nodes (of a given hierarchy ID) | 20050324 |
Method GET_NODES on class CL_FMHIE_TREE_DATA_STRING has no exception.
Method GET_TREE_DATA_REFERENCE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | R_TREE_DATA | Value transfer | Object reference (TYPE REF TO) | CL_BUBAS_MASS_HASHED_BUFFER | Hashed buffer with direct reference methods | 20050326 |
Method GET_TREE_DATA_REFERENCE on class CL_FMHIE_TREE_DATA_STRING has no exception.
Method INSERT_NODE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IM_FLG_CHECK_ONLY | Call by reference | Type reference (TYPE) | BOOLE_D | OFF | Data element for domain BOOLE: TRUE (='X') and FALSE (=' ') | 20050324 | ||
| 2 | IM_INS_MODE | Call by reference | Type reference (TYPE) | I | Son or sibling? | 20050324 | |||
| 3 | IM_NEW_NODE_ID | Call by reference | Type reference (TYPE) | FMHIE_NODE_ID_STRING | New node | 20050324 | |||
| 4 | IM_RELAT_NODE_ID | Call by reference | Type reference (TYPE) | FMHIE_NODE_ID_STRING | Existing node that will be in relation with the new one | 20050324 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Data has to be read from DB before the insertion | 20050324 | ||
| 2 | Node already exists in the TREE_DATA instance | 20050324 | ||
| 3 | The original node does not exist in the instance | 20050324 |
Method INSERT_NODES Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | E_T_EXISTING_NODES | Call by reference | Type reference (TYPE) | FMHIE_T_NODE_ID_STRING | Relevant when exception node_exists | 20050328 | |||
| 2 | IM_FLG_CHECK_ONLY | Call by reference | Type reference (TYPE) | BOOLE_D | OFF | Data element for domain BOOLE: TRUE (='X') and FALSE (=' ') | 20050328 | ||
| 3 | IM_INS_MODE | Call by reference | Type reference (TYPE) | I | Son or sibling? | 20050328 | |||
| 4 | IM_RELAT_NODE_ID | Call by reference | Type reference (TYPE) | FMHIE_NODE_ID_STRING | Existing node that will be in relation with the new one | 20050328 | |||
| 5 | IM_T_NEW_NODES | Call by reference | Type reference (TYPE) | FMHIE_T_NODE_ID_STRING | New node | 20050328 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Data has to be read from DB before the insertion | 20050328 | ||
| 2 | Node already exists in the TREE_DATA instance | 20050328 | ||
| 3 | The original node does not exist in the instance | 20050328 |
Method REFRESH Signature
Method REFRESH on class CL_FMHIE_TREE_DATA_STRING has no parameter.
Method REFRESH on class CL_FMHIE_TREE_DATA_STRING has no exception.
Method REPAIR_TREE Signature
Method REPAIR_TREE on class CL_FMHIE_TREE_DATA_STRING has no parameter.
Method REPAIR_TREE on class CL_FMHIE_TREE_DATA_STRING has no exception.
History
| Last changed by/on | SAP | 20050411 |
| SAP Release Created in | 600 |