SAP ABAP Class CL_CMM_MTM_EXTR (Core logic for MtM extraction)
Hierarchy
SAP_APPL (Software Component) Logistics and Accounting
   LO-CMM-BF (Application Component) Basic Functions
     LOG_CMM_ANALYTICS (Package) Analytics for Commodity Managements
Meta Relationship - Using
# Relationship type Using Short Description Created on
1 Interface implementation (CLASS c. INTERFACES i_ref)  IF_CMM_MTM_TYPES Extended Types for MtM Analytics 20120612
Properties
Class CL_CMM_MTM_EXTR  
Short Description Core logic for MtM extraction    
Super Class    
Instantiability of a Class 2  Public 
Final    
General Data
Message Class    
Program status     
Category 0   
Package LOG_CMM_ANALYTICS   Analytics for Commodity Managements 
Created 20120612   SAP 
Last change 20131127   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)
Interfaces
# Interface Abstract Final Description Created on
1 IF_CMM_MTM_TYPES Extended Types for MtM Analytics 20120612
Friends
Class CL_CMM_MTM_EXTR has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 GS_CPE_BUFFER_LOADED Instance attribute Private Type reference (TYPE) GTYS_CPE_BUFFER 20120614
2 GS_REF_KOMV Instance attribute Private Type reference (TYPE) GTYS_KOMV_EXT 20120614
3 GS_TCHW1 Instance attribute Private Type reference (TYPE) TCHW1 Batch-Specific Units of Measure (Proportion/Product Un) 20121203
4 GT_LOG_LINK Instance attribute Private See coding 20120924
5 GT_QUANTITIES Instance attribute Private See coding 20130417
6 GV_CURRENT_BELNR Instance attribute Private Type reference (TYPE) KOMK-BELNR Sales and Distribution Document Number 20120924
7 GV_CURRENT_KPOSN Instance attribute Private Type reference (TYPE) KOMP-KPOSN Condition item number 20120924
Methods
# Method Level Visibility Method type Description Created on
1 ADD_SUBSEQ_REF Instance method Private Method 20120911
2 ADJUST_KWERT Instance method Private Method 20130425
3 AGGREGATE Instance method Private Method 20120618
4 APPEND_SPLIT_MTM_ROW Instance method Private Method 20120821
5 ASSIGN_TO_DATE Instance method Private Method 20120612
6 COLLECT_VALUES Instance method Private Method 20130417
7 CONVERT_AND_DISCOUNT Instance method Private Method 20120719
8 DETERMINE_SUBSEQUENT_DOCUMENTS Instance method Private Method 20120614
9 DETERMINE_VALUES Instance method Public Method 20120612
10 FILL_RETURN_FROM_SY Instance method Private Method 20120612
11 GET_BELNR_FOR_LOG_LINE Instance method Public Method 20120924
12 GET_CMM_MTM_CALC Instance method Private Method 20120614
13 GET_STATISTICS_CURRENCY Instance method Private Method 20121129
14 IS_TERM_A_FIXATION Instance method Private Method 20130723
15 MERGE_PRICING Instance method Private Method 20120614
16 MOVE_INCLUDES Instance method Private Method 20120614
17 READ_FORMULA Instance method Private Method 20120614
18 SPLIT_BY_COMMODITY Instance method Private Method 20120618
Events
Class CL_CMM_MTM_EXTR has no event.
Types
# Type Visibility Typing Associated Type Description Created on Type Source
1 GTYS_CPE_BUFFER Private See coding 20120614 BEGIN OF gtys_cpe_buffer, kappl TYPE kappl, knumv TYPE knumv, END OF gtys_cpe_buffer
2 GTYS_CPE_MTM_TERM_LINK Private See coding 20120612 BEGIN OF gtys_cpe_mtm_term_link, tabix_mtm TYPE sy-tabix, tabix_term TYPE sy-tabix, END OF gtys_cpe_mtm_term_link
3 GTYS_KOMK_ADD_FIELDS Public Attribute reference (LIKE) 20120612
4 GTYS_KOMK_EXT Public Attribute reference (LIKE) 20120612
5 GTYS_KOMP_ADD_FIELDS Public Attribute reference (LIKE) 20120612
6 GTYS_KOMP_EXT Public Attribute reference (LIKE) 20120612
7 GTYS_KOMV_EXT Public See coding 20120614 BEGIN OF gtys_komv_ext, komv TYPE komv, kwert_adjusted TYPE komv-kwert, fact_assigned TYPE cmm_mtm_fact_open, END OF gtys_komv_ext
8 GTYS_LOG_LINK Private See coding 20120924 begin of gtys_log_link, tabix type sy-tabix, belnr type komk-belnr, kposn type komp-kposn, end of gtys_log_link
9 GTYS_PRICING_COMM Public Attribute reference (LIKE) 20120612
10 GTYS_QUANTITIES Private See coding 20130417 BEGIN OF gtys_quantities, tabix TYPE sy-tabix, quantities type CMM_MTM_QUANTITIES, END OF gtys_quantities
11 GTYS_SUBSEQUENT_REFERENCE Public Attribute reference (LIKE) 20120615
12 GTYT_CPE_MTM_TERM_LINK Private See coding 20120612 gtyt_cpe_mtm_term_link TYPE STANDARD TABLE OF gtys_cpe_mtm_term_link
13 GTYT_KOMK_EXT Public Attribute reference (LIKE) 20120612
14 GTYT_KOMP_EXT Public Attribute reference (LIKE) 20120612
15 GTYT_KOMV_EXT Public See coding 20120614 gtyt_komv_ext TYPE STANDARD TABLE OF gtys_komv_ext
16 GTYT_PRICING_COMM Public Attribute reference (LIKE) 20120612
17 GTYT_SUBSEQUENT_REFERENCE Public Attribute reference (LIKE) 20120615
Method Signatures

Method ADD_SUBSEQ_REF Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_KOMV_SUBSEQ Call by reference Type reference (TYPE) KOMV_T Table Type for Structure KOMV 20120911
2 Changing CT_PRICING_COMM_SUBSEQ Call by reference Type reference (TYPE) GTYT_PRICING_COMM 20120911
3 Changing CT_SUBSEQUENT_REF Call by reference Type reference (TYPE) GTYT_SUBSEQUENT_REFERENCE 20120911
4 Importing IT_KOMV_SUBSEQ Call by reference Type reference (TYPE) KOMV_T Table Type for Structure KOMV 20120911
5 Importing IT_PRICING_COMM_SUBSEQ Call by reference Type reference (TYPE) GTYT_PRICING_COMM Table Type for Structure KOMV 20120911
6 Importing IT_SUBSEQUENT_REF Call by reference Type reference (TYPE) GTYT_SUBSEQUENT_REFERENCE 20120911

Method ADD_SUBSEQ_REF on class CL_CMM_MTM_EXTR has no exception.

Method ADJUST_KWERT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CS_KOMP_ROOT Call by reference Type reference (TYPE) GTYS_KOMP_EXT 20130425
2 Changing CS_KOMV_EXT Call by reference Type reference (TYPE) GTYS_KOMV_EXT 20130425
3 Importing IS_KOMP_SUB Call by reference Type reference (TYPE) GTYS_KOMP_EXT 20130425
4 Importing IV_FACTOR_ALREADY_CALC Call by reference Type reference (TYPE) ABAP_BOOL SPACE 20130425
5 Importing IV_QUANTITY_FIELD Call by reference Type reference (TYPE) STRING 20130425

Method ADJUST_KWERT on class CL_CMM_MTM_EXTR has no exception.

Method AGGREGATE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_MTM_VALUES_AGG Call by reference Type reference (TYPE) CMM_MTM_AGGREGATED_TT MTM Extractor Structure 20120618
2 Importing IT_MTM_VALUES Call by reference Type reference (TYPE) CMM_MTM_TT MTM Extractor Structure 20120618

Method AGGREGATE on class CL_CMM_MTM_EXTR has no exception.

Method APPEND_SPLIT_MTM_ROW Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_MTM_VALUES_BY_TERM Call by reference Type reference (TYPE) CMM_MTM_TT MTM Extractor Structure 20120821
2 Changing CT_TERM_LINK Call by reference Type reference (TYPE) GTYT_CPE_MTM_TERM_LINK 20120821
3 Importing IS_KOMV Call by reference Type reference (TYPE) KOMV Pricing Communications-Condition Record 20120822
4 Importing IS_MTM_VALUES Call by reference Type reference (TYPE) CMM_MTM MTM Extractor Structure 20120821
5 Importing IS_TERM Call by reference Type reference (TYPE) CPET_ERP_CPEDOC_TERM_OUT CPE in ERP: Term Details of Doc. Formula Result 20120821
6 Importing IV_TABIX_TERM Call by reference Type reference (TYPE) SY-TABIX 20120821

Method APPEND_SPLIT_MTM_ROW on class CL_CMM_MTM_EXTR has no exception.

Method ASSIGN_TO_DATE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_MTM_VALUES Call by reference Type reference (TYPE) CMM_MTM_TT MTM Extractor Structure 20120612
2 Importing IS_CPE_FORMULA Call by reference Type reference (TYPE) CPET_ERP_CPEDOC_COM_OUT CPE in ERP: Communication Structure for Doc. Formula Result 20120612
3 Importing IS_KOMK Call by reference Type reference (TYPE) GTYS_KOMK_EXT 20120612
4 Importing IS_KOMP Call by reference Type reference (TYPE) GTYS_KOMP_EXT 20120612
5 Importing IT_TERM_LINK Call by reference Type reference (TYPE) GTYT_CPE_MTM_TERM_LINK 20120612
6 Importing IV_DATE_METHOD Call by reference Type reference (TYPE) CMM_MTM_DATE_DET_D Determination of date for an MTM relevant condition value 20120612

Method ASSIGN_TO_DATE on class CL_CMM_MTM_EXTR has no exception.

Method COLLECT_VALUES Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_MTM_VALUES Call by reference Type reference (TYPE) CMM_MTM_TT MtM Extractor Structure 20130417
2 Importing IS_MTM_VALUES Call by reference Type reference (TYPE) CMM_MTM MtM Extractor Structure 20130417

Method COLLECT_VALUES on class CL_CMM_MTM_EXTR has no exception.

Method CONVERT_AND_DISCOUNT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_MTM_VALUES Call by reference Type reference (TYPE) CMM_MTM_TT MTM Extractor Structure 20120719
2 Changing CT_RETURN Call by reference Type reference (TYPE) BAPIRETTAB Table with BAPI Return Information 20120719
3 Importing IS_CPE_KOMV Call by reference Type reference (TYPE) GTYS_KOMV_EXT 20121024
4 Importing IS_KOMK Call by reference Type reference (TYPE) GTYS_KOMK_EXT 20121023
5 Importing IS_KOMP Call by reference Type reference (TYPE) GTYS_KOMP_EXT Pricing Communications-Condition Record 20121023
6 Importing IS_KOMV Call by reference Type reference (TYPE) KOMV Pricing Communications-Condition Record 20121024

Method CONVERT_AND_DISCOUNT on class CL_CMM_MTM_EXTR has no exception.

Method DETERMINE_SUBSEQUENT_DOCUMENTS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_KOMV_SUBSEQ Call by reference Type reference (TYPE) KOMV_T Table Type for Structure KOMV 20120615
2 Exporting ET_PRICING_COMM_SUBSEQ Call by reference Type reference (TYPE) GTYT_PRICING_COMM 20120614
3 Exporting ET_SUBSEQUENT_REF Call by reference Type reference (TYPE) GTYT_SUBSEQUENT_REFERENCE 20120615
4 Importing IT_PRICING_COMM Call by reference Type reference (TYPE) GTYT_PRICING_COMM 20120614
5 Importing IV_BYPASSING_BUFFER Call by reference Type reference (TYPE) ABAP_BOOL ' ' 20130503

Method DETERMINE_SUBSEQUENT_DOCUMENTS on class CL_CMM_MTM_EXTR has no exception.

Method DETERMINE_VALUES Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_MTM_VALUES Call by reference Type reference (TYPE) CMM_MTM_TT MTM Extractor Structure 20120612
2 Changing CT_MTM_VALUES_AGG Call by reference Type reference (TYPE) CMM_MTM_AGGREGATED_TT MTM Extractor Structure 20120618
3 Exporting ET_RETURN Call by reference Type reference (TYPE) BAPIRETTAB Table with BAPI Return Information 20120612
4 Importing IT_KOMV Call by reference Type reference (TYPE) KOMV_T Table Type for Structure KOMV 20120612
5 Importing IT_KOMV_SUBSEQ Call by reference Type reference (TYPE) KOMV_T Table Type for Structure KOMV 20120911
6 Importing IT_PRICING_COMM Call by reference Type reference (TYPE) GTYT_PRICING_COMM 20120612
7 Importing IT_PRICING_COMM_SUBSEQ Call by reference Type reference (TYPE) GTYT_PRICING_COMM 20120911
8 Importing IT_SUBSEQUENT_REF Call by reference Type reference (TYPE) GTYT_SUBSEQUENT_REFERENCE 20120911
9 Importing IV_BYPASSING_BUFFER Call by reference Type reference (TYPE) ABAP_BOOL ' ' 20130503
10 Importing IV_LOAD_CPE_BUFFER Call by reference Type reference (TYPE) ABAP_BOOL 20120905
11 Importing IV_UPDATEMODE Call by reference Type reference (TYPE) XFELD Checkbox 20120826

Method DETERMINE_VALUES on class CL_CMM_MTM_EXTR has no exception.

Method FILL_RETURN_FROM_SY Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_RETURN Call by reference Type reference (TYPE) BAPIRETTAB Table with BAPI Return Information 20120612

Method FILL_RETURN_FROM_SY on class CL_CMM_MTM_EXTR has no exception.

Method GET_BELNR_FOR_LOG_LINE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_BELNR Call by reference Type reference (TYPE) KOMK-BELNR Sales and Distribution Document Number 20120924
2 Exporting EV_KPOSN Call by reference Type reference (TYPE) KOMP-KPOSN Condition item number 20120924
3 Importing IV_TABIX Call by reference Type reference (TYPE) SY-TABIX Index of Internal Tables 20120924

Method GET_BELNR_FOR_LOG_LINE on class CL_CMM_MTM_EXTR has no exception.

Method GET_CMM_MTM_CALC Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CS_CMM_MTM_CALC Call by reference Type reference (TYPE) CMM_MTM_CALC Assign Condition Types to Groups 20120614
2 Changing CV_SUBRC Call by reference Type reference (TYPE) SY-SUBRC Return Value of ABAP Statements 20120614
3 Importing IS_KOMV Call by reference Type reference (TYPE) KOMV Pricing Communications-Condition Record 20120614
4 Importing IV_KALSM Call by reference Type reference (TYPE) KALSM_D Procedure (Pricing, Output Control, Acct. Det., Costing,...) 20120614

Method GET_CMM_MTM_CALC on class CL_CMM_MTM_EXTR has no exception.

Method GET_STATISTICS_CURRENCY Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_RATE_TYPE Call by reference Type reference (TYPE) KURST_CURR Exchange Rate Type 20121129
2 Exporting EV_STATISTICS_CURRENCY Call by reference Type reference (TYPE) CMM_MTM_WAERS MTM Statistics Currency 20121129
3 Importing IV_BUKRS Call by reference Type reference (TYPE) BUKRS Company Code 20121129

Method GET_STATISTICS_CURRENCY on class CL_CMM_MTM_EXTR has no exception.

Method IS_TERM_A_FIXATION Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IS_CPE_FORMULA Call by reference Type reference (TYPE) CPET_ERP_CPEDOC_COM_OUT CPE in ERP: Communication Structure for Doc. Formula Result 20130723
2 Importing IS_CPE_TERM Call by reference Type reference (TYPE) CPET_ERP_CPEDOC_TERM_OUT CPE in ERP: Term Details of Doc. Formula Result 20130723
3 Returning RV_FIXATION_TERM Value transfer Type reference (TYPE) ABAP_BOOL 20130723

Method IS_TERM_A_FIXATION on class CL_CMM_MTM_EXTR has no exception.

Method MERGE_PRICING Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_KOMV_MRG Call by reference Type reference (TYPE) GTYT_KOMV_EXT 20120614
2 Exporting ET_PRICING_COMM_MRG Call by reference Type reference (TYPE) GTYT_PRICING_COMM 20120614
3 Importing IT_KOMV_ROOT Call by reference Type reference (TYPE) KOMV_T Table Type for Structure KOMV 20120614
4 Importing IT_KOMV_SUBSEQ Call by reference Type reference (TYPE) KOMV_T Table Type for Structure KOMV 20120614
5 Importing IT_PRICING_COMM_ROOT Call by reference Type reference (TYPE) GTYT_PRICING_COMM 20120614
6 Importing IT_PRICING_COMM_SUBSEQ Call by reference Type reference (TYPE) GTYT_PRICING_COMM 20120614
7 Importing IT_SUBSEQUENT_REF Call by reference Type reference (TYPE) GTYT_SUBSEQUENT_REFERENCE 20120614

Method MERGE_PRICING on class CL_CMM_MTM_EXTR has no exception.

Method MOVE_INCLUDES Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CS_MTM_VALUES Call by reference Type reference (TYPE) CMM_MTM MTM Extractor Structure 20120614
2 Importing IS_KOMK Call by reference Type reference (TYPE) GTYS_KOMK_EXT 20120614
3 Importing IS_KOMP Call by reference Type reference (TYPE) GTYS_KOMP_EXT 20120614
4 Importing IS_KOMV Call by reference Type reference (TYPE) GTYS_KOMV_EXT 20120614
5 Importing IS_MTM_CALC Call by reference Type reference (TYPE) CMM_MTM_CALC Assign Condition Types to Groups 20120619

Method MOVE_INCLUDES on class CL_CMM_MTM_EXTR has no exception.

Method READ_FORMULA Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_RETURN Call by reference Type reference (TYPE) BAPIRETTAB Table with BAPI Return Information 20120614
2 Exporting ES_CPE_FORMULA Call by reference Type reference (TYPE) CPET_ERP_CPEDOC_COM_OUT CPE in ERP: Communication Structure for Doc. Formula Result 20120614
3 Exporting ES_CPE_KOMV Call by reference Type reference (TYPE) GTYS_KOMV_EXT 20120614
4 Importing IS_KOMK Call by reference Type reference (TYPE) GTYS_KOMK_EXT 20120614
5 Importing IS_KOMP Call by reference Type reference (TYPE) GTYS_KOMP_EXT 20120614
6 Importing IS_KOMV Call by reference Type reference (TYPE) GTYS_KOMV_EXT 20120614
7 Importing IT_KOMV Call by reference Type reference (TYPE) GTYT_KOMV_EXT 20120614
8 Importing IV_LOAD_CPE_BUFFER Call by reference Type reference (TYPE) ABAP_BOOL 20120905
9 Importing IV_REF_KSCHL Call by reference Type reference (TYPE) KSCHL Condition Type 20120614

Method READ_FORMULA on class CL_CMM_MTM_EXTR has no exception.

Method SPLIT_BY_COMMODITY Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_MTM_VALUES_BY_TERM Call by reference Type reference (TYPE) CMM_MTM_TT MTM Extractor Structure 20120618
2 Exporting ET_TERM_LINK Call by reference Type reference (TYPE) GTYT_CPE_MTM_TERM_LINK 20120618
3 Importing IS_CPE_FORMULA Call by reference Type reference (TYPE) CPET_ERP_CPEDOC_COM_OUT CPE in ERP: Communication Structure for Doc. Formula Result 20120618
4 Importing IS_CPE_KOMV Call by reference Type reference (TYPE) GTYS_KOMV_EXT 20120618
5 Importing IS_KOMV Call by reference Type reference (TYPE) KOMV Pricing Communications-Condition Record 20120822
6 Importing IS_MTM_VALUES_BY_COND Call by reference Type reference (TYPE) CMM_MTM MTM Extractor Structure 20120618

Method SPLIT_BY_COMMODITY on class CL_CMM_MTM_EXTR has no exception.
History
Last changed by/on SAP  20131127 
SAP Release Created in 607