SAP ABAP Class CL_PRICING_CPF_IL (CPF: interaction layer)
Hierarchy
SAP_APPL (Software Component) Logistics and Accounting
   CA-GTF-PR-CPF (Application Component) Configurable Parameters and Formulas
     VF_PRC_CPF (Package) Integration of CPF into ERP Pricing
Meta Relationship - Using
# Relationship type Using Short Description Created on
1 Interface implementation (CLASS c. INTERFACES i_ref)  IF_CPF_CONSTANTS Interface CPF constants 20121212
Properties
Class CL_PRICING_CPF_IL  
Short Description CPF: interaction layer    
Super Class    
Instantiability of a Class 2  Public 
Final    
General Data
Message Class    
Program status     
Category 0   
Package VF_PRC_CPF   Integration of CPF into ERP Pricing 
Created 20121212   SAP 
Last change 20131127   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 IF_FDT_TYPES Forward declaration interface (INTERFACE i DEFINITION DEF...  Forward declaration interface (INTERFACE i DEFINITION DEF...
Interfaces
# Interface Abstract Final Description Created on
1 IF_CPF_CONSTANTS Interface CPF constants 20121212
Friends
Class CL_PRICING_CPF_IL has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 GC_ABSOLUTE_CALC_TYPE Constant Public Type reference (TYPE) CHAR2 'BT' Calculation type % and fixed amount 20130514
2 GC_BADI_NAME_SCALE_EVALUATION Constant Public Type reference (TYPE) ENHBADIID 'BADI_CPF_SCALE_EVALUATION' BAdI Name for Scale Evaluation Routine 20130411
3 GC_BASE_PRICE Constant Public Type reference (TYPE) CPF_ELEMENTARY_DATA_TYPE 'CPFS_PRICE_BASE' CPF Elementary Data Type 20130424
4 GC_ES_NAME_CPF_BASIS Constant Public Type reference (TYPE) ENHSPOTNAME 'ES_CPF_BASIS' Enhancement Spot Name CPF Basis 20130411
5 GC_PERCENT_CALC_TYPE Constant Public Type reference (TYPE) CHAR6 'AHIJKT' Calculation type % and fixed amount 20130514
6 GC_RELATIVE_CALC_TYPE Constant Public Type reference (TYPE) CHAR11 'CDEFLMNOPRS' Calculation type % and fixed amount 20130514
Methods
# Method Level Visibility Method type Description Created on
1 CONVERT_VALUE_TO_STRING Static method Private Method Converts value, currency, price unit and UoM to a string 20130411
2 CREATE_VALUE_OBJECT Static method Private Method Create parameter value object 20130228
3 DISPLAY_BRFPLUS_FUNCTION Static method Public Method Displays a BRFplus function in the BRFplus Workbench 20121212
4 EXTRACT_VALUE_OBJECT Static method Private Method Extract parameter value object 20130228
5 FORMAT_RATE_BASE_BY_CALCTYPE Static method Private Method Format manual rate parameters by calculation type (KRECH) 20130514
6 GET_FIELD_ATTR_BY_SCALE_PARAM Static method Public Method Get field attributes or ALV field catalog data by scale para 20130515
7 GET_FORMULA_IDS Static method Public Method Get all CPF formula IDs of usage Pricing 20130219
8 GET_FORMULA_PARAMETERS_AS_LIST Static method Public Method Returns all parameters and their values of a CPF formula 20121212
9 GET_FORMULA_TASKS_AS_LIST Static method Public Method Returns all tasks and their values of a CPF formula 20121212
10 GET_SCALE Static method Public Method Returns Scale of a Parameter 20130423
11 REMOVE_SCALE Static method Public Method Remove scale with respective scale items 20130425
12 SET_FORMULA_PARAMETERS_AS_LIST Static method Public Method Sets all parameters and their values for a CPF formula 20130116
13 SET_FORMULA_TASKS_AS_LIST Static method Public Method Sets all tasks and their values for a CPF formula 20130116
14 SET_SCALE Static method Public Method Sets Scale of a Parameter 20130423
Events
Class CL_PRICING_CPF_IL has no event.
Types
Class CL_PRICING_CPF_IL has no local type.
Method Signatures

Method CONVERT_VALUE_TO_STRING Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_CURRENCY Call by reference Type reference (TYPE) WAERS Currency Key 20130411
2 Importing IV_KMEIN Call by reference Type reference (TYPE) KMEIN Condition unit 20130411
3 Importing IV_KPEIN Call by reference Type reference (TYPE) CPF_PARAMETER_VALUE Parameter Value 20130411
4 Importing IV_VALUE Call by reference Type reference (TYPE) CPF_PARAMETER_VALUE Parameter Value 20130411
5 Returning RV_VALUE_STR Value transfer Type reference (TYPE) STRING 20130515

Method CONVERT_VALUE_TO_STRING on class CL_PRICING_CPF_IL has no exception.

Method CREATE_VALUE_OBJECT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_DATA_CATEGORY Call by reference Type reference (TYPE) CPF_DATA_CATEGORY CPF Data Category 20130228
2 Importing IV_DATA_TYPE Call by reference Type reference (TYPE) CPF_REF_DATA_TYPE CPF Referenced Data Type 20130228
3 Importing IV_KMEIN Call by reference Type reference (TYPE) KMEIN Condition unit 20130228
4 Importing IV_KPEIN Call by reference Type reference (TYPE) CPF_PARAMETER_VALUE Condition pricing unit 20130228
5 Importing IV_KRECH Call by reference Type reference (TYPE) KRECH Calculation type for condition 20130411
6 Importing IV_VALUE Call by reference Type reference (TYPE) CPF_PARAMETER_VALUE CPF parameter value 20130228
7 Importing IV_WAERS Call by reference Type reference (TYPE) WAERS Currency Key 20130228
8 Returning RO_VALUE_OBJ Value transfer Object reference (TYPE REF TO) DATA Parameter value object 20130228
# Exception Resumable Description Created on
1 CX_PRICING_CPF Exception for CPF pricing integration 20130228

Method DISPLAY_BRFPLUS_FUNCTION Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_BRFPLUS_FUNCTION_GUID Call by reference Type reference (TYPE) IF_FDT_TYPES=>ID Universal Unique Identifier 20121212

Method DISPLAY_BRFPLUS_FUNCTION on class CL_PRICING_CPF_IL has no exception.

Method EXTRACT_VALUE_OBJECT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_KMEIN Call by reference Type reference (TYPE) KMEIN Condition unit 20130228
2 Exporting EV_KMEIN_NOT_EDITABLE Call by reference Type reference (TYPE) ABAP_BOOL 20130228
3 Exporting EV_KPEIN Call by reference Type reference (TYPE) CPF_PARAMETER_VALUE Condition pricing unit 20130228
4 Exporting EV_KPEIN_NOT_EDITABLE Call by reference Type reference (TYPE) ABAP_BOOL 20130228
5 Exporting EV_VALUE Call by reference Type reference (TYPE) CPF_PARAMETER_VALUE CPF parameter value 20130228
6 Exporting EV_WAERS Call by reference Type reference (TYPE) WAERS Currency Key 20130228
7 Exporting EV_WAERS_NOT_EDITABLE Call by reference Type reference (TYPE) ABAP_BOOL 20130228
8 Importing IO_VALUE_OBJ Value transfer Object reference (TYPE REF TO) DATA Parameter value object 20130228
9 Importing IV_DATA_CATEGORY Call by reference Type reference (TYPE) CPF_DATA_CATEGORY CPF Data Category 20130228
10 Importing IV_DATA_TYPE Call by reference Type reference (TYPE) CPF_REF_DATA_TYPE CPF Referenced Data Type 20130228
11 Importing IV_KRECH Call by reference Type reference (TYPE) KRECH Calculation type for condition 20130514
# Exception Resumable Description Created on
1 CX_PRICING_CPF Exception for CPF pricing integration 20130228

Method FORMAT_RATE_BASE_BY_CALCTYPE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_KMEIN Call by reference Type reference (TYPE) KMEIN Condition unit 20130514
2 Exporting EV_KMEIN_NOT_EDITABLE Call by reference Type reference (TYPE) ABAP_BOOL 20130514
3 Exporting EV_KPEIN Call by reference Type reference (TYPE) CPF_PARAMETER_VALUE Condition pricing unit 20130514
4 Exporting EV_KPEIN_NOT_EDITABLE Call by reference Type reference (TYPE) ABAP_BOOL 20130514
5 Exporting EV_VALUE Call by reference Type reference (TYPE) CPF_PARAMETER_VALUE Parameter Value 20130522
6 Exporting EV_VALUE_NOT_EDITABLE Call by reference Type reference (TYPE) ABAP_BOOL 20130522
7 Exporting EV_WAERS Call by reference Type reference (TYPE) WAERS Currency Key 20130514
8 Exporting EV_WAERS_NOT_EDITABLE Call by reference Type reference (TYPE) ABAP_BOOL 20130514
9 Importing IV_KRECH Call by reference Type reference (TYPE) KRECH Calculation type for condition 20130514
10 Importing IV_TASK Call by reference Type reference (TYPE) CPF_USAGE_TASK Usage Task 20130514
# Exception Resumable Description Created on
1 CX_PRICING_CPF Exception for CPF pricing integration 20130514

Method GET_FIELD_ATTR_BY_SCALE_PARAM Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CS_FCAT Call by reference Type reference (TYPE) LVC_S_FCAT ALV control: Field catalog 20130515
2 Exporting EV_DISPLAY_COL Call by reference Type reference (TYPE) VFPRC_CPF_SCALE_DISPLAY_COL CPF Scale: Display columns of currency or unit 20130515
3 Exporting EV_REF_DATA_TYPE Call by reference Type reference (TYPE) ROLLNAME Data element (semantic domain) 20130515
4 Exporting EV_REF_FIELD Call by reference Type reference (TYPE) LVC_RFNAME ALV control: Reference field name for internal table field 20130515
5 Exporting EV_REF_TABLE Call by reference Type reference (TYPE) LVC_RTNAME ALV control: Reference table name for internal table field 20130515
6 Importing IV_DATA_CATEGORY Call by reference Type reference (TYPE) CPF_DATA_CATEGORY Data Type Category 20130515
7 Importing IV_DATA_TYPE Call by reference Type reference (TYPE) CPF_REF_DATA_TYPE Referenced Data Type 20130515
8 Importing IV_FIELDNAME Call by reference Type reference (TYPE) LVC_FNAME ALV control: Field name of internal table field 20130515

Method GET_FIELD_ATTR_BY_SCALE_PARAM on class CL_PRICING_CPF_IL has no exception.

Method GET_FORMULA_IDS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_FORMULA_ID Call by reference Type reference (TYPE) CPFT_FORMULA Table type for CPF customizing formula 20130219

Method GET_FORMULA_IDS on class CL_PRICING_CPF_IL has no exception.

Method GET_FORMULA_PARAMETERS_AS_LIST Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_PARAMETER_VALUES Value transfer Type reference (TYPE) PRHT_CPF_PARAMETER Table type for PRHS_CPF_PARAMETER 20121212
2 Importing IV_CPF_GUID Call by reference Type reference (TYPE) CPF_GUID CPF document guid 20121212
3 Importing IV_KRECH Call by reference Type reference (TYPE) KRECH Calculation type for condition 20130411
# Exception Resumable Description Created on
1 CX_PRICING_CPF Exception for CPF pricing integration 20121212

Method GET_FORMULA_TASKS_AS_LIST Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_FORMULA_TASK Value transfer Type reference (TYPE) PRHT_CPF_FORMULATASK CPF Formula Usage Tasks 20121212
2 Importing IV_CPF_GUID Call by reference Type reference (TYPE) CPF_GUID CPF document guid 20121212
3 Importing IV_KRECH Call by reference Type reference (TYPE) KRECH Calculation type for condition 20130411
# Exception Resumable Description Created on
1 CX_PRICING_CPF Exception for CPF pricing integration 20121212

Method GET_SCALE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ES_SCALE_BASE_VALUE Call by reference Type reference (TYPE) PRHS_CPF_SCALE_BASE_VALUE CPF Formula Scale Base Value 20130515
2 Exporting ES_SCALE_HEADER Call by reference Type reference (TYPE) PRHS_CPF_SCALE_HEADER CPF Formula Scale Header 20130423
3 Exporting ES_SCALE_START_VALUE Call by reference Type reference (TYPE) PRHS_CPF_SCALE_START_VALUE CPF Formula Scale Start Values 20130516
4 Exporting ET_SCALE_ITEM Call by reference Type reference (TYPE) PRHT_CPF_SCALE_ITEM Table type for PRHS_CPF_SCALE_ITEM 20130423
5 Importing IV_CPF_GUID Call by reference Type reference (TYPE) CPF_GUID CPF GUID for Document 20130423
6 Importing IV_KRECH Call by reference Type reference (TYPE) KRECH Calculation type for condition 20130423
7 Importing IV_PARAMETER_NAME Call by reference Type reference (TYPE) CPF_PARAMETER_NAME Parameter Name 20130423
8 Importing IV_SUBPARAMETER Call by reference Type reference (TYPE) CPF_SUBPARAMETER Parameter Name 20130423

Method GET_SCALE on class CL_PRICING_CPF_IL has no exception.

Method REMOVE_SCALE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_CPF_GUID Call by reference Type reference (TYPE) CPF_GUID CPF GUID for Document 20130425
2 Importing IV_PARAMETER_NAME Call by reference Type reference (TYPE) CPF_PARAMETER_NAME Parameter Name 20130425
3 Importing IV_SUBPARAMETER Call by reference Type reference (TYPE) CPF_SUBPARAMETER Subparameter 20130425

Method REMOVE_SCALE on class CL_PRICING_CPF_IL has no exception.

Method SET_FORMULA_PARAMETERS_AS_LIST Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IT_PARAMETER_VALUES Value transfer Type reference (TYPE) PRHT_CPF_PARAMETER Table type for PRHS_CPF_PARAMETER 20130116
2 Importing IV_KRECH Call by reference Type reference (TYPE) KRECH Calculation type for condition 20130411
# Exception Resumable Description Created on
1 CX_PRICING_CPF Exception for CPF pricing integration 20130116

Method SET_FORMULA_TASKS_AS_LIST Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_CPF_GUID Call by reference Type reference (TYPE) CPF_GUID CPF document guid 20130215
2 Importing IT_FORMULA_TASK Value transfer Type reference (TYPE) PRHT_CPF_FORMULATASK CPF Formula Usage Tasks 20130116
3 Importing IV_KNUMV Call by reference Type reference (TYPE) KNUMV Number of the document condition 20130215
4 Importing IV_KPOSN Call by reference Type reference (TYPE) KPOSN Condition item number 20130215
5 Importing IV_KRECH Call by reference Type reference (TYPE) KRECH Number of the document condition 20130411
6 Importing IV_STUNR Call by reference Type reference (TYPE) STUNR Step number 20130215
7 Importing IV_ZAEHK Call by reference Type reference (TYPE) DZAEHK Condition counter 20130215
# Exception Resumable Description Created on
1 CX_PRICING_CPF Exception for CPF pricing integration 20130116

Method SET_SCALE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IS_SCALE_HEADER Call by reference Type reference (TYPE) PRHS_CPF_SCALE_HEADER CPF Formula Scale Header 20130423
2 Importing IT_SCALE_ITEM Call by reference Type reference (TYPE) PRHT_CPF_SCALE_ITEM Table type for PRHS_CPF_SCALE_ITEM 20130423
3 Importing IV_CPF_GUID Call by reference Type reference (TYPE) CPF_GUID CPF GUID for Document 20130423
4 Importing IV_PARAMETER_NAME Call by reference Type reference (TYPE) CPF_PARAMETER_NAME Parameter Name 20130423
5 Importing IV_SUBPARAMETER Call by reference Type reference (TYPE) CPF_SUBPARAMETER Subparameter 20130423
# Exception Resumable Description Created on
1 CX_PRICING_CPF Exception for CPF pricing integration 20130423
History
Last changed by/on SAP  20131127 
SAP Release Created in 617