SAP ABAP Class CL_GRRM_API_ANALYTICS (Advanced Analytics)
Hierarchy
GRCFND_A (Software Component) GRC Foundation ABAP
   GRC-RM (Application Component) GRC Risk Management
     GRRM_ENTITY_API (Package) Risk Management APIs
Meta Relationship - Using
# Relationship type Using Short Description Created on
1 Inheritance (c INHERITING FROM c_ref)  CL_GRFN_API_BASIS Basis class for GRC API classes 20080825
2 Interface implementation (CLASS c. INTERFACES i_ref)  IF_GRFN_REPORT Get data for reporting engine 20100426
3 Interface implementation (CLASS c. INTERFACES i_ref)  IF_GRRM_API_ANALYTICS Advanced Analytics 20080825
Properties
Class CL_GRRM_API_ANALYTICS  
Short Description Advanced Analytics    
Super Class CL_GRFN_API_BASIS Basis class for GRC API classes 
Instantiability of a Class 2  Public 
Final    
General Data
Message Class    
Program status     
Category 0   
Package GRRM_ENTITY_API   Risk Management APIs 
Created 20080825   SAP 
Last change 20141106    
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 GRRM0 Type group use (TYPE-POOLS tp)  Type group use (TYPE-POOLS tp)
Interfaces
# Interface Abstract Final Description Created on
1 IF_GRFN_REPORT Get data for reporting engine 20100426
2 IF_GRRM_API_ANALYTICS Advanced Analytics 20080825
Friends
# Friend Modeled only Created on Description
1 CL_GRFN_API_SESSION 20080825 Session Management for GRC APIs
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 MC_CONTINUOUS_DISTRIBUTION Constant Public Type reference (TYPE) GRRM_SEVERITY_DISTRIBUTION 'CD' Severity Distribution 20080910
2 MC_DISCRETE_DISTRIBUTION Constant Public Type reference (TYPE) GRRM_SEVERITY_DISTRIBUTION 'DD' Severity Distribution 20080910
3 MC_ERROR Constant Private Type reference (TYPE) SY-MSGTY 'E' Message Type 20080829
4 MC_HALF_FLOAT Instance attribute Private Type reference (TYPE) F '0.5' 20090227
5 MC_LOG_DISTRIBUTION Constant Public Type reference (TYPE) GRRM_SEVERITY_DISTRIBUTION 'LD' Severity Distribution 20080910
6 MC_MODEL_CLASS Constant Private Type reference (TYPE) CLASSNAME 'CL_GRRM_MODEL_ANALYTICS' Reference type 20080825
7 MC_MSG_CLASS Constant Private Type reference (TYPE) SY-MSGID 'GRRM_ENTITY_API' Reference type 20080829
8 MC_NORMAL_DISTRIBUTION Constant Public Type reference (TYPE) GRRM_SEVERITY_DISTRIBUTION 'ND' Severity Distribution 20080910
9 MO_RANDOM Instance attribute Private Object reference (TYPE REF TO) CL_ABAP_RANDOM Pseudo Random Number Generator 20090227
10 MT_IMPACT_LIST Instance attribute Private Type reference (TYPE) GRRM_T_API_SIM_IMPACT_DISTRIB Simulation Impact Distribution 20080910
11 MT_IMPACT_LOSS Instance attribute Private Type reference (TYPE) YT_IMPACT_CAT_LOSS 20080918
12 MT_RANDOM_NUMBER Instance attribute Private Type reference (TYPE) YT_RANDOM_NUMBER 20080922
13 MT_RESULT_LIST Instance attribute Private Type reference (TYPE) GRRM_T_API_SIM_RESULT_LIST Simulation Result List 20081107
14 MT_RISK_LIST Instance attribute Private Type reference (TYPE) GRRM_T_API_SIM_RISK_LIST Simulation risk list 20080910
15 MT_RUN_LOSS Instance attribute Private Type reference (TYPE) YT_RUN_LOSS 20080918
16 MV_CURRENCY Instance attribute Private Type reference (TYPE) GRFN_CURRENCY Currency 20081014
17 MV_PERCENTILE Instance attribute Private Type reference (TYPE) GRRM_SIMULATION_PERCENTILE 20080918
18 MV_RUN Instance attribute Private Type reference (TYPE) I 20081208
Methods
# Method Level Visibility Method type Description Created on
1 ADJUST_AMOUNT_TO_CURRENCY Instance method Private Method Adjust the Amount figures to the currency changes 20080904
2 CALCULATE_DECIMALS Instance method Private Method Generate the decimals for a particular value. 20081020
3 CALCULATE_INVNORMALQ Instance method Private Method Generate the Inverse Normal distribution factor 20081003
4 CHECK_AUTH_SIMULATION Static method Public Method 20090204
5 GENERATE_IMPACT_RESULT Instance method Private Method Generate the impact category result for simulation at end 20080919
6 GENERATE_INVNORMALCURVE_DIST Instance method Private Method Generate the Normal Distribution 20090330
7 GENERATE_INVNORMAL_DIST Instance method Private Method Generate the Inverse Normal distribution 20081003
8 GENERATE_LOGNORMAL_CURVE Instance method Public Method Generate the Curve for the Normal Distribution 20090326
9 GENERATE_NORMAL_CURVE Instance method Public Method Generate the Curve for the Normal Distribution 20081006
10 GENERATE_NORMAL_DIST Instance method Private Method Generate the Normal Distribution 20081006
11 GENERATE_RANDOM_NUMBER Instance method Private Method Generate the random impact for the simulation 20080902
12 GENERATE_RESULT_CHART Instance method Private Method Generate the result chart 20081113
13 GENERATE_SIMULATION_RESULT Instance method Private Method Generate the result for simulation at the end 20080918
14 GET Static method Private Method 20080827
15 GET_CONTINUOUS_IMPACT Instance method Private Method Get the random impact based on continuous distribution. 20080910
16 GET_DECIMAL_REF Instance method Private Method 20081020
17 GET_DISCRETE_IMPACT Instance method Private Method Get the random impact based on discrete distribution. 20080910
18 GET_LOGNORMAL_IMPACT Instance method Private Method Get the random impact based on log - normal distribution. 20080911
19 GET_LOSS_FOR_IMPACT Instance method Private Method Get the random loss based on the severity distribution type 20080911
20 GET_NORMAL_IMPACT Instance method Private Method Get the random impact based on normal distribution. 20080911
21 GET_RISK_DETAILS Instance method Private Method 20080901
22 GET_SIMULATION_PERCENTILE Static method Private Method 20080918
23 ITERATE_INFLUENCED_RISK Instance method Private Method Iterate each risk for the frequency distribution times 20080911
24 ITERATE_RISK Instance method Private Method Iterate each risk for the frequency distribution times 20080911
25 QUERY Instance method Public Method 20100622
26 RUN_SIMULATION Instance method Private Method Run the Entire simulation 20080911
27 SIMULATE_NORMAL_CURVE Instance method Private Method Generate the Nornal curve after simulation. 20081017
Events
Class CL_GRRM_API_ANALYTICS has no event.
Types
# Type Visibility Typing Associated Type Description Created on Type Source
1 YS_DEC_REF Private See coding 20081020 BEGIN OF ys_dec_ref, value TYPE i, decimals TYPE i, END OF ys_dec_ref
2 YS_IMPACT_CAT_LOSS Private See coding 20080918 BEGIN OF ys_impact_cat_loss, run TYPE i, impact_cat_id TYPE grrm_cc_id, impact TYPE grrm_simulation_amount, END OF ys_impact_cat_loss
3 YS_RANDOM_NUMBER Private See coding 20080922 BEGIN OF ys_random_number, number TYPE f, read TYPE abap_bool, END OF ys_random_number
4 YS_RUN_LOSS Private See coding 20080918 BEGIN OF ys_run_loss, run TYPE i, impact TYPE grrm_simulation_amount, END OF ys_run_loss
5 YS_SIMULATE_CURVE Private See coding 20081017 BEGIN OF ys_simulate_curve, round TYPE f, value TYPE f, END OF ys_simulate_curve
6 YT_DEC_REF Private See coding 20081020 yt_dec_ref TYPE STANDARD TABLE OF ys_dec_ref
7 YT_IMPACT_CAT_LOSS Private See coding 20080918 yt_impact_cat_loss TYPE HASHED TABLE OF ys_impact_cat_loss WITH UNIQUE KEY run impact_cat_id
8 YT_IMPACT_LOSS_SORTED Private See coding 20090416 yt_impact_loss_sorted TYPE SORTED TABLE OF ys_impact_cat_loss WITH NON-UNIQUE KEY impact_cat_id
9 YT_RANDOM_NUMBER Private See coding 20080922 yt_random_number TYPE STANDARD TABLE OF ys_random_number
10 YT_RUN_LOSS Private See coding 20080918 yt_run_loss TYPE SORTED TABLE OF ys_run_loss WITH UNIQUE KEY run
11 YT_SIMULATE_CURVE Private See coding 20081017 yt_simulate_curve TYPE STANDARD TABLE OF ys_simulate_curve
Method Signatures

Method ADJUST_AMOUNT_TO_CURRENCY Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_AMOUNT Value transfer Type reference (TYPE) GRRM_SIMULATION_AMOUNT Currency amount 20080904
2 Importing IV_NEW_CURRENCY Value transfer Type reference (TYPE) GRFN_CURRENCY Currency 20080904
3 Importing IV_OLD_CURRENCY Value transfer Type reference (TYPE) GRFN_CURRENCY Currency 20080904
4 Returning RV_NEW_AMOUNT Value transfer Type reference (TYPE) GRRM_SIMULATION_AMOUNT Currency amount 20080904
# Exception Resumable Description Created on
1 CX_GRFN_EXCEPTION Generic GRC API exception 20080904

Method CALCULATE_DECIMALS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_VALUE Value transfer Type reference (TYPE) F 20081020
2 Returning RV_DECIMALS Value transfer Type reference (TYPE) GRFN_DECIMAL Decimals 20081020

Method CALCULATE_DECIMALS on class CL_GRRM_API_ANALYTICS has no exception.

Method CALCULATE_INVNORMALQ Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_PROBABILITY Value transfer Type reference (TYPE) F 20081003
2 Returning RV_RESULT Value transfer Type reference (TYPE) F 20081003

Method CALCULATE_INVNORMALQ on class CL_GRRM_API_ANALYTICS has no exception.

Method CHECK_AUTH_SIMULATION Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IO_SESSION Call by reference Object reference (TYPE REF TO) CL_GRFN_API_SESSION Session Management for GRC APIs 20090204
2 Importing IV_OBJECT_ID Call by reference Type reference (TYPE) GRFN_API_OBJECT_ID Object ID 20090204
3 Importing IV_OPERATION Call by reference Type reference (TYPE) GRFN_API_OPERATION_ID The ID of the operation 20090204
4 Returning RV_AUTHORIZED Value transfer Type reference (TYPE) ABAP_BOOL 20090204

Method CHECK_AUTH_SIMULATION on class CL_GRRM_API_ANALYTICS has no exception.

Method GENERATE_IMPACT_RESULT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_IMPACT_RESULT Call by reference Type reference (TYPE) GRRM_T_API_SIM_RESULT_LIST simulation result 20080919
2 Importing IV_NO_RUNS Value transfer Type reference (TYPE) I 20080919

Method GENERATE_IMPACT_RESULT on class CL_GRRM_API_ANALYTICS has no exception.

Method GENERATE_INVNORMALCURVE_DIST Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_MEAN_VAL Value transfer Type reference (TYPE) F 20090330
2 Importing IV_PROBABILITY Value transfer Type reference (TYPE) F 20090330
3 Importing IV_STD_DEV Value transfer Type reference (TYPE) F 20090330
4 Returning RV_RESULT Value transfer Type reference (TYPE) F 20090330

Method GENERATE_INVNORMALCURVE_DIST on class CL_GRRM_API_ANALYTICS has no exception.

Method GENERATE_INVNORMAL_DIST Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_MEAN_VAL Value transfer Type reference (TYPE) F 20081003
2 Importing IV_PROBABILITY Value transfer Type reference (TYPE) F 20081003
3 Importing IV_STD_DEV Value transfer Type reference (TYPE) F 20081003
4 Returning RV_RESULT Value transfer Type reference (TYPE) F 20081003
# Exception Resumable Description Created on
1 CX_GRFN_EXCEPTION Generic GRC API exception 20081003

Method GENERATE_LOGNORMAL_CURVE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_CURVE Call by reference Type reference (TYPE) GRRM_T_API_SIM_RESULT_CURVE Simulation Curve value table 20090326
2 Importing IV_MEAN_VAL Value transfer Type reference (TYPE) F 20090326
3 Importing IV_STD_DEV Value transfer Type reference (TYPE) F 20090326
# Exception Resumable Description Created on
1 CX_GRFN_EXCEPTION Generic GRC API exception 20090327

Method GENERATE_NORMAL_CURVE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_CURVE Call by reference Type reference (TYPE) GRRM_T_API_SIM_RESULT_CURVE Simulation Curve value table 20081006
2 Importing IV_MEAN_VAL Value transfer Type reference (TYPE) F 20081006
3 Importing IV_STD_DEV Value transfer Type reference (TYPE) F 20081006
# Exception Resumable Description Created on
1 CX_GRFN_EXCEPTION Generic GRC API exception 20081006

Method GENERATE_NORMAL_DIST Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_MEAN_VAL Value transfer Type reference (TYPE) F 20081006
2 Importing IV_PROBABILITY Value transfer Type reference (TYPE) F 20081006
3 Importing IV_STD_DEV Value transfer Type reference (TYPE) F 20081006
4 Returning RV_RESULT Value transfer Type reference (TYPE) F 20081006

Method GENERATE_NORMAL_DIST on class CL_GRRM_API_ANALYTICS has no exception.

Method GENERATE_RANDOM_NUMBER Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning RV_IMPACT Value transfer Type reference (TYPE) F 20080902

Method GENERATE_RANDOM_NUMBER on class CL_GRRM_API_ANALYTICS has no exception.

Method GENERATE_RESULT_CHART Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_CHART Call by reference Type reference (TYPE) GRRM_T_API_SIM_RESULT_CHART List of random numbers for simulations 20081113

Method GENERATE_RESULT_CHART on class CL_GRRM_API_ANALYTICS has no exception.

Method GENERATE_SIMULATION_RESULT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_NO_RUNS Value transfer Type reference (TYPE) I 20080918
2 Returning RS_RESULT Value transfer Type reference (TYPE) GRRM_S_API_SIM_RESULT simulation result 20080918
# Exception Resumable Description Created on
1 CX_GRFN_EXCEPTION Generic GRC API exception 20090219

Method GET Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IO_SESSION Call by reference Object reference (TYPE REF TO) CL_GRFN_API_SESSION Session Management for GRC APIs 20080827
2 Importing IV_OBJECT_ID Call by reference Type reference (TYPE) GRFN_API_OBJECT_ID Object ID 20080827
3 Returning RO_RESULT Value transfer Object reference (TYPE REF TO) CL_GRRM_API_ANALYTICS Advanced Analytics 20080827

Method GET on class CL_GRRM_API_ANALYTICS has no exception.

Method GET_CONTINUOUS_IMPACT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IS_IMPACT Call by reference Type reference (TYPE) GRRM_S_API_SIM_IMPACT_DISTRIB Object ID 20080910
2 Importing IV_RANDOM_NUMBER Value transfer Type reference (TYPE) F Probability 20080910
3 Returning RV_IMPACT Value transfer Type reference (TYPE) GRFN_AMOUNT Amount 20080910

Method GET_CONTINUOUS_IMPACT on class CL_GRRM_API_ANALYTICS has no exception.

Method GET_DECIMAL_REF Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_TABLE Call by reference Type reference (TYPE) YT_DEC_REF 20081020

Method GET_DECIMAL_REF on class CL_GRRM_API_ANALYTICS has no exception.

Method GET_DISCRETE_IMPACT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IS_IMPACT Call by reference Type reference (TYPE) GRRM_S_API_SIM_IMPACT_DISTRIB Impact Category distibution data 20080910
2 Importing IV_RANDOM_NUMBER Value transfer Type reference (TYPE) F Probability 20080910
3 Returning RV_IMPACT Value transfer Type reference (TYPE) GRFN_AMOUNT Amount 20080910

Method GET_DISCRETE_IMPACT on class CL_GRRM_API_ANALYTICS has no exception.

Method GET_LOGNORMAL_IMPACT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IS_IMPACT Call by reference Type reference (TYPE) GRRM_S_API_SIM_IMPACT_DISTRIB Impact Category distibution data 20080911
2 Importing IV_RANDOM_NUMBER Value transfer Type reference (TYPE) F Probability 20080911
3 Returning RV_IMPACT Value transfer Type reference (TYPE) GRFN_AMOUNT Amount 20080911
# Exception Resumable Description Created on
1 CX_GRFN_EXCEPTION Generic GRC API exception 20081006

Method GET_LOSS_FOR_IMPACT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IS_IMPACT Call by reference Type reference (TYPE) GRRM_S_API_SIM_IMPACT_DISTRIB Impact Category distibution data 20080911
2 Returning RV_IMPACT Value transfer Type reference (TYPE) GRFN_AMOUNT Amount 20080911
# Exception Resumable Description Created on
1 CX_GRFN_EXCEPTION Generic GRC API exception 20081006

Method GET_NORMAL_IMPACT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IS_IMPACT Call by reference Type reference (TYPE) GRRM_S_API_SIM_IMPACT_DISTRIB Impact Category distibution data 20080911
2 Importing IV_RANDOM_NUMBER Value transfer Type reference (TYPE) F Probability 20080911
3 Returning RV_IMPACT Value transfer Type reference (TYPE) GRFN_AMOUNT Amount 20080911
# Exception Resumable Description Created on
1 CX_GRFN_EXCEPTION Generic GRC API exception 20081003

Method GET_RISK_DETAILS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_IMPACT_LIST Call by reference Type reference (TYPE) GRRM_T_API_SIM_IMPACT_DISTRIB Simulation Impact Distribution 20080901
2 Changing CT_RISK_LIST Call by reference Type reference (TYPE) GRRM_T_API_SIM_RISK_LIST Simulation risk list 20080901
3 Importing IV_CURRENCY Value transfer Type reference (TYPE) GRFN_CURRENCY Currency 20080904
# Exception Resumable Description Created on
1 CX_GRFN_EXCEPTION Generic GRC API exception 20080901

Method GET_SIMULATION_PERCENTILE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning RV_VALUE Value transfer Type reference (TYPE) GRRM_SIMULATION_PERCENTILE Simulation Percentile 20080918

Method GET_SIMULATION_PERCENTILE on class CL_GRRM_API_ANALYTICS has no exception.

Method ITERATE_INFLUENCED_RISK Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IS_RISK_DATA Call by reference Type reference (TYPE) GRRM_S_API_SIM_RISK_LIST Simulation Risk List 20080911
2 Importing IV_RANDOM_NUMBER Value transfer Type reference (TYPE) F 20080911
3 Returning RV_IMPACT Value transfer Type reference (TYPE) GRRM_SIMULATION_AMOUNT Amount 20080911
# Exception Resumable Description Created on
1 CX_GRFN_EXCEPTION Generic GRC API exception 20081020

Method ITERATE_RISK Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IS_RISK_DATA Call by reference Type reference (TYPE) GRRM_S_API_SIM_RISK_LIST Simulation Risk List 20080911
2 Returning RV_IMPACT Value transfer Type reference (TYPE) GRRM_SIMULATION_AMOUNT Amount 20080911
# Exception Resumable Description Created on
1 CX_GRFN_EXCEPTION Generic GRC API exception 20081017

Method QUERY Signature

Method QUERY on class CL_GRRM_API_ANALYTICS has no parameter.
Method QUERY on class CL_GRRM_API_ANALYTICS has no exception.

Method RUN_SIMULATION Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ES_RESULT Call by reference Type reference (TYPE) GRRM_S_API_SIM_RESULT simulation result 20080918
2 Exporting ET_CHART Call by reference Type reference (TYPE) GRRM_T_API_SIM_RESULT_CHART List of random numbers for simulations 20081113
3 Exporting ET_IMPACT_RESULT Call by reference Type reference (TYPE) GRRM_T_API_SIM_RESULT_LIST Simulation Result List 20080922
4 Importing IV_RUNS Call by reference Type reference (TYPE) GRRM_NUMBER_WD Number 20080911
# Exception Resumable Description Created on
1 CX_GRFN_EXCEPTION Generic GRC API exception 20081020

Method SIMULATE_NORMAL_CURVE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_CHART Call by reference Type reference (TYPE) GRRM_T_API_SIM_RESULT_CURVE Simulation Curve value table 20081017
2 Importing IS_IMPACT_DATA Call by reference Type reference (TYPE) GRRM_S_API_SIM_IMPACT_DISTRIB Impact Category distibution data 20081017
# Exception Resumable Description Created on
1 CX_GRFN_EXCEPTION Generic GRC API exception 20081017
History
Last changed by/on SAP  20141106 
SAP Release Created in 300