SAP ABAP Class /IWFND/CL_METERING_DB (Metering DB access)
Hierarchy
SAP_GWFND (Software Component) SAP Gateway Foundation
   OPU-FND-CS (Application Component) IWF Common Services
     /IWFND/COS_MET (Package) GW Framework - Metering
Properties
Class /IWFND/CL_METERING_DB  
Short Description Metering DB access    
Super Class    
Instantiability of a Class 2  Public 
Final    
General Data
Message Class    
Program status     
Category 0   
Package /IWFND/COS_MET   GW Framework - Metering 
Created 20110311   SAP 
Last change 20141120    
Shared Memory-enabled    
Fixed point arithmetic    
Unicode checks active    
Forward declarations
# Type group / Object type Type Type Description
1 /IWFND/CL_METERING_DB Forward declaration class (CLASS c DEFINITION DEFERRED)  Forward declaration class (CLASS c DEFINITION DEFERRED)
2 ABAP Type group use (TYPE-POOLS tp)  Type group use (TYPE-POOLS tp)
Interfaces
Class /IWFND/CL_METERING_DB has no interface implemented.
Friends
Class /IWFND/CL_METERING_DB has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 GC_AGGREGATION_PERIOD Constant Private See coding 20110311
2 GC_BATCH_SIZE Constant Private Type reference (TYPE) I 500 Number of entries processed in one batch 20121024
3 GC_IWF_UNIT Constant Private Type reference (TYPE) RSUVM_UNIT '0371' ID for unit of system measurement objects 20110608
4 GC_ODC_UNIT Constant Private Type reference (TYPE) RSUVM_UNIT '0370' ID for unit of system measurement objects 20110608
5 MT_COCCOL Instance attribute Private Type reference (TYPE) T_COCCOL 20120323
6 MT_GW_USED Instance attribute Private Type reference (TYPE) /IWFND/T_MET_AGR_GW_USED Table Type: Metering Usage of Gateway 20110606
7 MT_GW_USED_DB Instance attribute Private Type reference (TYPE) /IWFND/T_MET_AGR_GW_USED Table Type: Metering Usage of Gateway (DB) 20110606
8 MT_METAGR Instance attribute Private Type reference (TYPE) /IWFND/T_METAGR Metering Data Aggregation 20120321
9 MT_METAGR_DB Instance attribute Private Type reference (TYPE) /IWFND/T_METAGR Metering Data Aggregation 20120321
10 MT_MET_AGR Instance attribute Private Type reference (TYPE) /IWFND/T_MET_AGR Metering Data Aggregation 20110603
11 MT_MET_AGR_DB Instance attribute Private Type reference (TYPE) /IWFND/T_MET_AGR Metering Data Aggregation (DB) 20110606
12 MT_MET_COL Instance attribute Private Type reference (TYPE) /IWFND/T_MET_COL Metering Data Collector 20110603
13 MT_USAGE_MEASURE Instance attribute Private Type reference (TYPE) T_USAGE_MEASURE 20140212
14 MV_CLIENT Instance attribute Private Type reference (TYPE) MANDT Current client (SY-MANDT) 20121024
15 MV_SUSAGE_INSERT_EXISTS Instance attribute Private Type reference (TYPE) ABAP_BOOL 20140214
Methods
# Method Level Visibility Method type Description Created on
1 AGGREGATE_COL_DATA Instance method Public Method Aggregate from Metering Collector 20110526
2 CHECK_USAGE_MEASUREMNT Instance method Private Method Check if function module SUSAGE_INSERT exists in this system 20140214
3 COLLECT_DATES Instance method Private Method Collect all dates from single collection 20110606
4 CONVERT Instance method Private Method Convert metering data 20110311
5 DELETE_DATA Instance method Public Method Delete Aggregated data 20110607
6 DEQUEUE_AGG_DATA Instance method Private Method Unlock Metering Aggregation data 20110311
7 DETERMINE_AGGREGATION Instance method Private Method Aggregation for /IWFND/L_MET_AGR 20110606
8 DETERMINE_GW_USED Instance method Private Method Aggregation for /IWFND/D_MET_AGR 20110606
9 DETERMINE_MET_AGGREGATION Instance method Private Method Aggregation for /IWFND/L_METAGR 20120321
10 DETERMINE_USAGE_MEASUREMNT Instance method Private Method Collect data for Usage Measurement 20140212
11 ENQUEUE_AGG_DATA Instance method Private Method Lock Metering Aggregation data 20110311
12 GENERATE_METERING_GUID Instance method Private Method Generate Metering GUID 20110311
13 GET_AGG_DATA Instance method Public Method obsolete 20110311
14 GET_AGG_SERVICE_DATA Instance method Public Method Get aggregated service data 20121005
15 GET_AGR_DATA Instance method Private Method Read Aggregation Data from DB 20110603
16 GET_COLLECTOR_DATA Instance method Public Method Get collector data 20110317
17 GET_COL_DATA Instance method Private Method Read Single Collection Data 20110603
18 GET_EXEMPT_SERVICES Instance method Public Method Get all exempt services 20121005
19 GET_EXEMPT_USER_AGENTS Instance method Public Method Get all exempt user agents 20121005
20 GET_FILTERED_RAW_USAGE_DATA Instance method Public Method 20130427
21 GET_GW_USED Instance method Public Method Get Gateway used records for period 20110608
22 GET_GW_USED_DATA Instance method Private Method Read Aggregation 'Usage of Gateway' Data 20110607
23 GET_USER_AGENTS Instance method Private Method Read all relevant User Agents for Metering (/IWFND/I_COCCOL) 20120323
24 PROVIDE_USAGE_MEASUREMNT Instance method Private Method Provide Usage Measurement data to central API 20140212
25 SET_DATE_TO_FIRST Instance method Private Method Set a date to the first day of the month 20121024
26 STORE_DATA Instance method Public Method Collect metering data 20110311
Events
Class /IWFND/CL_METERING_DB has no event.
Types
# Type Visibility Typing Associated Type Description Created on Type Source
1 S_EXEMPTION Public Type reference (TYPE) /IWFND/I_MET_EXE Metering Exemption 20121005
2 S_ID_KEY Private See coding 20120416 BEGIN OF s_id_key, mandt TYPE mandt, id TYPE /iwfnd/met_guid, END OF s_id_key
3 S_METAGR_KEY Private See coding 20120416 BEGIN OF s_metagr_key, mandt TYPE mandt, agr_year TYPE scal_year, agr_month TYPE scal_month, user_agent TYPE /iwfnd/met_user_agent, tech_srv_name TYPE /iwfnd/med_mdl_srg_name, tech_srv_version TYPE /iwfnd/med_mdl_version, END OF s_metagr_key
4 S_USAGE_MEASURE Public See coding 20140212 BEGIN OF s_usage_measure, tech_srv_name TYPE /iwfnd/med_mdl_srg_name, tech_srv_version TYPE /iwfnd/med_mdl_version, namespace TYPE /iwfnd/med_mdl_namespace, calls_total TYPE i, END OF s_usage_measure
5 T_COCCOL Private See coding 20120323 t_coccol TYPE TABLE OF /iwfnd/i_coccol
6 T_EXEMPTIONS Public See coding List of Metering Exemptions 20121005 t_exemptions TYPE STANDARD TABLE OF s_exemption WITH DEFAULT KEY
7 T_USAGE_MEASURE Public See coding 20140212 t_usage_measure TYPE SORTED TABLE OF s_usage_measure WITH UNIQUE KEY tech_srv_name tech_srv_version
Method Signatures

Method AGGREGATE_COL_DATA Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_MSG_HANDLE Call by reference Type reference (TYPE) BALMSGHNDL Application Log: Message handle 20110607
# Exception Resumable Description Created on
1 /IWFND/CX_MET_EXCEPTION Metering Exception 20110526

Method CHECK_USAGE_MEASUREMNT Signature

Method CHECK_USAGE_MEASUREMNT on class /IWFND/CL_METERING_DB has no parameter.
Method CHECK_USAGE_MEASUREMNT on class /IWFND/CL_METERING_DB has no exception.

Method COLLECT_DATES Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning RT_DATES Value transfer Type reference (TYPE) SZTG_DATST Table of Dats 20110606

Method COLLECT_DATES on class /IWFND/CL_METERING_DB has no exception.

Method CONVERT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_DATA Call by reference Type reference (TYPE) /IWFND/T_MET_COL Metering Data Collector 20110311

Method CONVERT on class /IWFND/CL_METERING_DB has no exception.

Method DELETE_DATA Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_MSG_HANDLE Call by reference Type reference (TYPE) BALMSGHNDL Application Log: Message handle 20110607
# Exception Resumable Description Created on
1 /IWFND/CX_MET_EXCEPTION Metering Exception 20110607

Method DEQUEUE_AGG_DATA Signature

Method DEQUEUE_AGG_DATA on class /IWFND/CL_METERING_DB has no parameter.
Method DEQUEUE_AGG_DATA on class /IWFND/CL_METERING_DB has no exception.

Method DETERMINE_AGGREGATION Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IS_MET_COL Call by reference Type reference (TYPE) /IWFND/S_METERING_COL Metering Collector (based on DB structure) 20110606
2 Importing IV_DATE Call by reference Type reference (TYPE) DATS Field of type DATS 20110606

Method DETERMINE_AGGREGATION on class /IWFND/CL_METERING_DB has no exception.

Method DETERMINE_GW_USED Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IS_MET_COL Call by reference Type reference (TYPE) /IWFND/S_METERING_COL Metering Collector (based on DB structure) 20110606
2 Importing IV_DATE Call by reference Type reference (TYPE) DATS Field of type DATS 20110606

Method DETERMINE_GW_USED on class /IWFND/CL_METERING_DB has no exception.

Method DETERMINE_MET_AGGREGATION Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IS_MET_COL Call by reference Type reference (TYPE) /IWFND/S_METERING_COL Metering Collector (based on DB structure) 20120321
2 Importing IV_DATE Call by reference Type reference (TYPE) DATS Field of type DATS 20120321

Method DETERMINE_MET_AGGREGATION on class /IWFND/CL_METERING_DB has no exception.

Method DETERMINE_USAGE_MEASUREMNT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IS_MET_COL Call by reference Type reference (TYPE) /IWFND/S_METERING_COL Metering Collector (based on DB structure) 20140212

Method DETERMINE_USAGE_MEASUREMNT on class /IWFND/CL_METERING_DB has no exception.

Method ENQUEUE_AGG_DATA Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_IS_WAIT Call by reference Type reference (TYPE) ABAP_BOOL Wait indicator 20110311
# Exception Resumable Description Created on
1 /IWFND/CX_MET_EXCEPTION Metering Exception 20110311

Method GENERATE_METERING_GUID Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning RV_METERING_GUID Value transfer Type reference (TYPE) /IWFND/MET_GUID GUID for Metering objects 20110311

Method GENERATE_METERING_GUID on class /IWFND/CL_METERING_DB has no exception.

Method GET_AGG_DATA Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_AGG_DATA Call by reference Type reference (TYPE) /IWFND/T_MET_AGR Metering Data Aggregation 20110526
2 Importing IV_BEGIN Call by reference Type reference (TYPE) DATS Begin date 20110530
3 Importing IV_END Call by reference Type reference (TYPE) DATS End date 20110530

Method GET_AGG_DATA on class /IWFND/CL_METERING_DB has no exception.

Method GET_AGG_SERVICE_DATA Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_AGG_DATA Call by reference Type reference (TYPE) /IWFND/T_METAGR Aggregated Service Data 20121005
2 Importing IV_BEGIN Call by reference Type reference (TYPE) DATS Begin date 20121005
3 Importing IV_END Call by reference Type reference (TYPE) DATS End date 20121005

Method GET_AGG_SERVICE_DATA on class /IWFND/CL_METERING_DB has no exception.

Method GET_AGR_DATA Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IT_DATES Call by reference Type reference (TYPE) SZTG_DATST Table of Dats 20110606

Method GET_AGR_DATA on class /IWFND/CL_METERING_DB has no exception.

Method GET_COLLECTOR_DATA Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_COLLECTOR_DATA Call by reference Type reference (TYPE) /IWFND/T_MET_COL Metering Data Collector 20110317
2 Importing IV_BEGIN_TS Call by reference Type reference (TYPE) TIMESTAMP UTC Time Stamp in Short Form (YYYYMMDDhhmmss) 20110317
3 Importing IV_END_TS Call by reference Type reference (TYPE) TIMESTAMP UTC Time Stamp in Short Form (YYYYMMDDhhmmss) 20110317
# Exception Resumable Description Created on
1 /IWFND/CX_MET_EXCEPTION Metering Exception 20110408

Method GET_COL_DATA Signature

Method GET_COL_DATA on class /IWFND/CL_METERING_DB has no parameter.
Method GET_COL_DATA on class /IWFND/CL_METERING_DB has no exception.

Method GET_EXEMPT_SERVICES Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning RT_EXEMPT_SERVICES Value transfer Type reference (TYPE) /IWFND/CL_METERING_DB=>T_EXEMPTIONS List of Metering Exemptions 20121005

Method GET_EXEMPT_SERVICES on class /IWFND/CL_METERING_DB has no exception.

Method GET_EXEMPT_USER_AGENTS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning RT_EXEMPT_USER_AGENTS Value transfer Type reference (TYPE) /IWFND/CL_METERING_DB=>T_EXEMPTIONS List of Metering Exemptions 20121005

Method GET_EXEMPT_USER_AGENTS on class /IWFND/CL_METERING_DB has no exception.

Method GET_FILTERED_RAW_USAGE_DATA Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_FILTERED_DATA Call by reference Type reference (TYPE) /IWFND/CL_METERING_API=>TY_T_MET_EXTRACT_DATA 20130427
2 Exporting EV_COUNT Call by reference Type reference (TYPE) I 20130430
3 Importing IV_COUNT_ONLY Call by reference Type reference (TYPE) ABAP_BOOL 20130430
4 Importing IV_FILTER Call by reference Type reference (TYPE) STRING 20130427
5 Importing IV_ORDER Call by reference Type reference (TYPE) STRING 20130427

Method GET_FILTERED_RAW_USAGE_DATA on class /IWFND/CL_METERING_DB has no exception.

Method GET_GW_USED Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_GW_USED Call by reference Type reference (TYPE) /IWFND/T_MET_AGR_GW_USED Table Type: Metering Usage of Gateway 20110608
2 Importing IV_BEG_DATE Call by reference Type reference (TYPE) DATS Begin of period as date 20110608
3 Importing IV_END_DATE Call by reference Type reference (TYPE) DATS End of period as date 20110608

Method GET_GW_USED on class /IWFND/CL_METERING_DB has no exception.

Method GET_GW_USED_DATA Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IT_DATE Call by reference Type reference (TYPE) SZTG_DATST Table of Dats 20110607

Method GET_GW_USED_DATA on class /IWFND/CL_METERING_DB has no exception.

Method GET_USER_AGENTS Signature

Method GET_USER_AGENTS on class /IWFND/CL_METERING_DB has no parameter.
Method GET_USER_AGENTS on class /IWFND/CL_METERING_DB has no exception.

Method PROVIDE_USAGE_MEASUREMNT Signature

Method PROVIDE_USAGE_MEASUREMNT on class /IWFND/CL_METERING_DB has no parameter.
Method PROVIDE_USAGE_MEASUREMNT on class /IWFND/CL_METERING_DB has no exception.

Method SET_DATE_TO_FIRST Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CV_DATE Call by reference Type reference (TYPE) DATS Field of type DATS 20121024

Method SET_DATE_TO_FIRST on class /IWFND/CL_METERING_DB has no exception.

Method STORE_DATA Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IT_DATA Call by reference Type reference (TYPE) /IWFND/T_MET_COL Metering Data Collector 20110311
2 Importing IV_MSG_HANDLE Call by reference Type reference (TYPE) BALMSGHNDL Application Log: Message handle 20110609

Method STORE_DATA on class /IWFND/CL_METERING_DB has no exception.
History
Last changed by/on SAP  20141120 
SAP Release Created in 250