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 | ![]() |
Type group use (TYPE-POOLS tp) | Type group use (TYPE-POOLS tp) |
2 | ![]() |
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 | ![]() |
Static Attribute | Private | Type reference (TYPE) | TYPE_T_INSTANCE | Central Contract Conversion | 20111108 | ||
2 | ![]() |
Constant | Private | Type reference (TYPE) | I | 1000 | 20110608 | ||
3 | ![]() |
Instance attribute | Public | Object reference (TYPE REF TO) | CL_MMPUR_CONSTANTS | Constants Purchasing | 20111108 | ||
4 | ![]() |
Instance attribute | Private | Object reference (TYPE REF TO) | CL_PO_HEADER_HANDLE_MM | Handle of a Purchasing Document | 20110826 | ||
5 | ![]() |
Instance attribute | Private | Object reference (TYPE REF TO) | IF_PURCHASE_ORDER_ITEM_MM | PO Item External View | 20110826 | ||
6 | ![]() |
Instance attribute | Private | Object reference (TYPE REF TO) | IF_PURCHASE_REQUISITION_ITEM | Purchase Requisition (External View) | 20111108 | ||
7 | ![]() |
Instance attribute | Private | Type reference (TYPE) | TYPE_T_MAPPING | Mapping table SRM vs. ERP contracts | 20110608 | ||
8 | ![]() |
Instance attribute | Private | Type reference (TYPE) | BSTYP | Purchasing doc. cat. (F/B) | 20111108 |
Methods
# | Method | Level | Visibility | Method type | Description | Created on |
---|---|---|---|---|---|---|
1 | ![]() |
Instance method | Public | Method | Checks if the provided contract is an SRM contract or not | 20090212 |
2 | ![]() |
Instance method | Private | Method | Check mapping results regarding OA without plants | 20120227 |
3 | ![]() |
Static method | Public | Method | Desctructor | 20110826 |
4 | ![]() |
Instance method | Private | Method | close current instance | 20111108 |
5 | ![]() |
Instance method | Public | Constructor | CONSTRUCTOR | 20111108 |
6 | ![]() |
Instance method | Public | Method | Convert ERP Contract-ID to SRM Contract-ID | 20080219 |
7 | ![]() |
Instance method | Public | Method | Convert Central Contract-ID to (maybe several) ERP Cont.-IDs | 20080219 |
8 | ![]() |
Static method | Public | Method | Gets all the ERP contract details for a Central contract | 20090304 |
9 | ![]() |
Instance method | Public | Method | Gets the ERP cont.item id using contract id and srvmapkey | 20090212 |
10 | ![]() |
Static method | Public | Method | Instance factory | 20100324 |
11 | ![]() |
Instance method | Public | Method | Check if PO item upd. will lead to SRM update | 20110916 |
12 | ![]() |
Static method | Public | Method | Read data from BBP_CTR_ITEM_MAP | 20090319 |
13 | ![]() |
Instance method | Public | Method | Set Purchase Order reference (ID) | 20110826 |
14 | ![]() |
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 | ![]() |
EV_SRM_CONTRACT_ID | Call by reference | Type reference (TYPE) | BBP_ITEMNO | Item Number | 20090213 | ||
2 | ![]() |
EV_SRM_FLAG | Call by reference | Type reference (TYPE) | ABAP_BOOL | General Flag | 20090212 | ||
3 | ![]() |
IV_CONTRACT_ID | Call by reference | Type reference (TYPE) | BBP_BAPI_EBELN_K | Purchasing Document Number | 20090212 | ||
4 | ![]() |
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 | ![]() |
CT_HEADER | Call by reference | Type reference (TYPE) | EKKO_TTY | Table Type for Purchasing Document Headers | 20120227 | ||
2 | ![]() |
CT_ITEM | Call by reference | Type reference (TYPE) | EKPO_TTY | Table Types for Purchasing Document Items | 20120227 | ||
3 | ![]() |
CT_MAPPING | Call by reference | Type reference (TYPE) | MMBSI_BBP_CTR_ITEM_MAP_TTY | Mapping Central Contract | 20120227 | ||
4 | ![]() |
IV_PLANT | Call by reference | Type reference (TYPE) | WERKS_D | Plant | 20120227 | ||
5 | ![]() |
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 | ![]() |
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 | ![]() |
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 | ![]() |
EV_EBELN_SRM | Call by reference | Type reference (TYPE) | BBP_BAPI_EBELN_K | Contract number | 20080320 | ||
2 | ![]() |
EV_EBELP_SRM | Call by reference | Type reference (TYPE) | BBP_ITEMNO | Item Number | 20080320 | ||
3 | ![]() |
IV_EBELN | Call by reference | Type reference (TYPE) | EBELN | Purchasing Document Number | 20080320 | ||
4 | ![]() |
IV_EBELP | Call by reference | Type reference (TYPE) | EBELP | Item Number of Purchasing Document | 20080320 | ||
5 | ![]() |
IV_INTROW | Call by reference | Type reference (TYPE) | INTROW | Internal line number for limits | 20080527 | ||
6 | ![]() |
IV_PACKNO | Call by reference | Type reference (TYPE) | PACKNO | Package number | 20080527 | ||
7 | ![]() |
IV_SUB_PACKNO | Call by reference | Type reference (TYPE) | PACKNO | Package number | 20080527 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
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 | ![]() |
ET_EKKO | Call by reference | Type reference (TYPE) | EKKO_TTY | PO Header table | 20080320 | ||
2 | ![]() |
ET_EKPO | Call by reference | Type reference (TYPE) | EKPO_TTY | PO Item table | 20080320 | ||
3 | ![]() |
ET_ITEM_MAP | Call by reference | Type reference (TYPE) | MMBSI_BBP_CTR_ITEM_MAP_TTY | Mapping Central Contract | 20080320 | ||
4 | ![]() |
EV_UNIQUE | Call by reference | Type reference (TYPE) | XFELD | unique entry | 20080320 | ||
5 | ![]() |
IV_EBELN | Call by reference | Type reference (TYPE) | BBP_BAPI_EBELN_K | Contract number | 20080320 | ||
6 | ![]() |
IV_EBELP | Call by reference | Type reference (TYPE) | BBP_ITEMNO | Item Number | 20080320 | ||
7 | ![]() |
IV_EKORG | Call by reference | Type reference (TYPE) | EKORG | Purchasing Organization | 20080320 | ||
8 | ![]() |
IV_READ | Call by reference | Type reference (TYPE) | MMPUR_BOOL | call from LESEN_BELEG | 20120808 | ||
9 | ![]() |
IV_WAERS | Call by reference | Type reference (TYPE) | WAERS | Currency Key | 20080320 | ||
10 | ![]() |
IV_WERKS | Call by reference | Type reference (TYPE) | WERKS_D | Plant | 20080320 | ||
11 | ![]() |
IV_ZTERM | Call by reference | Type reference (TYPE) | DZTERM | Terms of Payment Key | 20080320 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
no suitable ERP contracts found | 20080219 | |
2 | ![]() |
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 | ![]() |
ET_CNT_DETAILS | Call by reference | Type reference (TYPE) | MMBSD_CONTRACT_ITEM_KEY_TAB | ERP contract details for a central contract | 20090304 | ||
2 | ![]() |
EV_FUNCTIONAL_ITEM | Call by reference | Type reference (TYPE) | FLAG | Functional item | 20090304 | ||
3 | ![]() |
IV_CC_ITEM_NO | Call by reference | Type reference (TYPE) | BBP_ITEMNO | Item Number | 20090304 | ||
4 | ![]() |
IV_CC_NO | Call by reference | Type reference (TYPE) | BBP_BAPI_EBELN_K | Contract number | 20090304 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
Central contract not found | 20090321 | |
2 | ![]() |
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 | ![]() |
EV_ERP_CONTRACT_ITEM_ID | Call by reference | Type reference (TYPE) | EBELP | Item Number of Purchasing Document | 20090212 | ||
2 | ![]() |
IV_ERP_CONTRACT_ID | Call by reference | Type reference (TYPE) | EBELN | Purchasing Document Number | 20090212 | ||
3 | ![]() |
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 | ![]() |
IV_DOC_TYPE | Call by reference | Type reference (TYPE) | BSTYP | CL_MMPUR_CONSTANTS=>BSTYP_F | Purchasing doc. cat. (F/B) | 20111108 | |
2 | ![]() |
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 | ![]() |
IS_ITEM | Call by reference | Type reference (TYPE) | EKPO | Purchasing Document Item | 20110916 | ||
2 | ![]() |
IV_ID | Call by reference | Type reference (TYPE) | I | Purchase Order identifier | 20110916 | ||
3 | ![]() |
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 | ![]() |
ET_CNT_DETAILS | Call by reference | Type reference (TYPE) | MMBSI_BBP_CTR_ITEM_MAP_TTY | Mapping Central Contract | 20090319 | ||
2 | ![]() |
IV_BE_NUM_INT | Call by reference | Type reference (TYPE) | EBELP | Item Number of Purchasing Document | 20090319 | ||
3 | ![]() |
IV_BE_OBJECT_ID | Call by reference | Type reference (TYPE) | EBELN | Purchasing Document Number | 20090319 | ||
4 | ![]() |
IV_NUM_INT | Call by reference | Type reference (TYPE) | SRM_CONTRACT_ITEM | Central Contract Item Number | 20090319 | ||
5 | ![]() |
IV_OBJECT_ID | Call by reference | Type reference (TYPE) | SRM_CONTRACT_ID | Central Contract | 20090319 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
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 | ![]() |
IV_ID | Call by reference | Type reference (TYPE) | INT4 | GF_ID from SAPLMEPO | 20110826 | ||
2 | ![]() |
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 | ![]() |
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 |