SAP ABAP Class CL_CMM_INV_ANTICIPATION_MM (Final Invoice Anticipation in Materials Management.)
Hierarchy
SAP_APPL (Software Component) Logistics and Accounting
   LO-CMM (Application Component) Commodity Management in Logistics
     LOG_CMM_MM (Package) Material Management enhancements for Commodity Management
Meta Relationship - Using
# Relationship type Using Short Description Created on
1 Interface implementation (CLASS c. INTERFACES i_ref)  IF_CMM_INV_ANTICIPATION_MM Anticipated invoice calculation in material management 20121022
Properties
Class CL_CMM_INV_ANTICIPATION_MM  
Short Description Final Invoice Anticipation in Materials Management.    
Super Class    
Instantiability of a Class 2  Public 
Final    
General Data
Message Class    
Program status     
Category 0   
Package LOG_CMM_MM   Material Management enhancements for Commodity Management 
Created 20120726   SAP 
Last change 20130531   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_INV_ANTICIPATION_MM Anticipated invoice calculation in material management 20121022
Friends
Class CL_CMM_INV_ANTICIPATION_MM has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 GO_DB_ACCESS Static Attribute Private Object reference (TYPE REF TO) IF_CMM_MM_DB_ACCESS Period-end valuation: Utility class for db access 20120921
2 GO_IDX_UTIL Static Attribute Private Object reference (TYPE REF TO) IF_CMM_IDX_UTIL Index: Utilities 20121010
3 GO_PRICING_CALL Static Attribute Private Object reference (TYPE REF TO) IF_CMM_PRICING_CALL Pricing call 20130211
4 GV_KNUMV_TEMP Instance attribute Private Type reference (TYPE) KNUMV Pricing Communications-Condition Record 20121129
5 GV_KPOSN_TEMP Instance attribute Private Type reference (TYPE) KPOSN Condition item number 20121129
6 MO_LOG Instance attribute Private Object reference (TYPE REF TO) CL_CMM_LOG Commodity Management: Message log 20120920
7 MS_OBJ_KEY Instance attribute Private Type reference (TYPE) CMM_S_OBJ_K Commodity Management: Object key (without Client) 20121129
8 MT_INV_ANTCP_IMP Instance attribute Private Type reference (TYPE) CMM_T_INV_ANTCP_IMP 20121008
9 MV_BLART Instance attribute Private Type reference (TYPE) BLART Document Type 20120924
10 MV_DATLO Instance attribute Private Type reference (TYPE) DATUM Date 20121025
11 MV_KURST Instance attribute Private Type reference (TYPE) KURST Exchange Rate Type 20120924
12 MV_XKURSX Instance attribute Private Type reference (TYPE) X_FXR_RATEX Indicator: Market Data Exchange Rate 20120924
Methods
# Method Level Visibility Method type Description Created on
1 ANTICIPATE_AMOUNT Instance method Private Method Anticipate item amount 20120921
2 CALCULATE Instance method Public Method 20120726
3 CALCULATE_QUANTITY Instance method Private Method Derive quantity 20130211
4 CHECK_ITEM Instance method Private Method Prior item check 20121010
5 CHECK_KNUMV_KPOSN Instance method Private Method Dervice Condition Number and Condition Item Number 20130304
6 CHECK_PO Instance method Private Method Check purchase order document 20121010
7 CLASS_CONSTRUCTOR Static method Public Constructor Constructor 20121010
8 COMPLETE_ITEM Instance method Private Method Complete anticipated item 20121113
9 CONSTRUCTOR Instance method Public Constructor Constructor 20120925
10 DERIVE_TRANSLATION_DATE Instance method Private Method Check currency 20121017
11 GET_INV_DATA Instance method Private Method Read purchase order history data 20120921
12 IS_TEMPORARY_KNUMV Static method Public Method Check KNUMV is a temporary number 20121029
13 NEXT_ITEM Instance method Private Method Cancel processing of current item and go to next item 20120921
14 PREFETCH_DATA Instance method Private Method Prefetch purchase order data 20120920
15 PREFETCH_PO_DATA Static method Private Method Prefetch purchase order data 20120920
16 PREFETCH_PO_HISTORY Static method Private Method Prefetch purchase order history data 20120920
17 PREPARE_ITEM Instance method Private Method Prepare anticipated item 20121113
18 PRIOR_CHECKS Instance method Private Method General check 20120920
19 PROCESS_ITEM Instance method Private Method Process item 20120921
20 READ_PO_FROM_BUFFER Instance method Private Method Read purchase order from buffer 20120921
21 SET_ATTRIBUTES Instance method Private Method Set attributes 20120926
22 SET_OBJECT_KEY Instance method Private Method Set index object key 20130304
23 SET_VALUATION_DATE Instance method Private Method Set valuation Date 20121026
Events
Class CL_CMM_INV_ANTICIPATION_MM has no event.
Types
# Type Visibility Typing Associated Type Description Created on Type Source
1 LTY_T_EKBE_KEY Private Type reference (TYPE) MMPUR_T_PURDOC_ITEM_KEY 20120920
2 LTY_T_EKKO_KEY Private Type reference (TYPE) CMM_T_INV_ANTCP_EKKO_KEY 20120920
3 LTY_T_EKPO_KEY Private Type reference (TYPE) MMPUR_T_PURDOC_ITEM_KEY 20120920
Method Signatures

Method ANTICIPATE_AMOUNT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_KOMV Call by reference Type reference (TYPE) KOMV_TTY Table Type: Pricing communications-condition record 20120921
2 Exporting EV_KNUMV_OLD Call by reference Type reference (TYPE) KNUMV Number of the document condition 20130304
3 Exporting EV_KPOSN_OLD Call by reference Type reference (TYPE) KPOSN Number of the document condition 20130304
4 Exporting EV_NETWR Call by reference Type reference (TYPE) NETWR Net Value in Document Currency 20120921
5 Importing IS_XEK08RN Call by reference Type reference (TYPE) EK08RN PO Item Data for Invoice Verification (New) 20120921
6 Importing IV_BPMNG Call by reference Type reference (TYPE) BPMNG Quantity in Purchase Order Price Unit 20120921
7 Importing IV_CC_WAERS Call by reference Type reference (TYPE) WAERS Currency Key 20120921
8 Importing IV_KNUMV_IMP Call by reference Type reference (TYPE) KNUMV Number of the document condition 20121031
9 Importing IV_KPOSN_IMP Call by reference Type reference (TYPE) KPOSN Material document item number 20121008
10 Importing IV_KURSF Call by reference Type reference (TYPE) KURSF Exchange rate 20120921
11 Importing IV_KURST Call by reference Type reference (TYPE) KURST Exchange Rate Type 20120921
12 Importing IV_PO_WAERS Call by reference Type reference (TYPE) WAERS Currency Key 20120921
13 Importing IV_VAL_DATE Call by reference Type reference (TYPE) DATUM 20121025
14 Importing IV_WWERT Call by reference Type reference (TYPE) WWERT_D Translation Date 20120921
# Exception Resumable Description Created on
1 CX_CMM_ANTICIPATION_MM Commodity Management: Error in invoice anticipation 20120921

Method CALCULATE Signature

Method CALCULATE on class CL_CMM_INV_ANTICIPATION_MM has no parameter.
Method CALCULATE on class CL_CMM_INV_ANTICIPATION_MM has no exception.

Method CALCULATE_QUANTITY Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ES_XEK08RN Call by reference Type reference (TYPE) EK08RN PO Item Data for Invoice Verification (New) 20130211
2 Exporting EV_BPMNG Call by reference Type reference (TYPE) BPMNG Quantity in Purchase Order Price Unit 20130211
3 Exporting EV_MENGE Call by reference Type reference (TYPE) MENGE_D Quantity 20130211
4 Importing IT_XEK08RN Call by reference Type reference (TYPE) EK08RN_T PO Item Data for Invoice Verification (New) 20130211
5 Importing IV_KEY_DATE Call by reference Type reference (TYPE) DATUM Key Date 20130211
# Exception Resumable Description Created on
1 CX_CMM_ANTICIPATION_MM Commodity Management: Error in invoice anticipation 20130211

Method CHECK_ITEM Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IS_INV_ANTCP_IMP Call by reference Type reference (TYPE) CMM_S_INV_ANTCP_IMP Importing data for final invoice anticipation 20121010
# Exception Resumable Description Created on
1 CX_CMM_ANTICIPATION_MM Commodity Management: Error in invoice anticipation 20121010

Method CHECK_KNUMV_KPOSN Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_KNUMV_IMP Call by reference Type reference (TYPE) KNUMV Number of the document condition 20130304
2 Exporting EV_KPOSN_IMP Call by reference Type reference (TYPE) KPOSN Condition item number 20130304
3 Importing IS_INV_ANTCP_IMP Call by reference Type reference (TYPE) CMM_S_INV_ANTCP_IMP Importing data for final invoice anticipation 20130304
# Exception Resumable Description Created on
1 CX_CMM_ANTICIPATION_MM Commodity Management: Error in invoice anticipation 20130304

Method CHECK_PO Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IS_EKKO Call by reference Type reference (TYPE) EKKO Purchasing Document Header 20121010
2 Importing IS_EKPO Call by reference Type reference (TYPE) EKPO Purchasing Document Item 20121010
# Exception Resumable Description Created on
1 CX_CMM_ANTICIPATION_MM Commodity Management: Error in invoice anticipation 20121010

Method CLASS_CONSTRUCTOR Signature

Method CLASS_CONSTRUCTOR on class CL_CMM_INV_ANTICIPATION_MM has no parameter.
Method CLASS_CONSTRUCTOR on class CL_CMM_INV_ANTICIPATION_MM has no exception.

Method COMPLETE_ITEM Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CS_INV_ANTCP_ITM Call by reference Type reference (TYPE) CMM_S_INV_ANTCP_ITM_RESULT Anticipated item 20130304
2 Importing IS_XEK08RN Call by reference Type reference (TYPE) EK08RN PO Item data for invoice verification (New) 20121113
3 Importing IT_KOMV Call by reference Type reference (TYPE) KOMV_TTY Table type: Pricing communications-condition record 20121113
4 Importing IV_BPMNG Call by reference Type reference (TYPE) BPMNG Quantity in purchase order price unit 20121113
5 Importing IV_KNUMV_OLD Call by reference Type reference (TYPE) KNUMV Condition item number 20130304
6 Importing IV_KNUMV_TARGET Call by reference Type reference (TYPE) KNUMV Number of the document condition 20131023
7 Importing IV_KPOSN_OLD Call by reference Type reference (TYPE) KPOSN Condition item number 20130304
8 Importing IV_KPOSN_TARGET Call by reference Type reference (TYPE) KPOSN Number of the document condition 20131023
9 Importing IV_KUFIX Call by reference Type reference (TYPE) KUFIX Indicator: Fixing of Exchange Rate 20130422
10 Importing IV_KURSF Call by reference Type reference (TYPE) KURSF Exchange rate 20130304
11 Importing IV_KURST Call by reference Type reference (TYPE) KURST_003 Exch.Rate Type for Determining the Proposed Rate 20130304
12 Importing IV_LIFNR Call by reference Type reference (TYPE) ELIFN Vendor Account Number 20121113
13 Importing IV_MENGE Call by reference Type reference (TYPE) MENGE_D Quantity 20121113
14 Importing IV_NETWR Call by reference Type reference (TYPE) NETWR Net value in document currency 20121113
15 Importing IV_WWERT Call by reference Type reference (TYPE) WWERT_D Translation Date 20130304

Method COMPLETE_ITEM on class CL_CMM_INV_ANTICIPATION_MM has no exception.

Method CONSTRUCTOR Signature

Method CONSTRUCTOR on class CL_CMM_INV_ANTICIPATION_MM has no parameter.
Method CONSTRUCTOR on class CL_CMM_INV_ANTICIPATION_MM has no exception.

Method DERIVE_TRANSLATION_DATE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_KURSF Call by reference Type reference (TYPE) KURSF Exchange rate 20130417
2 Exporting EV_WWERT Call by reference Type reference (TYPE) WWERT_D Translation Date 20130417
3 Importing IS_EKKO Call by reference Type reference (TYPE) EKKO Purchasing Document Header 20121017
4 Importing IV_VAL_DATE Call by reference Type reference (TYPE) DATUM 20130130
# Exception Resumable Description Created on
1 CX_CMM_ANTICIPATION_MM Commodity Management: Error in invoice anticipation 20121017

Method GET_INV_DATA Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_XEK08RN Call by reference Type reference (TYPE) EK08RN_T PO Item Data for Invoice Verification (New) 20121107
2 Importing IS_EKKO Call by reference Type reference (TYPE) EKKO Purchasing Document Header 20121001
3 Importing IS_INV_ANTCP_IMP Call by reference Type reference (TYPE) CMM_S_INV_ANTCP_IMP 20121008
4 Importing IV_WWERT Call by reference Type reference (TYPE) WWERT_D Translation Date 20120921
# Exception Resumable Description Created on
1 CX_CMM_ANTICIPATION_MM Commodity Management: Error in invoice anticipation 20120921

Method IS_TEMPORARY_KNUMV Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_KNUMV Call by reference Type reference (TYPE) KNUMV Number of the document condition 20121029
2 Returning RV_TEMPORARY Value transfer Type reference (TYPE) ABAP_BOOL 20121029

Method IS_TEMPORARY_KNUMV on class CL_CMM_INV_ANTICIPATION_MM has no exception.

Method NEXT_ITEM Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IO_PREVIOUS Call by reference Object reference (TYPE REF TO) CX_ROOT Abstract Superclass for All Global Exceptions 20130304
2 Importing IV_FROM_PREVIOUS Call by reference Type reference (TYPE) ABAP_BOOL 20130304
# Exception Resumable Description Created on
1 CX_CMM_ANTICIPATION_MM Commodity Management: Error in invoice anticipation 20120921

Method PREFETCH_DATA Signature

Method PREFETCH_DATA on class CL_CMM_INV_ANTICIPATION_MM has no parameter.
# Exception Resumable Description Created on
1 CX_CMM_ANTICIPATION_MM Commodity Management: Error in invoice anticipation 20120920

Method PREFETCH_PO_DATA Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IT_EKKO_KEYS Call by reference Type reference (TYPE) LTY_T_EKKO_KEY Table Type for PO Key - EBELN 20120924
2 Importing IT_EKPO_KEYS Call by reference Type reference (TYPE) LTY_T_EKPO_KEY Table Type for PO Keys - EBELN EBELP 20120924
# Exception Resumable Description Created on
1 CX_CMM_ANTICIPATION_MM Commodity Management: Error in invoice anticipation 20120925

Method PREFETCH_PO_HISTORY Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IT_EKBE_KEYS Call by reference Type reference (TYPE) LTY_T_EKBE_KEY Table Type for Array Fetch: Table EKBE 20120925
# Exception Resumable Description Created on
1 CX_CMM_ANTICIPATION_MM Commodity Management: Error in invoice anticipation 20120925

Method PREPARE_ITEM Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ES_INV_ANTCP_ITM Call by reference Type reference (TYPE) CMM_S_INV_ANTCP_ITM_RESULT Anticipated item 20121113
2 Importing IS_INV_ANTCP_IMP Call by reference Type reference (TYPE) CMM_S_INV_ANTCP_IMP 20121113

Method PREPARE_ITEM on class CL_CMM_INV_ANTICIPATION_MM has no exception.

Method PRIOR_CHECKS Signature

Method PRIOR_CHECKS on class CL_CMM_INV_ANTICIPATION_MM has no parameter.
# Exception Resumable Description Created on
1 CX_CMM_ANTICIPATION_MM Commodity Management: Error in invoice anticipation 20120920

Method PROCESS_ITEM Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ES_INV_ANTCP_ITM Call by reference Type reference (TYPE) CMM_S_INV_ANTCP_ITM_RESULT Anticipated invoice item result in material management 20120921
2 Importing IS_INV_ANTCP_IMP Call by reference Type reference (TYPE) CMM_S_INV_ANTCP_IMP 20121008
# Exception Resumable Description Created on
1 CX_CMM_ANTICIPATION_MM Commodity Management: Error in invoice anticipation 20120921

Method READ_PO_FROM_BUFFER Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CS_EKKO Call by reference Type reference (TYPE) EKKO Purchasing Document Header 20121001
2 Changing CS_EKPO Call by reference Type reference (TYPE) EKPO Purchasing Document Item 20121001
3 Importing IV_EBELN Call by reference Type reference (TYPE) EBELN Purchasing Document Number 20120921
4 Importing IV_EBELP Call by reference Type reference (TYPE) EBELP Item Number of Purchasing Document 20120921
# Exception Resumable Description Created on
1 CX_CMM_ANTICIPATION_MM Commodity Management: Error in invoice anticipation 20120921

Method SET_ATTRIBUTES Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IT_INV_ANTCP_IMP Call by reference Type reference (TYPE) CMM_T_INV_ANTCP_IMP Position item 20121008
# Exception Resumable Description Created on
1 CX_CMM_ANTICIPATION_MM Commodity Management: Error in invoice anticipation 20121001

Method SET_OBJECT_KEY Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IS_INV_ANTCP_IMP Call by reference Type reference (TYPE) CMM_S_INV_ANTCP_IMP 20130304
# Exception Resumable Description Created on
1 CX_CMM_ANTICIPATION_MM Commodity Management: Error in invoice anticipation 20130304

Method SET_VALUATION_DATE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ES_INV_ANTCP_IMP Call by reference Type reference (TYPE) CMM_S_INV_ANTCP_IMP Importing data for final invoice anticipation 20121026
2 Importing IS_INV_ANTCP_IMP Call by reference Type reference (TYPE) CMM_S_INV_ANTCP_IMP Importing data for final invoice anticipation 20121026

Method SET_VALUATION_DATE on class CL_CMM_INV_ANTICIPATION_MM has no exception.
History
Last changed by/on SAP  20130531 
SAP Release Created in 617