SAP ABAP Class CL_MMBSI_SRM_PRICING (MEPO SRM Pricing Functions)
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_SRM_PRICING  
Short Description MEPO SRM Pricing Functions    
Super Class    
Instantiability of a Class 0  Private 
Final    
General Data
Message Class    
Program status     
Category 0   
Package MM_P2P_BSI_CC   Central Contract Management 
Created 20080219   SAP 
Last change 20140121   SAP 
Shared Memory-enabled    
Fixed point arithmetic    
Unicode checks active    
Forward declarations
Class CL_MMBSI_SRM_PRICING has no forward declaration.
Interfaces
Class CL_MMBSI_SRM_PRICING has no interface implemented.
Friends
Class CL_MMBSI_SRM_PRICING has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 C_BTC Constant Public Type reference (TYPE) CHAR3 'BTC' 3-Byte field 20080219
2 C_ERP Constant Public Type reference (TYPE) CHAR3 'ERP' 3-Byte field 20080219
3 C_SRM Constant Public Type reference (TYPE) CHAR3 'SRM' 3-Byte field 20080219
4 GO_INSTANCE Static Attribute Private Object reference (TYPE REF TO) CL_MMBSI_SRM_PRICING MEPO SRM Pricing Functions 20101012
5 MC_CALCTYPE_A Constant Private Type reference (TYPE) KSTEU 'A' Calculation Type 20101103
6 MC_CALCTYPE_B Constant Private Type reference (TYPE) KSTEU 'B' Calculation Type 20101103
7 MC_CALCTYPE_C Constant Private Type reference (TYPE) KSTEU 'C' Calculation Type 20101103
8 MC_KAPPL_M Constant Private Type reference (TYPE) KAPPL 'M' Application 20101103
9 MC_KAPPL_MS Constant Private Type reference (TYPE) KAPPL 'MS' Application Service Item 20101103
10 MC_KRECH_A Constant Private Type reference (TYPE) KRECH 'A' Calculation Type for condition 20101103
11 MO_CONST Instance attribute Public Object reference (TYPE REF TO) CL_MMPUR_CONSTANTS Constants Purchasing 20101103
12 MS_EKKO Instance attribute Private Type reference (TYPE) EKKO Purchasing Document Header 20101103
13 MS_EKPO Instance attribute Private Type reference (TYPE) EKPO Purchasing Document Item 20101103
14 MS_PO_REF Instance attribute Private Type reference (TYPE) TYPE_S_PO_REF PO Object References (header & item) 20110826
15 MS_SRV_COM_HEAD Instance attribute Private Type reference (TYPE) KOMK Communication Header for Pricing 20101103
16 MT_KSCHL_CONV Static Attribute Private Type reference (TYPE) MMBSI_KSCHL_CONV_TTY Buffer for condition types 20101103
17 MT_SRV_ITEM_MAP Instance attribute Private Type reference (TYPE) MMBSI_SRVPOS_ITEM_MAP_TTY Mapping of EBP Items to ERP Items 20101103
18 MT_TKOMV Instance attribute Private Type reference (TYPE) KOMV_TTY Table Pricing communications-condition records old 20101103
19 MV_ITERATION_COUNT Instance attribute Private Type reference (TYPE) I 0 iteration counter 20101012
20 MV_KONNR Instance attribute Private Type reference (TYPE) KONNR Number of Principal Purchase Agreement 20101103
21 MV_KTPNR Instance attribute Private Type reference (TYPE) KTPNR Item Number of Principal Purchase Agreement 20101103
22 MV_PRICING_MODE Instance attribute Private Type reference (TYPE) TY_PRICING_MODE SPACE 3-Byte field 20101103
23 MV_SENDER_ID Instance attribute Private Type reference (TYPE) TEXT60 Own Business System 20101103
Methods
# Method Level Visibility Method type Description Created on
1 CHECK_ERP_INPUT_DATA Instance method Private Method Perfom checks on ERP PO Data before SRM will be called 20080417
2 CLEANUP Static method Public Method Destructur 20110826
3 CONTR_BUFFER_GET Instance method Private Method Read Buffered Agreements 20080219
4 CONVERT_KSCHL_SRM_2_ERP Static method Public Method Convertion Routine for KSCHL - Mapping into ERP KSCHL 20080307
5 CONVERT_SEVERITY_CODE_INBOUND Instance method Private Method Conversion of GDT Severity Code Values 20080409
6 DEL_ITEM_CONDITIONS Instance method Private Method Deletes all Condition Records for a particular Item 20080421
7 DEL_ITEM_CONDITIONS_EX_MANUAL Instance method Private Method Deletes all Condition Records for a particular Item 20080421
8 GET_INSTANCE Static method Public Method Get Instance 20101012
9 GET_ITERATION Instance method Public Method Retrieve iteration counter 20101012
10 INSERT_INTO_TKOMV Instance method Private Method Convertion Routine for KSCHL - Mapping into ERP KSCHL 20080327
11 IS_PSTYP_ALLOWED Static method Public Method Check if pstyp is allowed for SRM pricing 20110510
12 MULTI_RELEVANCE_DETERMINATION Instance method Private Method Determination of relevant items for SRM central contract han 20080411
13 PRICING_CALL_SRM Instance method Private Method Call of eSOA service for SRM pricing 20080219
14 PRICING_DETERMINE Instance method Public Method Determines SRM Pricing 20080219
15 PRICING_MAPDATA_IN Instance method Private Method Data Mapping 20080219
16 PRICING_MAPDATA_IN_ALL Instance method Public Method Data Mapping for all SOS 20080317
17 PRICING_MAPDATA_OUT Instance method Private Method Data Mapping 20080303
18 PRICING_PROCESS_MULTI Instance method Public Method SRM Pricing through eSOA Service 20080317
19 PRICING_PROCESS_SINGLE Instance method Public Method SRM Pricing through eSOA Service 20080317
20 PRICING_PROCESS_SINGLE_SRV Instance method Public Method SRM Pricing through eSOA Service 20080512
21 RESET_ITERATION Instance method Public Method Iteration Counter reset 20101103
22 SET_PO_REF Instance method Public Method Set PO References 20110826
23 SRV_DETERMINE_SRM_CONTRACT_ID Instance method Private Method Determines the used Central Contract Item for Service Items 20080527
24 SRV_PO_DATA_GET Instance method Public Method Save EKKO & EKPO Data in Class Memory 20080527
25 SRV_PO_DATA_SET Instance method Public Method Save EKKO & EKPO Data in Class Memory 20080527
Events
Class CL_MMBSI_SRM_PRICING has no event.
Types
# Type Visibility Typing Associated Type Description Created on Type Source
1 TYPE_S_PO_REF Private See coding PO Object References (header & item) 20110826 BEGIN OF type_s_po_ref, "1620881 header TYPE REF TO cl_po_header_handle_mm, item TYPE REF TO cl_po_item_handle_mm, END OF type_s_po_ref
2 TY_PRICING_MODE Public Type reference (TYPE) CHAR3 Pricing Processing Mode 20080220
Method Signatures

Method CHECK_ERP_INPUT_DATA Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning EP_CALL_SRM Value transfer Type reference (TYPE) XFELD 'X' = Call eSOA Service for SRM Data 20080508
2 Importing IP_CHANGE Call by reference Type reference (TYPE) XFELD EKKO or EKPO changed 20080508
3 Importing IS_COMM_ITEM Call by reference Type reference (TYPE) KOMP Pricing Communication Item 20080508
4 Importing IS_COMSRV Call by reference Type reference (TYPE) COMSRV Interface: MM External Services Management 20080517
5 Importing IS_EKPO Call by reference Type reference (TYPE) EKPO Purchasing Document Item 20080417
6 Importing IT_KOMV Call by reference Type reference (TYPE) KOMV_TTY Table Pricing communications-condition record actual data 20080508

Method CHECK_ERP_INPUT_DATA on class CL_MMBSI_SRM_PRICING has no exception.

Method CLEANUP Signature

Method CLEANUP on class CL_MMBSI_SRM_PRICING has no parameter.
Method CLEANUP on class CL_MMBSI_SRM_PRICING has no exception.

Method CONTR_BUFFER_GET Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ES_EKKO Call by reference Type reference (TYPE) EKKO Purchasing Document Header 20080219
2 Exporting ES_EKPO Call by reference Type reference (TYPE) EKPO Purchasing Document Item 20080219
3 Importing IP_KONNR Call by reference Type reference (TYPE) KONNR Number of Principal Purchase Agreement 20080219
4 Importing IP_KTPNR Call by reference Type reference (TYPE) KTPNR Item Number of Principal Purchase Agreement 20080219
# Exception Resumable Description Created on
1 NOT_FOUND Agreement not found 20080219

Method CONVERT_KSCHL_SRM_2_ERP Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EP_ERP_KSCHL Call by reference Type reference (TYPE) KSCHL Condition Type 20080307
2 Importing IP_ERP_KALSM Call by reference Type reference (TYPE) KALSM_D Procedure (Pricing, etc.) 20080423
3 Importing IP_SRM_KSCHL Call by reference Type reference (TYPE) KSCHL Condition Type 20080307
# Exception Resumable Description Created on
1 CHECK_INPUT Input Parameter wrong or empty 20080307
2 NOT_FOUND No record found in database with that key 20080307

Method CONVERT_SEVERITY_CODE_INBOUND Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_VALUE Call by reference Type reference (TYPE) CHAR1 Single-Character Flag 20101103
2 Returning RV_VALUE Value transfer Type reference (TYPE) MSGTY Message Type 20101103

Method CONVERT_SEVERITY_CODE_INBOUND on class CL_MMBSI_SRM_PRICING has no exception.

Method DEL_ITEM_CONDITIONS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_KOMV Call by reference Type reference (TYPE) KOMV_TAB Table type komv 20080421
2 Importing IP_KNUMV Call by reference Type reference (TYPE) KNUMV Number of the document condition 20080421
3 Importing IP_KPOSN Call by reference Type reference (TYPE) KPOSN Condition item number 20080421

Method DEL_ITEM_CONDITIONS on class CL_MMBSI_SRM_PRICING has no exception.

Method DEL_ITEM_CONDITIONS_EX_MANUAL Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_KOMV Call by reference Type reference (TYPE) KOMV_TAB Table type komv 20080421
2 Importing IP_KNUMV Call by reference Type reference (TYPE) KNUMV Number of the document condition 20080421
3 Importing IP_KPOSN Call by reference Type reference (TYPE) KPOSN Condition item number 20080421

Method DEL_ITEM_CONDITIONS_EX_MANUAL on class CL_MMBSI_SRM_PRICING has no exception.

Method GET_INSTANCE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning RO_OBJECT Value transfer Object reference (TYPE REF TO) CL_MMBSI_SRM_PRICING MEPO SRM Pricing Functions 20101012

Method GET_INSTANCE on class CL_MMBSI_SRM_PRICING has no exception.

Method GET_ITERATION Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning RV_COUNTER Value transfer Type reference (TYPE) I Iteration counter 20101012

Method GET_ITERATION on class CL_MMBSI_SRM_PRICING has no exception.

Method INSERT_INTO_TKOMV Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_KOMV Call by reference Type reference (TYPE) KOMV_TTY Condition Type 20080327
2 Importing IP_KNUMV Call by reference Type reference (TYPE) KNUMV Number of the document condition 20080422
3 Importing IP_KPOSN Call by reference Type reference (TYPE) KPOSN Condition item number 20080422
4 Importing IT_KOMV Call by reference Type reference (TYPE) KOMV_TTY Condition Type 20080327

Method INSERT_INTO_TKOMV on class CL_MMBSI_SRM_PRICING has no exception.

Method IS_PSTYP_ALLOWED Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IM_PSTYP Call by reference Type reference (TYPE) EKPO-PSTYP Item category in purchasing document 20110510
2 Returning RV_IS_ALLOWED Value transfer Type reference (TYPE) MMPUR_BOOL Boolean type 20110510

Method IS_PSTYP_ALLOWED on class CL_MMBSI_SRM_PRICING has no exception.

Method MULTI_RELEVANCE_DETERMINATION Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_EKPO Call by reference Type reference (TYPE) EKPO_TTY Material Items 20080411
2 Exporting ET_EKPO_SRV Call by reference Type reference (TYPE) EKPO_TTY Service Items 20080624
3 Importing IT_EKPO Call by reference Type reference (TYPE) MMPUR_BEKPO Table Type BEKPO 20080411

Method MULTI_RELEVANCE_DETERMINATION on class CL_MMBSI_SRM_PRICING has no exception.

Method PRICING_CALL_SRM Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_TKOMV Call by reference Type reference (TYPE) KOMV_TTY Table Type: Pricing communications-condition record 20080220
2 Importing IS_COMM_HEAD Call by reference Type reference (TYPE) KOMK Communication Header for Pricing 20080603
3 Importing IS_EKKO Call by reference Type reference (TYPE) EKKO Purchasing Document Header 20080305
4 Importing IS_ESLL Call by reference Type reference (TYPE) ESLL Lines of Service Package 20131212
5 Importing IT_EKPO Call by reference Type reference (TYPE) EKPO_TTY Table Types for Purchasing Document Items 20080305
# Exception Resumable Description Created on
1 NO_CONDITIONS No SRM Conditions available 20101022
2 SERVICE_ERROR Service not available 20080219

Method PRICING_DETERMINE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EP_PROCESSING_MODE Call by reference Type reference (TYPE) CHAR3 3-Byte field 20080219
2 Importing IP_CUSTOMIZING Call by reference Type reference (TYPE) XFELD 'X' Evaluate Customizing table MMBSI_PRC_MODE 20080317
3 Importing IP_KONNR Value transfer Type reference (TYPE) KONNR Number of Principal Purchase Agreement 20080219
4 Importing IP_KTPNR Call by reference Type reference (TYPE) KTPNR Item Number of Principal Purchase Agreement 20080219
# Exception Resumable Description Created on
1 CHECK_INPUT Check Input Parameter 20080219
2 NOT_FOUND Contract not found 20080219

Method PRICING_MAPDATA_IN Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_KOMV Call by reference Type reference (TYPE) KOMV_TTY Table Type: Pricing communications-condition record 20080219
2 Changing CT_MESSAGES Call by reference Type reference (TYPE) BAPIRET2_TAB Return Parameter 20080228
3 Importing IP_MSG_HANDLE Call by reference Type reference (TYPE) XFELD SPACE 'X' = Export Messages to MEPO Handler 20080303
4 Importing IP_SRM_CTR_BUFFER Call by reference Type reference (TYPE) XFELD SPACE 'X' = Insert into Buffer for SRM additional Data 20080228
5 Importing IS_EKKO Call by reference Type reference (TYPE) EKKO Purchasing Document Header 20080423
6 Importing IT_EKPO Call by reference Type reference (TYPE) EKPO_TTY Purchasing Document Header 20080517
7 Importing IT_SRM_COND Call by reference Type reference (TYPE) PUR_PURCHASE_ORDER_SRMPRICING MT PurchaseOrderSRMPricingSimulateResponse 20080219
# Exception Resumable Description Created on
1 ERROR_KSCHL_CONVERSION No condition type received from SRM 20080307

Method PRICING_MAPDATA_IN_ALL Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_KOMV Call by reference Type reference (TYPE) KOMV_TTY Conditions after mapping 20080317
2 Changing CT_MESSAGES Call by reference Type reference (TYPE) BAPIRET2_TAB SRM messages 20080317
3 Importing IT_SRM_COND Call by reference Type reference (TYPE) PUR_PURCHASE_ORDER_SRMPRICING SRM conditions from service call 20080317
4 Importing I_DIALOG Value transfer Type reference (TYPE) FLAG SPACE General Flag 20080320
5 Importing I_INPUT_SOS Call by reference Type reference (TYPE) MMBSI_SRM_CONTRT_PARAM_TTY Table of SRM Contract Parameters 20080423
6 Importing I_ITM_TYP Value transfer Type reference (TYPE) CHAR_01 'M' Item type 'M' for material and 'S' for service item 20080520
# Exception Resumable Description Created on
1 ERROR_KSCHL_CONVERSION 20080317

Method PRICING_MAPDATA_OUT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_SRM_COND Call by reference Type reference (TYPE) PUR_PURCHASE_ORDER_SRMPRICING1 MT for PurchaseOrderSRMPricingSimulateQuery 20080303
2 Importing IP_SRM_CHECKS Call by reference Type reference (TYPE) CHAR5 'FALSE' 'TRUE' = Skip Checks during PO Creation in SRM 20080304
3 Importing IS_COMM_HEAD Call by reference Type reference (TYPE) KOMK Communication Header for Pricing 20080603
4 Importing IS_EKKO Call by reference Type reference (TYPE) EKKO Purchasing Document Header 20080304
5 Importing IS_ESLL Call by reference Type reference (TYPE) ESLL Lines of Service Package 20131212
6 Importing IT_EKPO Call by reference Type reference (TYPE) EKPO_TTY Table for Purchasing Document Items 20080304
# Exception Resumable Description Created on
1 ERROR Processing Error 20080527

Method PRICING_PROCESS_MULTI Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CS_COMM_HEAD Call by reference Type reference (TYPE) KOMK Communication Header for Pricing 20080317
2 Changing CT_COMM_ITEM Call by reference Type reference (TYPE) KOMP_TTY Communication Table Item for Pricing 20080317
3 Changing CT_TKOMV Call by reference Type reference (TYPE) KOMV_TTY Table Type: Pricing communications-condition record 20080317
4 Importing IS_EKKO Call by reference Type reference (TYPE) EKKO Purchasing Document Header 20080317
5 Importing IT_EKPO Call by reference Type reference (TYPE) MMPUR_BEKPO Purchasing Document Item 20080317
# Exception Resumable Description Created on
1 CX_MMPUR_NOT_RELEVANT Not relvant 20111024

Method PRICING_PROCESS_SINGLE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CS_COMM_HEAD Call by reference Type reference (TYPE) KOMK Communication Header for Pricing 20080317
2 Changing CS_COMM_ITEM Call by reference Type reference (TYPE) KOMP Pricing Communication Item 20080317
3 Changing CT_TKOMV Call by reference Type reference (TYPE) KOMV_TTY Table Type: Pricing communications-condition record 20080317
4 Importing IP_CALC_TYPE Call by reference Type reference (TYPE) KSTEU Condition control 20080317
5 Importing IP_CHANGE Call by reference Type reference (TYPE) XFELD 'X' EKKO or EKPO changed 20080508
6 Importing IS_EKKO Call by reference Type reference (TYPE) EKKO Purchasing Document Header 20080317
7 Importing IS_EKPO Call by reference Type reference (TYPE) EKPO Purchasing Document Item 20080317
# Exception Resumable Description Created on
1 ERP_PRICING_REQUIRED ERP Pricing required 20101022

Method PRICING_PROCESS_SINGLE_SRV Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CS_COMM_HEAD Call by reference Type reference (TYPE) KOMK Communication Header for Pricing 20080512
2 Changing CS_COMM_ITEM Call by reference Type reference (TYPE) KOMP Pricing Communication Item 20080512
3 Changing CT_TKOMV Call by reference Type reference (TYPE) KOMV_TTY Table Type: Pricing communications-condition record 20080512
4 Importing IP_CALC_TYPE Call by reference Type reference (TYPE) KSTEU Condition control 20080512
5 Importing IS_COMSRV Call by reference Type reference (TYPE) COMSRV Interface: MM External Services Management 20080512
6 Importing IS_EKKO Call by reference Type reference (TYPE) EKKO Purchasing Document Header 20080512
7 Importing IS_EKPO Call by reference Type reference (TYPE) EKPO Purchasing Document Item 20080512
8 Importing IS_ESLL Call by reference Type reference (TYPE) ESLL Lines of Service Package 20131212
# Exception Resumable Description Created on
1 CX_MMPUR_MESSAGE Root mit Meldung 20110128
2 CX_MMPUR_NOT_RELEVANT Not relvant 20110129

Method RESET_ITERATION Signature

Method RESET_ITERATION on class CL_MMBSI_SRM_PRICING has no parameter.
Method RESET_ITERATION on class CL_MMBSI_SRM_PRICING has no exception.

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 SAPLMEPO(GF_ID) 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_SRM_PRICING has no exception.

Method SRV_DETERMINE_SRM_CONTRACT_ID Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EP_SRM_CONTRACT_ID Call by reference Type reference (TYPE) SRM_CONTRACT_ID Central Contract Number 20080527
2 Exporting EP_SRM_CONTRACT_ITM Call by reference Type reference (TYPE) SRM_CONTRACT_ITEM Central Contract Item Number 20080527
3 Importing IS_COMM_ITEM Call by reference Type reference (TYPE) KOMP Pricing Communication Item 20080617
4 Importing IS_COMSRV Call by reference Type reference (TYPE) COMSRV Interface: MM External Services Management 20080527
5 Importing IS_EKPO Call by reference Type reference (TYPE) EKPO Purchasing Document Item 20080527
# Exception Resumable Description Created on
1 ERROR Processing Error 20080527
2 INPUT_ERROR Check Input Data 20080602

Method SRV_PO_DATA_GET Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ES_EKKO Call by reference Type reference (TYPE) EKKO Purchasing Document Header 20080527
2 Exporting ES_EKPO Call by reference Type reference (TYPE) EKPO Purchasing Document Item 20080527

Method SRV_PO_DATA_GET on class CL_MMBSI_SRM_PRICING has no exception.

Method SRV_PO_DATA_SET 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 20080527
2 Importing IS_EKPO Call by reference Type reference (TYPE) EKPO Purchasing Document Item 20080527

Method SRV_PO_DATA_SET on class CL_MMBSI_SRM_PRICING has no exception.
History
Last changed by/on SAP  20140121 
SAP Release Created in 604