SAP ABAP Class CL_PRICING_CPF_HELPER (Pricing CPF helper methods)
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 | 20121026 |
Properties
| Class | CL_PRICING_CPF_HELPER | |
| Short Description | Pricing CPF helper methods | |
| 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 | 20121026 | SAP |
| Last change | 20131127 | SAP |
| Shared Memory-enabled | ||
| Fixed point arithmetic | ||
| Unicode checks active |
Forward declarations
Class CL_PRICING_CPF_HELPER has no forward declaration.
Interfaces
| # | Interface | Abstract | Final | Description | Created on |
|---|---|---|---|---|---|
| 1 | IF_CPF_CONSTANTS | Interface CPF constants | 20121026 |
Friends
Class CL_PRICING_CPF_HELPER has no friend class.
Attributes
| # | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Static Attribute | Public | See coding | 20121204 | |||||
| 2 | Constant | Public | Type reference (TYPE) | CHAR7 | 'ABHIJKT' | Pricing calc. rules percent/absolute | 20130424 | ||
| 3 | Constant | Public | Type reference (TYPE) | CHAR11 | 'CDEFLMNOPRS' | Pricing calc. rules relative | 20130424 |
Methods
| # | Method | Level | Visibility | Method type | Description | Created on |
|---|---|---|---|---|---|---|
| 1 | Static method | Public | Method | Determines the number of decimals for a given currency | 20121204 | |
| 2 | Static method | Public | Method | Format quality value | 20121026 | |
| 3 | Static method | Public | Method | Get qualities (1st delivery, then batch, then mat. master) | 20121026 | |
| 4 | Static method | Public | Method | Get result rate | 20121026 | |
| 5 | Static method | Public | Method | 20130424 | ||
| 6 | Static method | Public | Method | Set result rate | 20121026 |
Events
Class CL_PRICING_CPF_HELPER has no event.
Types
Class CL_PRICING_CPF_HELPER has no local type.
Method Signatures
Method DETERMINE_CURRENCY_DECIMALS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_DECIMALS | Call by reference | Type reference (TYPE) | RSDECIMALS | Number of decimal places | 20121204 | |||
| 2 | IV_CURRENCY | Call by reference | Type reference (TYPE) | WAERS | Currency Key | 20121204 |
Method DETERMINE_CURRENCY_DECIMALS on class CL_PRICING_CPF_HELPER has no exception.
Method FORMAT_QUALITY_VALUE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_VALUE | Value transfer | Type reference (TYPE) | ANY | 20121026 | ||||
| 2 | IS_CHAR_VALUE | Call by reference | Type reference (TYPE) | CMM_MD_QLTY_VALUE | Characteristic values | 20121026 | |||
| 3 | IV_CHAR_NAME | Call by reference | Type reference (TYPE) | ATNAM | Characteristic Name | 20121026 | |||
| 4 | IV_FORMAT | Call by reference | Type reference (TYPE) | ANY | 20121026 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Exception for CPF | 20121026 |
Method GET_QUALITY_VALUE_BY_HIERARCHY Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_CHAR_NAME | Call by reference | Type reference (TYPE) | ATNAM | Characteristic name | 20121026 | |||
| 2 | RS_CHAR_VALUE | Value transfer | Type reference (TYPE) | CMM_MD_QLTY_VALUE | Characteristic values | 20121026 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Exception for CPF | 20121026 |
Method GET_RESULT_RATE_AS_FIXEDPOINT Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CV_CURRENCY | Call by reference | Type reference (TYPE) | WAERS | CPF currency | 20121026 | |||
| 2 | CV_NUMBER | Call by reference | Type reference (TYPE) | KBETR | CPF Number | 20121026 | |||
| 3 | CV_PRICEUNIT | Call by reference | Type reference (TYPE) | KPEIN | CPF Price unit | 20121026 | |||
| 4 | CV_UNIT | Call by reference | Type reference (TYPE) | KMEIN | CPF UoM | 20121026 | |||
| 5 | IR_RESULT | Call by reference | Type reference (TYPE) | DATA | 20121026 | ||||
| 6 | IV_CALC_TYPE | Call by reference | Type reference (TYPE) | KRECH | Calculation type for condition | 20121026 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Exception for CPF parameter values | 20121026 |
Method SET_DECIMAL_SEPARATOR Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_VALUE | Call by reference | Type reference (TYPE) | CPF_NUMBER | Formatted value | 20130424 | |||
| 2 | IV_CURRENCY | Call by reference | Type reference (TYPE) | WAERS | Currency Key | 20130424 | |||
| 3 | IV_KRECH | Call by reference | Type reference (TYPE) | KRECH | Calculation type for condition | 20130424 | |||
| 4 | IV_VALUE | Call by reference | Type reference (TYPE) | CPF_NUMBER | Original value | 20130424 |
Method SET_DECIMAL_SEPARATOR on class CL_PRICING_CPF_HELPER has no exception.
Method SET_RESULT_RATE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CR_RESULT | Call by reference | Type reference (TYPE) | DATA | 20121026 | ||||
| 2 | IV_CURRENCY | Call by reference | Type reference (TYPE) | CPF_CURRENCY | CPF currency | 20121026 | |||
| 3 | IV_NUMBER | Call by reference | Type reference (TYPE) | CPF_NUMBER | CPF Number | 20121026 | |||
| 4 | IV_PRICEUNIT | Call by reference | Type reference (TYPE) | CPF_PU | CPF Price unit | 20121026 | |||
| 5 | IV_UNIT | Call by reference | Type reference (TYPE) | CPF_UNIT | CPF UoM | 20121026 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Exception for CPF parameter values | 20121026 |
History
| Last changed by/on | SAP | 20131127 |
| SAP Release Created in | 617 |