SAP ABAP Class CL_MMBSI_CC_CONV (Central Contract Conversion)
Hierarchy
SAP_APPL (Software Component) Logistics and Accounting
   MM-PUR-OA (Application Component) Vendor Outline Agreements
     MM_P2P_BSI_CC (Package) Central Contract Management
Properties
Class CL_MMBSI_CC_CONV  
Short Description Central Contract Conversion    
Super Class    
Instantiability of a Class 2  Public 
Final    
General Data
Message Class MM_CCM    
Program status     
Category 0   
Package MM_P2P_BSI_CC   Central Contract Management 
Created 20080219   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)
2 CL_MMPUR_CONSTANTS Forward declaration class (CLASS c DEFINITION DEFERRED)  Forward declaration class (CLASS c DEFINITION DEFERRED)
Interfaces
Class CL_MMBSI_CC_CONV has no interface implemented.
Friends
Class CL_MMBSI_CC_CONV has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 GT_INSTANCE Static Attribute Private Type reference (TYPE) TYPE_T_INSTANCE Central Contract Conversion 20111108
2 MC_MAX_LINES Constant Private Type reference (TYPE) I 1000 20110608
3 MO_CONST Instance attribute Public Object reference (TYPE REF TO) CL_MMPUR_CONSTANTS Constants Purchasing 20111108
4 MO_PO Instance attribute Private Object reference (TYPE REF TO) CL_PO_HEADER_HANDLE_MM Handle of a Purchasing Document 20110826
5 MO_PO_ITEM Instance attribute Private Object reference (TYPE REF TO) IF_PURCHASE_ORDER_ITEM_MM PO Item External View 20110826
6 MO_REQ_ITEM Instance attribute Private Object reference (TYPE REF TO) IF_PURCHASE_REQUISITION_ITEM Purchase Requisition (External View) 20111108
7 MT_MAPPING Instance attribute Private Type reference (TYPE) TYPE_T_MAPPING Mapping table SRM vs. ERP contracts 20110608
8 MV_DOC_TYPE Instance attribute Private Type reference (TYPE) BSTYP Purchasing doc. cat. (F/B) 20111108
Methods
# Method Level Visibility Method type Description Created on
1 CHECK_IS_SRM_CONTRACT Instance method Public Method Checks if the provided contract is an SRM contract or not 20090212
2 CHECK_RESULT Instance method Private Method Check mapping results regarding OA without plants 20120227
3 CLEANUP Static method Public Method Desctructor 20110826
4 CLOSE Instance method Private Method close current instance 20111108
5 CONSTRUCTOR Instance method Public Constructor CONSTRUCTOR 20111108
6 CONV_ERP2SRM Instance method Public Method Convert ERP Contract-ID to SRM Contract-ID 20080219
7 CONV_SRM2ERP Instance method Public Method Convert Central Contract-ID to (maybe several) ERP Cont.-IDs 20080219
8 GET_ERP_CNT_DETAILS_LIV Static method Public Method Gets all the ERP contract details for a Central contract 20090304
9 GET_ERP_CONT_ITEM_ID Instance method Public Method Gets the ERP cont.item id using contract id and srvmapkey 20090212
10 GET_INSTANCE Static method Public Method Instance factory 20100324
11 IS_VALUE_CHANGED Instance method Public Method Check if PO item upd. will lead to SRM update 20110916
12 READ_ITEM_MAP_DETAILS Static method Public Method Read data from BBP_CTR_ITEM_MAP 20090319
13 SET_PO_REF Instance method Public Method Set Purchase Order reference (ID) 20110826
14 SET_REQ_REF Instance method Public Method Set Purchase Requisition reference 20111108
Events
Class CL_MMBSI_CC_CONV has no event.
Types
# Type Visibility Typing Associated Type Description Created on Type Source
1 TYPE_S_INSTANCE Private See coding 20111108 BEGIN OF type_s_instance, doc_type TYPE bstyp, instance TYPE REF TO cl_mmbsi_cc_conv, END OF type_s_instance
2 TYPE_S_MAPPING Private See coding Structure def.: SRM vs. ERP contract 20110608 BEGIN OF type_s_mapping, ebeln TYPE bbp_bapi_ebeln_k, ebelp TYPE bbp_itemno, item_map TYPE mmbsi_bbp_ctr_item_map_tty, END OF type_s_mapping
3 TYPE_T_INSTANCE Private See coding 20111108 type_t_instance TYPE SORTED TABLE OF type_s_instance WITH UNIQUE KEY doc_type
4 TYPE_T_MAPPING Private See coding Table def.: SRM vs. ERP contract (sorted table) 20110608 type_t_mapping TYPE SORTED TABLE OF type_s_mapping WITH UNIQUE KEY ebeln ebelp
Method Signatures

Method CHECK_IS_SRM_CONTRACT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_SRM_CONTRACT_ID Call by reference Type reference (TYPE) BBP_ITEMNO Item Number 20090213
2 Exporting EV_SRM_FLAG Call by reference Type reference (TYPE) ABAP_BOOL General Flag 20090212
3 Importing IV_CONTRACT_ID Call by reference Type reference (TYPE) BBP_BAPI_EBELN_K Purchasing Document Number 20090212
4 Importing IV_CONTRACT_ITEM_ID Call by reference Type reference (TYPE) BBP_ITEMNO Item Number of Purchasing Document 20090212

Method CHECK_IS_SRM_CONTRACT on class CL_MMBSI_CC_CONV has no exception.

Method CHECK_RESULT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_HEADER Call by reference Type reference (TYPE) EKKO_TTY Table Type for Purchasing Document Headers 20120227
2 Changing CT_ITEM Call by reference Type reference (TYPE) EKPO_TTY Table Types for Purchasing Document Items 20120227
3 Changing CT_MAPPING Call by reference Type reference (TYPE) MMBSI_BBP_CTR_ITEM_MAP_TTY Mapping Central Contract 20120227
4 Importing IV_PLANT Call by reference Type reference (TYPE) WERKS_D Plant 20120227
5 Importing IV_PURCH_ORG Call by reference Type reference (TYPE) EKORG Purchasing Organization 20120227

Method CHECK_RESULT on class CL_MMBSI_CC_CONV has no exception.

Method CLEANUP Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_DOC_TYPE Call by reference Type reference (TYPE) BSTYP CL_MMPUR_CONSTANTS=>BSTYP_F Purchasing doc. cat. (F/B) 20111108

Method CLEANUP on class CL_MMBSI_CC_CONV has no exception.

Method CLOSE Signature

Method CLOSE on class CL_MMBSI_CC_CONV has no parameter.
Method CLOSE on class CL_MMBSI_CC_CONV has no exception.

Method CONSTRUCTOR Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_DOC_TYPE Call by reference Type reference (TYPE) BSTYP CL_MMPUR_CONSTANTS=>BSTYP_F Purchasing doc. cat. (F/B) 20111108

Method CONSTRUCTOR on class CL_MMBSI_CC_CONV has no exception.

Method CONV_ERP2SRM Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_EBELN_SRM Call by reference Type reference (TYPE) BBP_BAPI_EBELN_K Contract number 20080320
2 Exporting EV_EBELP_SRM Call by reference Type reference (TYPE) BBP_ITEMNO Item Number 20080320
3 Importing IV_EBELN Call by reference Type reference (TYPE) EBELN Purchasing Document Number 20080320
4 Importing IV_EBELP Call by reference Type reference (TYPE) EBELP Item Number of Purchasing Document 20080320
5 Importing IV_INTROW Call by reference Type reference (TYPE) INTROW Internal line number for limits 20080527
6 Importing IV_PACKNO Call by reference Type reference (TYPE) PACKNO Package number 20080527
7 Importing IV_SUB_PACKNO Call by reference Type reference (TYPE) PACKNO Package number 20080527
# Exception Resumable Description Created on
1 NO_SRM_CONTRACT ERP contract-ID is not mapped to a SRM contract-ID 20080219

Method CONV_SRM2ERP Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_EKKO Call by reference Type reference (TYPE) EKKO_TTY PO Header table 20080320
2 Exporting ET_EKPO Call by reference Type reference (TYPE) EKPO_TTY PO Item table 20080320
3 Exporting ET_ITEM_MAP Call by reference Type reference (TYPE) MMBSI_BBP_CTR_ITEM_MAP_TTY Mapping Central Contract 20080320
4 Exporting EV_UNIQUE Call by reference Type reference (TYPE) XFELD unique entry 20080320
5 Importing IV_EBELN Call by reference Type reference (TYPE) BBP_BAPI_EBELN_K Contract number 20080320
6 Importing IV_EBELP Call by reference Type reference (TYPE) BBP_ITEMNO Item Number 20080320
7 Importing IV_EKORG Call by reference Type reference (TYPE) EKORG Purchasing Organization 20080320
8 Importing IV_READ Call by reference Type reference (TYPE) MMPUR_BOOL call from LESEN_BELEG 20120808
9 Importing IV_WAERS Call by reference Type reference (TYPE) WAERS Currency Key 20080320
10 Importing IV_WERKS Call by reference Type reference (TYPE) WERKS_D Plant 20080320
11 Importing IV_ZTERM Call by reference Type reference (TYPE) DZTERM Terms of Payment Key 20080320
# Exception Resumable Description Created on
1 NO_ERP_CONTRACT no suitable ERP contracts found 20080219
2 NO_SRM_CONTRACT no central contract-ID found 20080219

Method GET_ERP_CNT_DETAILS_LIV Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_CNT_DETAILS Call by reference Type reference (TYPE) MMBSD_CONTRACT_ITEM_KEY_TAB ERP contract details for a central contract 20090304
2 Exporting EV_FUNCTIONAL_ITEM Call by reference Type reference (TYPE) FLAG Functional item 20090304
3 Importing IV_CC_ITEM_NO Call by reference Type reference (TYPE) BBP_ITEMNO Item Number 20090304
4 Importing IV_CC_NO Call by reference Type reference (TYPE) BBP_BAPI_EBELN_K Contract number 20090304
# Exception Resumable Description Created on
1 CC_NOT_FOUND Central contract not found 20090321
2 NOT_SELECTABLE_ITEM Not selectable item( item doent exists or its a suboutline) 20090321

Method GET_ERP_CONT_ITEM_ID Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_ERP_CONTRACT_ITEM_ID Call by reference Type reference (TYPE) EBELP Item Number of Purchasing Document 20090212
2 Importing IV_ERP_CONTRACT_ID Call by reference Type reference (TYPE) EBELN Purchasing Document Number 20090212
3 Importing IV_SRVMAPKEY Call by reference Type reference (TYPE) SRVMAPKEY Item Key for eSOA Messages 20090212

Method GET_ERP_CONT_ITEM_ID on class CL_MMBSI_CC_CONV has no exception.

Method GET_INSTANCE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_DOC_TYPE Call by reference Type reference (TYPE) BSTYP CL_MMPUR_CONSTANTS=>BSTYP_F Purchasing doc. cat. (F/B) 20111108
2 Returning RO_INSTANCE Value transfer Object reference (TYPE REF TO) CL_MMBSI_CC_CONV Central Contract Conversion 20100324

Method GET_INSTANCE on class CL_MMBSI_CC_CONV has no exception.

Method IS_VALUE_CHANGED Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IS_ITEM Call by reference Type reference (TYPE) EKPO Purchasing Document Item 20110916
2 Importing IV_ID Call by reference Type reference (TYPE) I Purchase Order identifier 20110916
3 Returning RV_CHANGED Value transfer Type reference (TYPE) MMPUR_BOOL no change recognized 20110916

Method IS_VALUE_CHANGED on class CL_MMBSI_CC_CONV has no exception.

Method READ_ITEM_MAP_DETAILS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_CNT_DETAILS Call by reference Type reference (TYPE) MMBSI_BBP_CTR_ITEM_MAP_TTY Mapping Central Contract 20090319
2 Importing IV_BE_NUM_INT Call by reference Type reference (TYPE) EBELP Item Number of Purchasing Document 20090319
3 Importing IV_BE_OBJECT_ID Call by reference Type reference (TYPE) EBELN Purchasing Document Number 20090319
4 Importing IV_NUM_INT Call by reference Type reference (TYPE) SRM_CONTRACT_ITEM Central Contract Item Number 20090319
5 Importing IV_OBJECT_ID Call by reference Type reference (TYPE) SRM_CONTRACT_ID Central Contract 20090319
# Exception Resumable Description Created on
1 NO_ENTRY_FOUND No entry found in BBP_CTR_ITEM_MAP for provided input 20090319

Method SET_PO_REF Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_ID Call by reference Type reference (TYPE) INT4 GF_ID from SAPLMEPO 20110826
2 Importing IV_ITEM Call by reference Type reference (TYPE) EBELP Item Number of Purchasing Document 20110826

Method SET_PO_REF on class CL_MMBSI_CC_CONV has no exception.

Method SET_REQ_REF Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IO_REQ Call by reference Object reference (TYPE REF TO) IF_PURCHASE_REQUISITION_ITEM Purchase Requisition (External View) 20111108

Method SET_REQ_REF on class CL_MMBSI_CC_CONV has no exception.
History
Last changed by/on SAP  20130531 
SAP Release Created in 604