SAP ABAP Class CL_GHO_FORMULA_CALCULATOR (Formula Calculator)
Hierarchy
SAP_APPL (Software Component) Logistics and Accounting
   PP-PN-ALN (Application Component) Production Allocation
     APPL_GHO_ALLOC_BE (Package) Backend Logic for Allocation
Properties
Class CL_GHO_FORMULA_CALCULATOR  
Short Description Formula Calculator    
Super Class    
Instantiability of a Class 2  Public 
Final    
General Data
Message Class    
Program status     
Category 0   
Package APPL_GHO_ALLOC_BE   Backend Logic for Allocation 
Created 20130924   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_GHO_FDT_CM_FACTOR_TL Forward declaration class (CLASS c DEFINITION DEFERRED)  Forward declaration class (CLASS c DEFINITION DEFERRED)
Interfaces
Class CL_GHO_FORMULA_CALCULATOR has no interface implemented.
Friends
Class CL_GHO_FORMULA_CALCULATOR has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 MO_ALLOC_DB Instance attribute Private Object reference (TYPE REF TO) CL_GHO_ALLOC_DB DB Layer 20131108
2 MO_FACTOR_UTIL_DB Instance attribute Private Object reference (TYPE REF TO) CL_GHO_DB_FACTORS_UTIL DB Class for CRUD on Oil and Gas Entities 20131108
3 MO_OIL_FIELD_DB Instance attribute Private Object reference (TYPE REF TO) CL_GHO_DB_PE DB Class for CRUD on Oil and Gas Entities 20131108
4 MT_CL_FACTORS_H Instance attribute Private Type reference (TYPE) GHO_T_ONG_FACT_HEADER_DB Table type for object Factors header in database 20131108
5 MT_CL_FACTORS_I Instance attribute Private Type reference (TYPE) GHO_T_ONG_FIELD_FACT_ITEM_DB Table type for Oil Field factor items in database 20131108
6 MT_DATA_OBJ_ID_VALUE Instance attribute Private Type reference (TYPE) CL_GHO_FDT_CM_FACTOR_TL=>TT_DATA_OBJ_NAME_VALUE 20131108
7 MT_MESSAGE Instance attribute Private Type reference (TYPE) BAPIRETTAB Table with BAPI Return Information 20131108
8 MT_NW_OBJECTS Instance attribute Private Type reference (TYPE) GHO_T_ALLOC_NET_LIST_DET Table Type for Network Lists 20131108
9 MT_OF_FACTORS_H Instance attribute Private Type reference (TYPE) GHO_T_ONG_FACT_HEADER_DB Table type for object Factors header in database 20131108
10 MT_OF_FACTORS_I Instance attribute Private Type reference (TYPE) GHO_T_ONG_FIELD_FACT_ITEM_DB Table type for Oil Field factor items in database 20131108
11 MV_ALLOC_MATERIAL Instance attribute Private Type reference (TYPE) GHO_ALLOC_MATERIAL Material relevant for allocation 20131108
12 MV_ALLOC_TYPE Instance attribute Private Type reference (TYPE) GHO_ALLOC_TYPE Allocation Type 20131108
13 MV_ERROR Instance attribute Private Type reference (TYPE) ABAP_BOOL 20131108
14 MV_FORMULA_ID Instance attribute Private Type reference (TYPE) FDT_UUID FDT: Universal Unique Identifier 20131108
15 MV_FREQUENCY Instance attribute Private Type reference (TYPE) GHO_ALLOC_FREQUENCY Allocation Frequency 20131108
16 MV_FROM_DATE Instance attribute Private Type reference (TYPE) SYDATUM Current Date of Application Server 20131108
17 MV_FROM_TIME Instance attribute Private Type reference (TYPE) SYUZEIT Current Time of Application Server 20131108
18 MV_GHO_OBJ_ID Instance attribute Private Type reference (TYPE) GHO_NETOBJ_ID_EXT External ID for Network Object 20131108
19 MV_MEDIUM Instance attribute Private Type reference (TYPE) MEDIU Medium 20131108
20 MV_NET_ID Instance attribute Private Type reference (TYPE) GHO_PFN_ID ID of the Production Flow Network 20131108
21 MV_OBJ_ID Instance attribute Private Type reference (TYPE) GHO_NODE_ID ID of the Node in the Network 20131108
22 MV_OIL_FIELD Instance attribute Private Type reference (TYPE) GHO_PE_ID Oil and Gas Entity ID 20131108
23 MV_PARENT_NW_ID Instance attribute Private Type reference (TYPE) TPLNR Functional Location 20131108
24 MV_PROD_TIMESTAMP_FROM Instance attribute Private Type reference (TYPE) TZNTSTMPS UTC Time Stamp in Short Form (YYYYMMDDhhmmss) 20131108
25 MV_PROD_TIMESTAMP_TO Instance attribute Private Type reference (TYPE) TZNTSTMPS UTC Time Stamp in Short Form (YYYYMMDDhhmmss) 20131108
26 MV_QUANTITY Instance attribute Private Type reference (TYPE) GHO_QUANTITY Quantity Measured/Planned against the Node:Vol,Mass,Energy 20131108
27 MV_QUANTITY_TYPE Instance attribute Private Type reference (TYPE) GHO_QTY_TYPE Quantity Type 20131108
28 MV_STD_UOM Instance attribute Private Type reference (TYPE) MSEHI Unit of Measurement 20131108
29 MV_TO_DATE Instance attribute Private Type reference (TYPE) SYDATUM Current Date of Application Server 20131108
30 MV_TO_TIME Instance attribute Private Type reference (TYPE) SYUZEIT Current Time of Application Server 20131108
Methods
# Method Level Visibility Method type Description Created on
1 BUILD_NODE_QUANTITY_MAP Instance method Private Method Build quantity map 20131108
2 CALC_FORMULA_BASED_QUANTITY Instance method Public Method Calculate Formula based quantity 20131108
3 CONSTRUCTOR Instance method Public Constructor Constructor 20131108
4 CONVERT_QUANTITY_FOR_UOM Static method Public Method COnverty from one UOM to other 20131108
5 EXECUTE_BRF_EXPRESSION Instance method Private Method Execute BRF+ exp 20131108
6 FIND_DEP_MAT_QNTY_ONSELF_NODE Instance method Private Method FInd dep material quanty on self node 20131108
7 FIND_FORMULA_ON_NODE Instance method Private Method Find BRF+ formula on node 20131108
8 FIND_NEIGHBOURING_NODES Instance method Private Method Find neighbouring node 20131108
9 FIND_NODE_QUANTITY Instance method Private Method Find node quantity 20131108
10 FIND_PARENT_NETWORK_ID Instance method Private Method Find parent network id 20131108
11 GET_FACTORS_FOR_CLUSTER Instance method Private Method Get factors for related cluster 20131108
12 GET_OBJECT_LIST Instance method Private Method Get all the Network Object Lists for a Production network 20131108
13 GET_OIL_FIELD_FACTORS Instance method Private Method Get related oil fileds 20131108
14 SUM_STD_QTY_FOR_QTY_TYPE Instance method Private Method Sum all quantity for same qty type at std 20131108
15 SUM_THEO_QTY_FOR_QTY_TYPE Instance method Private Method Sum all the quantity for same qty type at Theo 20131108
Events
Class CL_GHO_FORMULA_CALCULATOR has no event.
Types
# Type Visibility Typing Associated Type Description Created on Type Source
1 TS_QUANTITY Private See coding 20131108 BEGIN OF ts_quantity, quantity_type TYPE gho_qty_type, quantity TYPE gho_quantity, END OF ts_quantity
2 TT_QUANTITY Private See coding 20131108 tt_quantity TYPE STANDARD TABLE OF ts_quantity WITH KEY quantity_type
Method Signatures

Method BUILD_NODE_QUANTITY_MAP Signature

Method BUILD_NODE_QUANTITY_MAP on class CL_GHO_FORMULA_CALCULATOR has no parameter.
Method BUILD_NODE_QUANTITY_MAP on class CL_GHO_FORMULA_CALCULATOR has no exception.

Method CALC_FORMULA_BASED_QUANTITY 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) BAPIRETTAB Table with BAPI Return Information 20131108
2 Exporting EV_QUANTITY Call by reference Type reference (TYPE) GHO_QUANTITY Quantity Measured/Planned against the Node:Vol,Mass,Energy 20131108

Method CALC_FORMULA_BASED_QUANTITY on class CL_GHO_FORMULA_CALCULATOR has no exception.

Method CONSTRUCTOR Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_ALLOC_MATERIAL Call by reference Type reference (TYPE) GHO_ALLOC_MATERIAL Material relevant for allocation 20131108
2 Importing IV_ALLOC_TYPE Call by reference Type reference (TYPE) GHO_ALLOC_TYPE Allocation Type 20131108
3 Importing IV_FREQUENCY Call by reference Type reference (TYPE) GHO_ALLOC_FREQUENCY Allocation Frequency 20131108
4 Importing IV_MEDIUM Call by reference Type reference (TYPE) MEDIU Medium 20131108
5 Importing IV_NET_ID Call by reference Type reference (TYPE) GHO_PFN_ID ID of the Production Flow Network 20131108
6 Importing IV_OBJ_ID Call by reference Type reference (TYPE) GHO_NODE_ID ID of the Node in the Network 20131108
7 Importing IV_PROD_TIMESTAMP_FROM Call by reference Type reference (TYPE) TZNTSTMPS UTC Time Stamp in Short Form (YYYYMMDDhhmmss) 20131108
8 Importing IV_PROD_TIMESTAMP_TO Call by reference Type reference (TYPE) TZNTSTMPS UTC Time Stamp in Short Form (YYYYMMDDhhmmss) 20131108
9 Importing IV_QUANTITY_TYPE Call by reference Type reference (TYPE) GHO_QTY_TYPE Quantity Type 20131108
10 Importing IV_STD_UOM Call by reference Type reference (TYPE) MSEHI Unit of Measurement 20131108

Method CONSTRUCTOR on class CL_GHO_FORMULA_CALCULATOR has no exception.

Method CONVERT_QUANTITY_FOR_UOM Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_ERROR Call by reference Type reference (TYPE) ABAP_BOOL 20131108
2 Exporting EV_QUANTITY_OUT Call by reference Type reference (TYPE) GHO_QUANTITY Quantity Measured/Planned against the Node:Vol,Mass,Energy 20131108
3 Importing IV_ALLOC_MATERIAL Call by reference Type reference (TYPE) GHO_ALLOC_MATERIAL Material relevant for allocation 20131108
4 Importing IV_ALLOC_TYPE Call by reference Type reference (TYPE) GHO_ALLOC_TYPE Allocation Type 20131108
5 Importing IV_FREQUENCY Call by reference Type reference (TYPE) GHO_ALLOC_FREQUENCY Allocation Frequency 20131108
6 Importing IV_MEDIU Call by reference Type reference (TYPE) MEDIU Medium 20131108
7 Importing IV_NETID Call by reference Type reference (TYPE) GHO_PFN_ID ID of the Production Flow Network 20131108
8 Importing IV_NETOBJ Call by reference Type reference (TYPE) GHO_NODE_ID ID of the Node in the Network 20131108
9 Importing IV_QUANTITY_IN Call by reference Type reference (TYPE) GHO_QUANTITY Quantity Measured/Planned against the Node:Vol,Mass,Energy 20131108
10 Importing IV_QUANTITY_TYPE Call by reference Type reference (TYPE) GHO_QTY_TYPE Quantity Type 20131108
11 Importing IV_UNIT_IN Call by reference Type reference (TYPE) MSEHI Unit of Measurement 20131108
12 Importing IV_UNIT_OUT Call by reference Type reference (TYPE) MSEHI Unit of Measurement 20131108

Method CONVERT_QUANTITY_FOR_UOM on class CL_GHO_FORMULA_CALCULATOR has no exception.

Method EXECUTE_BRF_EXPRESSION Signature

Method EXECUTE_BRF_EXPRESSION on class CL_GHO_FORMULA_CALCULATOR has no parameter.
Method EXECUTE_BRF_EXPRESSION on class CL_GHO_FORMULA_CALCULATOR has no exception.

Method FIND_DEP_MAT_QNTY_ONSELF_NODE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_QUANTITY Call by reference Type reference (TYPE) TT_QUANTITY Functional Location (Table) 20131108

Method FIND_DEP_MAT_QNTY_ONSELF_NODE on class CL_GHO_FORMULA_CALCULATOR has no exception.

Method FIND_FORMULA_ON_NODE Signature

Method FIND_FORMULA_ON_NODE on class CL_GHO_FORMULA_CALCULATOR has no parameter.
Method FIND_FORMULA_ON_NODE on class CL_GHO_FORMULA_CALCULATOR has no exception.

Method FIND_NEIGHBOURING_NODES Signature

Method FIND_NEIGHBOURING_NODES on class CL_GHO_FORMULA_CALCULATOR has no parameter.
Method FIND_NEIGHBOURING_NODES on class CL_GHO_FORMULA_CALCULATOR has no exception.

Method FIND_NODE_QUANTITY Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_QUANTITY Call by reference Type reference (TYPE) TT_QUANTITY 20131108
2 Importing IS_NW_OBJECT Call by reference Type reference (TYPE) GHO_S_ALLOC_NET_LIST_DET Structure for Network List 20131108

Method FIND_NODE_QUANTITY on class CL_GHO_FORMULA_CALCULATOR has no exception.

Method FIND_PARENT_NETWORK_ID Signature

Method FIND_PARENT_NETWORK_ID on class CL_GHO_FORMULA_CALCULATOR has no parameter.
Method FIND_PARENT_NETWORK_ID on class CL_GHO_FORMULA_CALCULATOR has no exception.

Method GET_FACTORS_FOR_CLUSTER Signature

Method GET_FACTORS_FOR_CLUSTER on class CL_GHO_FORMULA_CALCULATOR has no parameter.
Method GET_FACTORS_FOR_CLUSTER on class CL_GHO_FORMULA_CALCULATOR has no exception.

Method GET_OBJECT_LIST Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_MESSAGES Call by reference Type reference (TYPE) /PLMB/T_SPI_MSG Message 20131108
2 Exporting ET_NW_OBJECTS Call by reference Type reference (TYPE) GHO_T_ALLOC_NET_LIST_DET Table Type for Network Lists for BO 20131108
3 Importing IV_NETID Call by reference Type reference (TYPE) GHO_NETOBJ_ID_EXT External ID for Network Object 20131108
4 Importing IV_VALID_FROM_DATE Call by reference Type reference (TYPE) DATS Field of type DATS 20131108
5 Importing IV_VALID_FROM_TIME Call by reference Type reference (TYPE) TIMS Field of type TIMS 20131108
6 Importing IV_VALID_TO_DATE Call by reference Type reference (TYPE) DATS Field of type DATS 20131108

Method GET_OBJECT_LIST on class CL_GHO_FORMULA_CALCULATOR has no exception.

Method GET_OIL_FIELD_FACTORS Signature

Method GET_OIL_FIELD_FACTORS on class CL_GHO_FORMULA_CALCULATOR has no parameter.
Method GET_OIL_FIELD_FACTORS on class CL_GHO_FORMULA_CALCULATOR has no exception.

Method SUM_STD_QTY_FOR_QTY_TYPE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_QUANTITY Call by reference Type reference (TYPE) TT_QUANTITY 20131108
2 Importing IV_MATERIAL Call by reference Type reference (TYPE) GHO_ALLOC_MATERIAL Material relevant for allocation 20131108
3 Importing IV_OBJ_ID Call by reference Type reference (TYPE) GHO_NODE_ID 20131108
4 Importing IV_QUANTITY_TYPE Call by reference Type reference (TYPE) GHO_QTY_TYPE Quantity Type 20131108

Method SUM_STD_QTY_FOR_QTY_TYPE on class CL_GHO_FORMULA_CALCULATOR has no exception.

Method SUM_THEO_QTY_FOR_QTY_TYPE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_QUANTITY Call by reference Type reference (TYPE) TT_QUANTITY 20131108
2 Importing IV_MATERIAL Call by reference Type reference (TYPE) GHO_ALLOC_MATERIAL Material relevant for allocation 20131108
3 Importing IV_OBJ_ID Call by reference Type reference (TYPE) GHO_NODE_ID ID of the Node in the Network 20131108
4 Importing IV_QUANTITY_TYPE Call by reference Type reference (TYPE) GHO_QTY_TYPE Quantity Type 20131108

Method SUM_THEO_QTY_FOR_QTY_TYPE on class CL_GHO_FORMULA_CALCULATOR has no exception.
History
Last changed by/on SAP  20140121 
SAP Release Created in