SAP ABAP Class CL_MMPUR_UI_CPPR (Sourcing Utility Class)
Hierarchy
SAP_APPL (Software Component) Logistics and Accounting
   MM-PUR (Application Component) Purchasing
     MMPUR_UI_MODEL (Package) Model Components for Web Dynpro Applications, Purchasing
Meta Relationship - Using
# Relationship type Using Short Description Created on
1 Interface implementation (CLASS c. INTERFACES i_ref)  IF_MMPUR_UI_PURDOC_EVENTS Event interface 20070823
Properties
Class CL_MMPUR_UI_CPPR  
Short Description Sourcing Utility Class    
Super Class    
Instantiability of a Class 2  Public 
Final    
General Data
Message Class    
Program status     
Category 0   
Package MMPUR_UI_MODEL   Model Components for Web Dynpro Applications, Purchasing 
Created 20070814   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_MMPUR_UI_PURDOC_EVENTS Event interface 20070823
Friends
Class CL_MMPUR_UI_CPPR has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 C_ERP Constant Public Type reference (TYPE) STRING 'E' Contract is ERP 20080308
2 C_ERP_SRM Constant Public Type reference (TYPE) STRING 'ES' Contract is in both ERP and SRM 20080308
3 C_EVAL_SCORE_40 Constant Public Type reference (TYPE) GESBU 40 Evaluation Score 40 20080303
4 C_EVAL_SCORE_50 Constant Public Type reference (TYPE) GESBU 50 Evaluation Score 50 20080303
5 C_EVAL_SCORE_60 Constant Public Type reference (TYPE) GESBU 60 Evalutaion Score 60 20080303
6 C_EVAL_SCORE_70 Constant Public Type reference (TYPE) GESBU 70 Evalutaion Score 70 20080303
7 C_EVAL_SCORE_80 Constant Public Type reference (TYPE) GESBU 80 Evalutaion Score 80 20080303
8 C_EVAL_SCORE_90 Constant Public Type reference (TYPE) GESBU 90 Evalutaion Score 90 20080303
9 C_INDEX_1 Constant Public Type reference (TYPE) STRING '1' Index 1 20080303
10 C_INDEX_2 Constant Public Type reference (TYPE) STRING '2' Index 2 20080303
11 C_INDEX_3 Constant Public Type reference (TYPE) STRING '3' Index 3 20080303
12 C_INDEX_4 Constant Public Type reference (TYPE) STRING '4' Index 4 20080303
13 C_INDEX_5 Constant Public Type reference (TYPE) STRING '5' Index 5 20080303
14 C_INDEX_6 Constant Public Type reference (TYPE) STRING '6' Index 6 20080303
15 C_INDEX_7 Constant Public Type reference (TYPE) STRING '7' Index 7 20080303
16 C_MSGTY_A Constant Public Type reference (TYPE) MSGTY 'A' Message Type 20080303
17 C_MSGTY_E Constant Public Type reference (TYPE) MSGTY 'E' Message Type 20080303
18 C_MSGTY_W Constant Public Type reference (TYPE) MSGTY 'W' Message Type 20080303
19 C_NULL_DATE Constant Public Type reference (TYPE) STRING '00000000' Initial null value for date 20080328
20 C_RFQ_TYP Constant Public Type reference (TYPE) BSTYP 'A' Purchasing Doc Category 'A' 20080303
21 C_SRM Constant Public Type reference (TYPE) STRING 'S' Contract is SRM 20080308
22 MO_CONST Instance attribute Private Object reference (TYPE REF TO) CL_MMPUR_CONSTANTS Constants Purchasing 20121026
23 MT_EXT_RFX_INFO Static Attribute Private Type reference (TYPE) MMPURUI_T_RFX_INFO Table for RFX Information 20080218
24 MT_PACKAGE Instance attribute Private Type reference (TYPE) TYPE_T_PACKNO 20121026
25 MT_PR_ITEMS_CRT_PO Instance attribute Public Type reference (TYPE) MMPURUI_PR_ITEMS_TTY Table for PR items to be bundled 20070814
26 MT_RFQ_SET Instance attribute Public Type reference (TYPE) MMPURUI_QUICK_RFQ_STY structure for quick RFQ data 20070816
27 MV_AUT_SOURCING Static Attribute Private Type reference (TYPE) MMPUR_BOOL Boolean type 20080123
28 MV_BP_VERSION Static Attribute Public Type reference (TYPE) MMPURUI_BP_VERSION_TY BP version 20080404
29 MV_EXT_RFX_IND Static Attribute Private Type reference (TYPE) MMPUR_BOOL Decides if 'Create RFx' button is visible 20080123
30 MV_EXT_SC_IND Static Attribute Private Type reference (TYPE) MMPUR_BOOL Decides if 'Shift to Central Sourcing' button is visible 20080123
31 MV_PACKNO Instance attribute Private Type reference (TYPE) PACKNO Package number 20121026
32 SR_CPPR_UI_INSTANCE Static Attribute Public Object reference (TYPE REF TO) CL_MMPUR_UI_CPPR Singleton instance 20080207
Methods
# Method Level Visibility Method type Description Created on
1 BUILD_PARAM_FOR_SRMPRICING Static method Public Method Get SRM parameter for pricing 20080318
2 CONSTRUCTOR Instance method Public Constructor CONSTRUCTOR 20080207
3 CON_IS_ERP_R_SRM Static method Public Method Check if the entered ID is a ERP or SRM or Both 20080308
4 CREATE_PO Static method Public Method Create PO for PR Items 20070814
5 GET_CONDITION_DOC Static method Public Method Get Condition Record 20070814
6 GET_COND_DOC_TEXT Static method Public Method Get Condition Document Text 20070821
7 GET_DUMMY_PACKNO Instance method Private Method Get dummy package number for PO create process 20121026
8 GET_EXT_BIDDERS Static method Public Method Get list of possible Bidders from external system 20080819
9 GET_EXT_RFX_TYPES Static method Public Method Gets the RFx Types 20080218
10 GET_EXT_SRC_PARAMS Static method Public Method Get the badi parameters related to external sourcing 20080218
11 GET_INSTANCE Static method Public Method Gets existing class instance or creates a new one 20080207
12 GET_POSSIBLE_SOS Static method Public Method Get Possible SOS for PR Item 20070912
13 GET_POSSIBLE_SOS_EXTN Static method Public Method Get Possible SOS for PR Item 20080225
14 GET_PRITEM_STATUS Static method Public Method Get the Status of the PR item(s) 20070814
15 GET_PR_SERVICE_DATA Static method Private Method Get the Service Data Item for Service PR's 20070822
16 GET_SERVICE_LINE_INFO Static method Public Method Get Service Line Information 20090303
17 GET_SRM_PRICING_INFO Static method Public Method Get SRM pricing information 20080318
18 GET_SUPP_COMP_MATERIAL Static method Public Method Get Supplier Comp for Material 20070821
19 INITIALIZE Static method Public Method Initialize CPPR Appl 20070814
20 REPLACE_PACKNO Instance method Private Method Replace package number 20121026
21 REQUEST_PROCESS Instance method Public Method Request Process 20070823
Events
Class CL_MMPUR_UI_CPPR has no event.
Types
# Type Visibility Typing Associated Type Description Created on Type Source
1 TYPE_S_PACKNO Private See coding 20121026 BEGIN OF type_s_packno, packno TYPE packno, dummy TYPE packno, END OF type_s_packno
2 TYPE_T_PACKNO Private See coding 20121026 type_t_packno TYPE SORTED TABLE OF type_s_packno WITH UNIQUE KEY packno
Method Signatures

Method BUILD_PARAM_FOR_SRMPRICING Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EX_SRM_PARAM Call by reference Type reference (TYPE) MMBSI_SRM_CONTRT_PARAM_STU SRM Contract Parameters 20080318
2 Importing IM_EBELN Call by reference Type reference (TYPE) EBELN contract number (erp) 20080318
3 Importing IM_EBELP Call by reference Type reference (TYPE) EBELP contract Item 20080318
4 Importing IM_SIMULATE_QTY Call by reference Type reference (TYPE) BAMNG Purchase requisition quantity 20080610

Method BUILD_PARAM_FOR_SRMPRICING on class CL_MMPUR_UI_CPPR has no exception.

Method CONSTRUCTOR Signature

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

Method CON_IS_ERP_R_SRM Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EX_CONT Call by reference Type reference (TYPE) STRING Choose main criterion 20080308
2 Exporting EX_ERP_ID Call by reference Type reference (TYPE) BBP_BAPI_EBELN_K Contract number 20080313
3 Exporting EX_ERP_ITEM Call by reference Type reference (TYPE) EBELP Item Number of Purchasing Document 20080313
4 Exporting EX_SPLIT_CRIT Call by reference Type reference (TYPE) XFLD Choose main criterion 20080310
5 Importing IM_EBELN Call by reference Type reference (TYPE) EBELN Purchasing Document Number 20080308
6 Importing IM_EBELP Call by reference Type reference (TYPE) EBELP Item Number of Purchasing Document 20080313
7 Importing IM_EKORG Call by reference Type reference (TYPE) EKORG Purchasing Organization 20080321
8 Importing IM_WERKS Call by reference Type reference (TYPE) EWERK Plant Table for National (Centrally Agreed) Contracts 20080313

Method CON_IS_ERP_R_SRM on class CL_MMPUR_UI_CPPR has no exception.

Method CREATE_PO Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_RETURN_MESSAGES Call by reference Type reference (TYPE) BAPIRETTAB Return messages 20070814
2 Exporting EV_PO_CREATED_STATUS Call by reference Type reference (TYPE) BOOLEAN Flag for status of PO 20070814
3 Importing IT_PR_ITEMS_SET Call by reference Type reference (TYPE) MMPURUI_PR_ITEMS_TTY PR Items for which a PO will be created 20070814
4 Importing IV_COMMIT_DATA Value transfer Type reference (TYPE) BOOLEAN Flag to determine if the data has to be commited 20071231
5 Importing IV_SOS Value transfer Type reference (TYPE) FLIEF Source of Supply for which PO will be created 20070814

Method CREATE_PO on class CL_MMPUR_UI_CPPR has no exception.

Method GET_CONDITION_DOC Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EXT_KOMV Call by reference Type reference (TYPE) KOMV_TTY Table Type: Pricing communications-condition record 20070817
2 Exporting EX_BEST_PRICE Call by reference Type reference (TYPE) NETWR Net Value in Document Currency 20070814
3 Exporting EX_COND_HEADER Call by reference Type reference (TYPE) PRSIM Data Structure for Price Simulation 20070814
4 Importing IM_PR_ITEM Call by reference Type reference (TYPE) EBAN Purchase Requisition 20070814
5 Importing IM_SIMULATE_MEINS Call by reference Type reference (TYPE) MEINS Base Unit of Measure 20070928
6 Importing IM_SIMULATE_QTY Call by reference Type reference (TYPE) BAMNG Material Master View: Alternative Quantity of Material 20070910
7 Importing IM_SOURCING Call by reference Type reference (TYPE) SRC_DETERM Sources of Supply 20070814
# Exception Resumable Description Created on
1 ERROR_IN_PRS_COND 20070814

Method GET_COND_DOC_TEXT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EX_TEXT Call by reference Type reference (TYPE) VTXTK Name 20070821
2 Importing IM_KALSM Call by reference Type reference (TYPE) KALSM_D Procedure (Pricing, Output Control, Acct. Det., Costing,...) 20070821
3 Importing IM_KSCHL Call by reference Type reference (TYPE) KSCHA Condition type 20070821
4 Importing IM_LIFNR Call by reference Type reference (TYPE) ELIFN Vendor Account Number 20070821
5 Importing IM_STUNR Call by reference Type reference (TYPE) STUNR Step number 20070821

Method GET_COND_DOC_TEXT on class CL_MMPUR_UI_CPPR has no exception.

Method GET_DUMMY_PACKNO Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning RV_PACKNO Value transfer Type reference (TYPE) PACKNO Package number 20121026

Method GET_DUMMY_PACKNO on class CL_MMPUR_UI_CPPR has no exception.

Method GET_EXT_BIDDERS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ES_SUITEALLOWED_BIDDER Call by reference Type reference (TYPE) PUR_RFQREQUEST_SUITEALLOWED_B4 Proxy Structure (generated) 20080819
2 Importing IS_BIDDER_SEL_CRITERIA Call by reference Type reference (TYPE) PUR_RFQREQUEST_SUITEALLOWED_B5 Proxy Structure (generated) 20080819
# Exception Resumable Description Created on
1 CX_AI_APPLICATION_FAULT Application Integration: Application Error 20080819
2 CX_AI_SYSTEM_FAULT Application Integration: Technical Error 20080819

Method GET_EXT_RFX_TYPES Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_EXT_RFX_INFO Call by reference Type reference (TYPE) MMPURUI_T_RFX_INFO Table type for RFX Information 20080225
# Exception Resumable Description Created on
1 CX_AI_APPLICATION_FAULT Application Integration: Application Error 20080218
2 CX_AI_SYSTEM_FAULT Application Integration: Technical Error 20080218

Method GET_EXT_SRC_PARAMS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_AUT_SOURCING Call by reference Type reference (TYPE) MMPUR_BOOL Boolean type 20080218
2 Exporting EV_EXT_RFX_IND Call by reference Type reference (TYPE) MMPUR_BOOL Boolean type 20080218
3 Exporting EV_EXT_SC_IND Call by reference Type reference (TYPE) MMPUR_BOOL Boolean type 20080218

Method GET_EXT_SRC_PARAMS on class CL_MMPUR_UI_CPPR has no exception.

Method GET_INSTANCE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning RR_CPPR_UI_INSTANCE Value transfer Object reference (TYPE REF TO) CL_MMPUR_UI_CPPR Sourcing Utility Class 20080207

Method GET_INSTANCE on class CL_MMPUR_UI_CPPR has no exception.

Method GET_POSSIBLE_SOS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EXT_SRC_TAB Call by reference Type reference (TYPE) MMPURUI_SRC_DETERM_TTY Results of Source Determination Process 20070912
2 Exporting EX_LIFNR_SCORE Call by reference Type reference (TYPE) MMPURUI_ELBP_TTY Table Type: Vendor Score 20070912
3 Importing IM_EBAN Call by reference Type reference (TYPE) EBAN Purchase Requisition 20070912
# Exception Resumable Description Created on
1 ERROR_PLANT_NOT_FOUND 20070920

Method GET_POSSIBLE_SOS_EXTN Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EXT_SRC_TAB Call by reference Type reference (TYPE) MMBSI_SRC_DETRM_EXTN_TTY Results of Source Determination Process 20080225
2 Exporting EX_LIFNR_SCORE Call by reference Type reference (TYPE) MMPURUI_ELBP_TTY Table Type: Vendor Score 20080225
3 Importing IM_EBAN Call by reference Type reference (TYPE) EBAN Purchase Requisition 20080225
# Exception Resumable Description Created on
1 ERROR_PLANT_NOT_FOUND 20080225

Method GET_PRITEM_STATUS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing IV_PR_ITEMS Call by reference Type reference (TYPE) MMPURUI_PR_ITEMS_TTY Table for PR items to be bundled 20070814

Method GET_PRITEM_STATUS on class CL_MMPUR_UI_CPPR has no exception.

Method GET_PR_SERVICE_DATA Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_SERVICE_DATA Call by reference Type reference (TYPE) BAPIESLLC_TP Communication Structure: Create Service Line 20070822
2 Importing IV_PACKNO Call by reference Type reference (TYPE) PACKNO Package number 20070822

Method GET_PR_SERVICE_DATA on class CL_MMPUR_UI_CPPR has no exception.

Method GET_SERVICE_LINE_INFO Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EX_ET_SRV_ACC Call by reference Type reference (TYPE) BAPIMEPOACCOUNT_TP 20090304
2 Exporting EX_ET_SRV_ACC_VALUES Call by reference Type reference (TYPE) BAPIESKLC_TP 20090304
3 Importing IM_PO_NUMBER Call by reference Type reference (TYPE) BANFN Purchase Requisition Number 20090303
4 Importing IV_ITEM_NO Call by reference Type reference (TYPE) BNFPO Item Number of Purchase Requisition 20121026

Method GET_SERVICE_LINE_INFO on class CL_MMPUR_UI_CPPR has no exception.

Method GET_SRM_PRICING_INFO Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EX_ERROR_CODE Call by reference Type reference (TYPE) I error code in case of exception 20080325
2 Exporting EX_ERROR_TAB Call by reference Type reference (TYPE) BAPIRET2_TAB Error Messages 20080613
3 Exporting EX_HEADER Call by reference Type reference (TYPE) MMBSI_PRSIM_TTY Data Structure for Price Simulation 20080319
4 Exporting EX_KOMV Call by reference Type reference (TYPE) MMBSI_KOMV_EXTN_TTY Table Type: Pricing communications-condition record 20080318
5 Importing IM_PR_ITEM Call by reference Type reference (TYPE) EBAN Purchase Requisition 20080610
6 Importing IM_SOS Call by reference Type reference (TYPE) MMPURUI_SRC_DETERM_TTY Results of Source Determination Process 20080318

Method GET_SRM_PRICING_INFO on class CL_MMPUR_UI_CPPR has no exception.

Method GET_SUPP_COMP_MATERIAL Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EXT_COND_DOC_HEADER Call by reference Type reference (TYPE) MMPURUI_PRSIM_TTY Table Type: Price Simulation 20070821
2 Exporting EXT_ERROR_CODE Call by reference Type reference (TYPE) I error code for srm pricing 20080325
3 Exporting EXT_KOMV Call by reference Type reference (TYPE) MMBSI_KOMV_EXTN_TTY Table Type: Pricing communications-condition record 20070821
4 Exporting EXT_SRM_ERROR Call by reference Type reference (TYPE) BAPIRET2_TAB Error Messages 20080613
5 Importing IMT_SOS Call by reference Type reference (TYPE) MMPURUI_SRC_DETERM_TTY Results of Source Determination Process 20070821
6 Importing IM_EBAN Call by reference Type reference (TYPE) EBAN Purchase Requisition 20070912

Method GET_SUPP_COMP_MATERIAL on class CL_MMPUR_UI_CPPR has no exception.

Method INITIALIZE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EXT_PR_ITEM_REF Call by reference Type reference (TYPE) MMPURUI_PR_REF_TTY Table Type: PR Referance 20070816
2 Exporting EX_PR_AGG_REF Call by reference Object reference (TYPE REF TO) CL_REQUISITION_AGGREGATE_MM Vorschlagswerte bei Anlage von Debitoren aus Workbench 20070814
3 Importing IMT_BANF_KEY Call by reference Type reference (TYPE) BANF_KEY_TTY Table Type: Key of purchase requisition 20070816

Method INITIALIZE on class CL_MMPUR_UI_CPPR has no exception.

Method REPLACE_PACKNO Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_ACCOUNT Call by reference Type reference (TYPE) BAPIESKLC_TP Table Type for BAPIESKLC 20121026
2 Changing CT_SERVICE Call by reference Type reference (TYPE) BAPIESLLC_TP Table Type for BAPIESLLC 20121026
3 Exporting EV_PACKNO Call by reference Type reference (TYPE) PACKNO Package number 20121026
4 Importing IV_PACKNO Call by reference Type reference (TYPE) PACKNO Package number 20121026
5 Importing IV_SUBPACK Call by reference Type reference (TYPE) MMPUR_BOOL ABAP_FALSE is subpackage? 20121026

Method REPLACE_PACKNO on class CL_MMPUR_UI_CPPR has no exception.

Method REQUEST_PROCESS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_PROCESS_MESSAGES Call by reference Type reference (TYPE) XCHAR Batch management indicator (internal) 20070824
2 Importing IV_SYNC_ONLY Call by reference Type reference (TYPE) XCHAR ABAP_FALSE Batch management indicator (internal) 20070824

Method REQUEST_PROCESS on class CL_MMPUR_UI_CPPR has no exception.
History
Last changed by/on SAP  20130531 
SAP Release Created in 603