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 | Type group use (TYPE-POOLS tp) | Type group use (TYPE-POOLS tp) | |
| 2 | 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 | Constant | Public | Type reference (TYPE) | CHAR2 | 'BT' | Calculation type % and fixed amount | 20130514 | ||
| 2 | Constant | Public | Type reference (TYPE) | ENHBADIID | 'BADI_CPF_SCALE_EVALUATION' | BAdI Name for Scale Evaluation Routine | 20130411 | ||
| 3 | Constant | Public | Type reference (TYPE) | CPF_ELEMENTARY_DATA_TYPE | 'CPFS_PRICE_BASE' | CPF Elementary Data Type | 20130424 | ||
| 4 | Constant | Public | Type reference (TYPE) | ENHSPOTNAME | 'ES_CPF_BASIS' | Enhancement Spot Name CPF Basis | 20130411 | ||
| 5 | Constant | Public | Type reference (TYPE) | CHAR6 | 'AHIJKT' | Calculation type % and fixed amount | 20130514 | ||
| 6 | Constant | Public | Type reference (TYPE) | CHAR11 | 'CDEFLMNOPRS' | Calculation type % and fixed amount | 20130514 |
Methods
| # | Method | Level | Visibility | Method type | Description | Created on |
|---|---|---|---|---|---|---|
| 1 | Static method | Private | Method | Converts value, currency, price unit and UoM to a string | 20130411 | |
| 2 | Static method | Private | Method | Create parameter value object | 20130228 | |
| 3 | Static method | Public | Method | Displays a BRFplus function in the BRFplus Workbench | 20121212 | |
| 4 | Static method | Private | Method | Extract parameter value object | 20130228 | |
| 5 | Static method | Private | Method | Format manual rate parameters by calculation type (KRECH) | 20130514 | |
| 6 | Static method | Public | Method | Get field attributes or ALV field catalog data by scale para | 20130515 | |
| 7 | Static method | Public | Method | Get all CPF formula IDs of usage Pricing | 20130219 | |
| 8 | Static method | Public | Method | Returns all parameters and their values of a CPF formula | 20121212 | |
| 9 | Static method | Public | Method | Returns all tasks and their values of a CPF formula | 20121212 | |
| 10 | Static method | Public | Method | Returns Scale of a Parameter | 20130423 | |
| 11 | Static method | Public | Method | Remove scale with respective scale items | 20130425 | |
| 12 | Static method | Public | Method | Sets all parameters and their values for a CPF formula | 20130116 | |
| 13 | Static method | Public | Method | Sets all tasks and their values for a CPF formula | 20130116 | |
| 14 | 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 | IV_CURRENCY | Call by reference | Type reference (TYPE) | WAERS | Currency Key | 20130411 | |||
| 2 | IV_KMEIN | Call by reference | Type reference (TYPE) | KMEIN | Condition unit | 20130411 | |||
| 3 | IV_KPEIN | Call by reference | Type reference (TYPE) | CPF_PARAMETER_VALUE | Parameter Value | 20130411 | |||
| 4 | IV_VALUE | Call by reference | Type reference (TYPE) | CPF_PARAMETER_VALUE | Parameter Value | 20130411 | |||
| 5 | 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 | IV_DATA_CATEGORY | Call by reference | Type reference (TYPE) | CPF_DATA_CATEGORY | CPF Data Category | 20130228 | |||
| 2 | IV_DATA_TYPE | Call by reference | Type reference (TYPE) | CPF_REF_DATA_TYPE | CPF Referenced Data Type | 20130228 | |||
| 3 | IV_KMEIN | Call by reference | Type reference (TYPE) | KMEIN | Condition unit | 20130228 | |||
| 4 | IV_KPEIN | Call by reference | Type reference (TYPE) | CPF_PARAMETER_VALUE | Condition pricing unit | 20130228 | |||
| 5 | IV_KRECH | Call by reference | Type reference (TYPE) | KRECH | Calculation type for condition | 20130411 | |||
| 6 | IV_VALUE | Call by reference | Type reference (TYPE) | CPF_PARAMETER_VALUE | CPF parameter value | 20130228 | |||
| 7 | IV_WAERS | Call by reference | Type reference (TYPE) | WAERS | Currency Key | 20130228 | |||
| 8 | RO_VALUE_OBJ | Value transfer | Object reference (TYPE REF TO) | DATA | Parameter value object | 20130228 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | 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 | 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 | EV_KMEIN | Call by reference | Type reference (TYPE) | KMEIN | Condition unit | 20130228 | |||
| 2 | EV_KMEIN_NOT_EDITABLE | Call by reference | Type reference (TYPE) | ABAP_BOOL | 20130228 | ||||
| 3 | EV_KPEIN | Call by reference | Type reference (TYPE) | CPF_PARAMETER_VALUE | Condition pricing unit | 20130228 | |||
| 4 | EV_KPEIN_NOT_EDITABLE | Call by reference | Type reference (TYPE) | ABAP_BOOL | 20130228 | ||||
| 5 | EV_VALUE | Call by reference | Type reference (TYPE) | CPF_PARAMETER_VALUE | CPF parameter value | 20130228 | |||
| 6 | EV_WAERS | Call by reference | Type reference (TYPE) | WAERS | Currency Key | 20130228 | |||
| 7 | EV_WAERS_NOT_EDITABLE | Call by reference | Type reference (TYPE) | ABAP_BOOL | 20130228 | ||||
| 8 | IO_VALUE_OBJ | Value transfer | Object reference (TYPE REF TO) | DATA | Parameter value object | 20130228 | |||
| 9 | IV_DATA_CATEGORY | Call by reference | Type reference (TYPE) | CPF_DATA_CATEGORY | CPF Data Category | 20130228 | |||
| 10 | IV_DATA_TYPE | Call by reference | Type reference (TYPE) | CPF_REF_DATA_TYPE | CPF Referenced Data Type | 20130228 | |||
| 11 | IV_KRECH | Call by reference | Type reference (TYPE) | KRECH | Calculation type for condition | 20130514 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | 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 | EV_KMEIN | Call by reference | Type reference (TYPE) | KMEIN | Condition unit | 20130514 | |||
| 2 | EV_KMEIN_NOT_EDITABLE | Call by reference | Type reference (TYPE) | ABAP_BOOL | 20130514 | ||||
| 3 | EV_KPEIN | Call by reference | Type reference (TYPE) | CPF_PARAMETER_VALUE | Condition pricing unit | 20130514 | |||
| 4 | EV_KPEIN_NOT_EDITABLE | Call by reference | Type reference (TYPE) | ABAP_BOOL | 20130514 | ||||
| 5 | EV_VALUE | Call by reference | Type reference (TYPE) | CPF_PARAMETER_VALUE | Parameter Value | 20130522 | |||
| 6 | EV_VALUE_NOT_EDITABLE | Call by reference | Type reference (TYPE) | ABAP_BOOL | 20130522 | ||||
| 7 | EV_WAERS | Call by reference | Type reference (TYPE) | WAERS | Currency Key | 20130514 | |||
| 8 | EV_WAERS_NOT_EDITABLE | Call by reference | Type reference (TYPE) | ABAP_BOOL | 20130514 | ||||
| 9 | IV_KRECH | Call by reference | Type reference (TYPE) | KRECH | Calculation type for condition | 20130514 | |||
| 10 | IV_TASK | Call by reference | Type reference (TYPE) | CPF_USAGE_TASK | Usage Task | 20130514 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | 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 | CS_FCAT | Call by reference | Type reference (TYPE) | LVC_S_FCAT | ALV control: Field catalog | 20130515 | |||
| 2 | EV_DISPLAY_COL | Call by reference | Type reference (TYPE) | VFPRC_CPF_SCALE_DISPLAY_COL | CPF Scale: Display columns of currency or unit | 20130515 | |||
| 3 | EV_REF_DATA_TYPE | Call by reference | Type reference (TYPE) | ROLLNAME | Data element (semantic domain) | 20130515 | |||
| 4 | EV_REF_FIELD | Call by reference | Type reference (TYPE) | LVC_RFNAME | ALV control: Reference field name for internal table field | 20130515 | |||
| 5 | EV_REF_TABLE | Call by reference | Type reference (TYPE) | LVC_RTNAME | ALV control: Reference table name for internal table field | 20130515 | |||
| 6 | IV_DATA_CATEGORY | Call by reference | Type reference (TYPE) | CPF_DATA_CATEGORY | Data Type Category | 20130515 | |||
| 7 | IV_DATA_TYPE | Call by reference | Type reference (TYPE) | CPF_REF_DATA_TYPE | Referenced Data Type | 20130515 | |||
| 8 | 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 | 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 | ET_PARAMETER_VALUES | Value transfer | Type reference (TYPE) | PRHT_CPF_PARAMETER | Table type for PRHS_CPF_PARAMETER | 20121212 | |||
| 2 | IV_CPF_GUID | Call by reference | Type reference (TYPE) | CPF_GUID | CPF document guid | 20121212 | |||
| 3 | IV_KRECH | Call by reference | Type reference (TYPE) | KRECH | Calculation type for condition | 20130411 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | 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 | ET_FORMULA_TASK | Value transfer | Type reference (TYPE) | PRHT_CPF_FORMULATASK | CPF Formula Usage Tasks | 20121212 | |||
| 2 | IV_CPF_GUID | Call by reference | Type reference (TYPE) | CPF_GUID | CPF document guid | 20121212 | |||
| 3 | IV_KRECH | Call by reference | Type reference (TYPE) | KRECH | Calculation type for condition | 20130411 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | 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 | ES_SCALE_BASE_VALUE | Call by reference | Type reference (TYPE) | PRHS_CPF_SCALE_BASE_VALUE | CPF Formula Scale Base Value | 20130515 | |||
| 2 | ES_SCALE_HEADER | Call by reference | Type reference (TYPE) | PRHS_CPF_SCALE_HEADER | CPF Formula Scale Header | 20130423 | |||
| 3 | ES_SCALE_START_VALUE | Call by reference | Type reference (TYPE) | PRHS_CPF_SCALE_START_VALUE | CPF Formula Scale Start Values | 20130516 | |||
| 4 | ET_SCALE_ITEM | Call by reference | Type reference (TYPE) | PRHT_CPF_SCALE_ITEM | Table type for PRHS_CPF_SCALE_ITEM | 20130423 | |||
| 5 | IV_CPF_GUID | Call by reference | Type reference (TYPE) | CPF_GUID | CPF GUID for Document | 20130423 | |||
| 6 | IV_KRECH | Call by reference | Type reference (TYPE) | KRECH | Calculation type for condition | 20130423 | |||
| 7 | IV_PARAMETER_NAME | Call by reference | Type reference (TYPE) | CPF_PARAMETER_NAME | Parameter Name | 20130423 | |||
| 8 | 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 | IV_CPF_GUID | Call by reference | Type reference (TYPE) | CPF_GUID | CPF GUID for Document | 20130425 | |||
| 2 | IV_PARAMETER_NAME | Call by reference | Type reference (TYPE) | CPF_PARAMETER_NAME | Parameter Name | 20130425 | |||
| 3 | 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 | IT_PARAMETER_VALUES | Value transfer | Type reference (TYPE) | PRHT_CPF_PARAMETER | Table type for PRHS_CPF_PARAMETER | 20130116 | |||
| 2 | IV_KRECH | Call by reference | Type reference (TYPE) | KRECH | Calculation type for condition | 20130411 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | 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 | EV_CPF_GUID | Call by reference | Type reference (TYPE) | CPF_GUID | CPF document guid | 20130215 | |||
| 2 | IT_FORMULA_TASK | Value transfer | Type reference (TYPE) | PRHT_CPF_FORMULATASK | CPF Formula Usage Tasks | 20130116 | |||
| 3 | IV_KNUMV | Call by reference | Type reference (TYPE) | KNUMV | Number of the document condition | 20130215 | |||
| 4 | IV_KPOSN | Call by reference | Type reference (TYPE) | KPOSN | Condition item number | 20130215 | |||
| 5 | IV_KRECH | Call by reference | Type reference (TYPE) | KRECH | Number of the document condition | 20130411 | |||
| 6 | IV_STUNR | Call by reference | Type reference (TYPE) | STUNR | Step number | 20130215 | |||
| 7 | IV_ZAEHK | Call by reference | Type reference (TYPE) | DZAEHK | Condition counter | 20130215 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | 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 | IS_SCALE_HEADER | Call by reference | Type reference (TYPE) | PRHS_CPF_SCALE_HEADER | CPF Formula Scale Header | 20130423 | |||
| 2 | IT_SCALE_ITEM | Call by reference | Type reference (TYPE) | PRHT_CPF_SCALE_ITEM | Table type for PRHS_CPF_SCALE_ITEM | 20130423 | |||
| 3 | IV_CPF_GUID | Call by reference | Type reference (TYPE) | CPF_GUID | CPF GUID for Document | 20130423 | |||
| 4 | IV_PARAMETER_NAME | Call by reference | Type reference (TYPE) | CPF_PARAMETER_NAME | Parameter Name | 20130423 | |||
| 5 | IV_SUBPARAMETER | Call by reference | Type reference (TYPE) | CPF_SUBPARAMETER | Subparameter | 20130423 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Exception for CPF pricing integration | 20130423 |
History
| Last changed by/on | SAP | 20131127 |
| SAP Release Created in | 617 |