SAP ABAP Class CL_IFW_SERVICES (General helper methods for IFW)
Hierarchy
SAP_APPL (Software Component) Logistics and Accounting
   LO-AB-IFW (Application Component) Invoice Forecasting
     CIWB (Package) Invoice Forecasting Worklist: Core objects
Meta Relationship - Using
# Relationship type Using Short Description Created on
1 Interface implementation (CLASS c. INTERFACES i_ref)  IF_IFW_CON Constants for invoice forecasting worklist 20100827
2 Interface implementation (CLASS c. INTERFACES i_ref)  IF_MRM_CONSTANTS Invoice Verification Constants 20100827
Properties
Class CL_IFW_SERVICES  
Short Description General helper methods for IFW    
Super Class    
Instantiability of a Class 2  Public 
Final    
General Data
Message Class    
Program status     
Category 0   
Package CIWB   Invoice Forecasting Worklist: Core objects 
Created 20100812   SAP 
Last change 20130531   SAP 
Shared Memory-enabled    
Fixed point arithmetic    
Unicode checks active    
Forward declarations
# Type group / Object type Type Type Description
1 MMCR Type group use (TYPE-POOLS tp)  Type group use (TYPE-POOLS tp)
2 MRM Type group use (TYPE-POOLS tp)  Type group use (TYPE-POOLS tp)
Interfaces
# Interface Abstract Final Description Created on
1 IF_IFW_CON Constants for invoice forecasting worklist 20100827
2 IF_MRM_CONSTANTS Invoice Verification Constants 20100827
Friends
Class CL_IFW_SERVICES has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 C_CPE_CURR_FUTURE Instance attribute Private Attribute reference (LIKE) 20101202
2 C_CPE_CURR_PARTIAL Instance attribute Private Attribute reference (LIKE) 20101001
3 C_CPE_FIN Instance attribute Private Attribute reference (LIKE) 20101001
4 C_CPE_PARTIAL Instance attribute Private Attribute reference (LIKE) 20101001
5 C_CPE_PROV Instance attribute Private Attribute reference (LIKE) 20101001
6 C_CPE_QUOT_FUTURE Instance attribute Private Attribute reference (LIKE) 20101202
7 C_CPE_QUOT_PARTIAL Instance attribute Private Attribute reference (LIKE) 20101001
8 C_CPE_SUCC_YELLOW Instance attribute Private Attribute reference (LIKE) 20110324
9 C_CPE_TERM_FIN Instance attribute Private Attribute reference (LIKE) 20101001
10 C_CPE_TERM_FIN_CEILING Instance attribute Private Attribute reference (LIKE) 20101001
11 C_CPE_TERM_FIN_FLOOR Instance attribute Private Attribute reference (LIKE) 20101001
12 C_CPE_TERM_MISSING_INPUT Instance attribute Private Attribute reference (LIKE) 20101213
13 C_CPE_TERM_PROV Instance attribute Private Attribute reference (LIKE) 20101001
14 C_CPE_TERM_PROV_CEILING Instance attribute Private Attribute reference (LIKE) 20101001
15 C_CPE_TERM_PROV_FLOOR Instance attribute Private Attribute reference (LIKE) 20101001
16 C_INV_DIFF Instance attribute Private Attribute reference (LIKE) 20100827
17 C_INV_DL Instance attribute Private Attribute reference (LIKE) 20100827
18 C_INV_DL_D Instance attribute Private Attribute reference (LIKE) 20100827
19 C_INV_FIN Instance attribute Private Attribute reference (LIKE) 20100827
20 C_INV_GR Instance attribute Private Attribute reference (LIKE) 20100827
21 C_INV_GR_D Instance attribute Private Attribute reference (LIKE) 20100827
22 C_INV_MM Instance attribute Private Attribute reference (LIKE) 20100827
23 C_INV_NO_DI Instance attribute Private Attribute reference (LIKE) 20100827
24 C_INV_PROV Instance attribute Private Attribute reference (LIKE) 20100827
25 C_INV_SD Instance attribute Private Attribute reference (LIKE) 20100827
26 C_ITM_COPIED Instance attribute Private Attribute reference (LIKE) 20100827
27 C_ITM_NEW Instance attribute Private Attribute reference (LIKE) 20100827
28 C_NO Instance attribute Private Attribute reference (LIKE) 20101011
29 C_YES Instance attribute Private Attribute reference (LIKE) 20101001
30 MR_CPE_ENHANCE Static Attribute Private Object reference (TYPE REF TO) IFW_CPE Instance of BAdI IFW_CPE 20101216
31 MT_RSEG Static Attribute Private Type reference (TYPE) MMCR_TDRSEG All line items as buffer key 20100827
32 MT_RSEG_SORTED Static Attribute Private Type reference (TYPE) MMCR_TDRSEG All line items sorted 20100827
33 MT_TVFSP Static Attribute Private See coding 20110801
34 M_BUZEI Static Attribute Private Type reference (TYPE) RBLGP Document Item in Invoice Document 20100827
35 M_UI_CLASS Static Attribute Private Type reference (TYPE) IFW_S_UI_CUST IFW UI: Customizing Classes for IFW Report 20101028
Methods
# Method Level Visibility Method type Description Created on
1 CONVERT_FROM_RD Static method Public Method Convert source document to application specific document 20100812
2 CONVERT_TO_RD Static method Public Method Convert application specific document to source document 20100812
3 DETERMINE_CPE_RELEVANCY Static method Public Method Decide whether a goods movement is CPE pricing relevant 20101011
4 FILL_BILL_BLOCK Static method Private Method Derive Blocking Reason at item level from CPE results 20110801
5 FILL_CPE_ITEMDATA_FROM_KOMV Static method Public Method Fill CPE information on IFW item level from KOMV 20101001
6 FILL_CPE_STATUS Static method Private Method Derive CPE status at item level from all formula status 20101001
7 FILL_DOCUMENT_COM_FOR_CPE Static method Private Method Fill document fields for CPE API 20101001
8 FILL_PAYDD_FROM_PAYMENT_TERMS Static method Public Method Fill payment due date from payment terms 20101122
9 GET_DINV_PAIR_ITEM Static method Public Method Get pair item workarea (differential invoicing) 20100827
10 GET_UI_CLASS Static method Public Method Get ABAP Classes for UI 20101028
11 REPLACE_TEMP_SD_KNUMV Static method Public Method Replace temporary KOMV-KNUMV by final one from doc. header 20101019
12 SEARCH_FOR_CPE_QUOTATIONS Static method Private Method Check whether CPE contains quotations 20101213
Events
Class CL_IFW_SERVICES has no event.
Types
# Type Visibility Typing Associated Type Description Created on Type Source
1 MTY_EBELN Public See coding Table of purchasing document numbers 20101011 mty_ebeln TYPE TABLE OF ebeln
2 MTY_KOMV_ITEM_KEY Private See coding Item key of condition records 20101001 BEGIN OF mty_komv_item_key, knumv TYPE knumv, kposn TYPE kposn, END OF mty_komv_item_key
3 MTY_LIPSVB Public See coding Table of delivery items 20101011 mty_lipsvb TYPE TABLE OF lipsvb
4 MTY_MSEG Public See coding Table of goods receipt items 20101011 mty_mseg TYPE TABLE OF mseg
5 MTY_T683S Public See coding Table of pricing procedure steps 20101011 mty_t683s TYPE TABLE OF t683s
6 MTY_VBELN Public See coding Table of sales document numbers 20101011 mty_vbeln TYPE TABLE OF vbeln
Method Signatures

Method CONVERT_FROM_RD Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting E_APPL_DOC Value transfer Type reference (TYPE) CLIKE Application specific document 20100818
2 Importing I_ROOT_DOC Value transfer Type reference (TYPE) IFW_DE_ROOT_DOC Source Document 20100812

Method CONVERT_FROM_RD on class CL_IFW_SERVICES has no exception.

Method CONVERT_TO_RD Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting E_ROOT_DOC Value transfer Type reference (TYPE) IFW_DE_ROOT_DOC Source Document 20100818
2 Importing I_APPL_DOC Value transfer Type reference (TYPE) CLIKE Application specific document 20100812

Method CONVERT_TO_RD on class CL_IFW_SERVICES has no exception.

Method DETERMINE_CPE_RELEVANCY Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting E_IS_CPE_RELEVANT Value transfer Type reference (TYPE) XFELD Flag: CPE-relevant yes/no 20101011
2 Importing IS_DOC_HEADER Call by reference Type reference (TYPE) ANY Logistics document header 20101011
3 Importing IT_DOC_ITEM Call by reference Type reference (TYPE) STANDARD TABLE Logistics document line items (table) 20101011
4 Importing I_INV_TYPE Value transfer Type reference (TYPE) IFW_DE_INV_TYPE Invoice Type 20101011

Method DETERMINE_CPE_RELEVANCY on class CL_IFW_SERVICES has no exception.

Method FILL_BILL_BLOCK Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting CS_ITEM_UPD Call by reference Type reference (TYPE) IFW_S_ITEM_UPD Communication structure for IFW item update 20110801
2 Importing IS_DOC_HEADER Call by reference Type reference (TYPE) ANY Logistics document header 20110801
3 Importing IT_CPE_TERM Call by reference Type reference (TYPE) CPET_ERP_CPEDOC_TERM_OUT_TAB CPE terms 20110808

Method FILL_BILL_BLOCK on class CL_IFW_SERVICES has no exception.

Method FILL_CPE_ITEMDATA_FROM_KOMV Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CS_ITEM_UPD Call by reference Type reference (TYPE) IFW_S_ITEM_UPD Communication structure for IFW item update 20101001
2 Exporting E_QUOTATIONS_FOUND Value transfer Type reference (TYPE) XFELD Flag: Quotations found 20101213
3 Importing IS_DOC_HEADER Call by reference Type reference (TYPE) ANY Logistics document header 20101001
4 Importing IS_DOC_ITEM Call by reference Type reference (TYPE) ANY Logistics document item 20101001
5 Importing IS_WORKLIST Call by reference Type reference (TYPE) IFW_WORKLIST Invoice forecasting worklist 20101001
6 Importing IT_KOMV Call by reference Type reference (TYPE) STANDARD TABLE Table type komv/konv 20101021
# Exception Resumable Description Created on
1 CX_IFW_CPE Exception class for errors in IFW from CPE interface 20101001

Method FILL_CPE_STATUS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing C_ITEM_STATUS Value transfer Type reference (TYPE) IFW_DE_PR_STATUS Status of Evaluation for Pricing 20101001
2 Importing I_FORMSTATUS Value transfer Type reference (TYPE) CPET_FORMSTATUS CPE Formula - Status of Evaluation 20101001

Method FILL_CPE_STATUS on class CL_IFW_SERVICES has no exception.

Method FILL_DOCUMENT_COM_FOR_CPE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ES_DOCUMENT_COM Call by reference Type reference (TYPE) CPET_ERP_DOCUMENT_COM CPE in ERP: Communication Structure with Document Fields 20101001
2 Exporting ES_KOMV_ITEM_KEY Call by reference Type reference (TYPE) MTY_KOMV_ITEM_KEY Item key of condition records 20101001
3 Importing IS_DOC_HEADER Call by reference Type reference (TYPE) ANY Logistics document header 20101001
4 Importing IS_DOC_ITEM Call by reference Type reference (TYPE) ANY Logistics document item 20101001
5 Importing IS_ITEM_UPD Call by reference Type reference (TYPE) IFW_S_ITEM_UPD Communication structure for IFW item update 20101001
6 Importing IS_WORKLIST Call by reference Type reference (TYPE) IFW_WORKLIST Invoice forecasting worklist 20101001
# Exception Resumable Description Created on
1 CPE_NOT_ACTIVE CPE not active for application 20101001

Method FILL_PAYDD_FROM_PAYMENT_TERMS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting E_PAYDD Value transfer Type reference (TYPE) IFW_DE_PAY_DATE Payment Due Date 20101122
2 Importing IS_DOC_HEADER Call by reference Type reference (TYPE) ANY Document header 20101122
3 Importing I_INV_TYPE Value transfer Type reference (TYPE) IFW_DE_INV_TYPE Invoice Reference Type 20101122

Method FILL_PAYDD_FROM_PAYMENT_TERMS on class CL_IFW_SERVICES has no exception.

Method GET_DINV_PAIR_ITEM Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ES_DOC_PAIR_ITEM Call by reference Type reference (TYPE) ANY Pair line item (workarea) 20100827
2 Exporting E_IS_NEGATIVE Call by reference Type reference (TYPE) XFELD IS_DOC_ITEM is a "negative" item 20101006
3 Importing IS_DOC_ITEM Call by reference Type reference (TYPE) ANY Line item (workarea) 20100827
4 Importing IT_DOC_ITEM Call by reference Type reference (TYPE) STANDARD TABLE All line items (table) 20100827
5 Importing I_INV_CAT Value transfer Type reference (TYPE) IFW_DE_INV_CAT Invoice Category 20100827
6 Importing I_INV_TYPE Value transfer Type reference (TYPE) IFW_DE_INV_TYPE Invoice Type 20100827
# Exception Resumable Description Created on
1 NOT_SUPPORTED Invoice type or invoice category not supported 20100827

Method GET_UI_CLASS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ES_UI_CLASS Call by reference Type reference (TYPE) IFW_S_UI_CUST IFW UI: Customizing Classes for IFW Report 20101028
2 Importing I_ROOT_DOC_TYPE Value transfer Type reference (TYPE) CIWB_DE_ROOT_DOC_TYPE Source Document Type 20101028

Method GET_UI_CLASS on class CL_IFW_SERVICES has no exception.

Method REPLACE_TEMP_SD_KNUMV 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_TAB KOMV with final KNUMV 20101019
2 Importing IS_VBRK Call by reference Type reference (TYPE) VBRK Document header with final KNUMV 20101019
3 Importing IS_VBRP Call by reference Type reference (TYPE) VBRPVB Billing Document: Item Data 20101025
4 Importing IT_KOMV Call by reference Type reference (TYPE) KOMV_TAB KOMV with temporary KNUMV 20101019

Method REPLACE_TEMP_SD_KNUMV on class CL_IFW_SERVICES has no exception.

Method SEARCH_FOR_CPE_QUOTATIONS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting E_FOUND Value transfer Type reference (TYPE) XFELD flag: quotations found 20101213
2 Importing IS_CPE_COM Call by reference Type reference (TYPE) CPET_ERP_CPEDOC_COM_OUT CPE in ERP: Communication Structure for Doc. Formula Result 20101213

Method SEARCH_FOR_CPE_QUOTATIONS on class CL_IFW_SERVICES has no exception.
History
Last changed by/on SAP  20130531 
SAP Release Created in 606