SAP ABAP Class CL_CPE_FE_HELPER (CPE helper class)
Hierarchy
☛
PI_BASIS (Software Component) Basis Plug-In
⤷
CA-GTF-CPE (Application Component) Commodity Pricing Engine
⤷
CPE_FA_FE (Package) Commodity Pricing: Formula Assembly and Evaluation (ABAP)
⤷
⤷
Properties
| Class | CL_CPE_FE_HELPER | |
| Short Description | CPE helper class | |
| Super Class | ||
| Instantiability of a Class | 0 | Private |
| Final |
General Data
| Message Class | ||
| Program status | ||
| Category | 0 | |
| Package | CPE_FA_FE | Commodity Pricing: Formula Assembly and Evaluation (ABAP) |
| Created | 20100614 | SAP |
| Last change | 20140121 | SAP |
| Shared Memory-enabled | ||
| Fixed point arithmetic | ||
| Unicode checks active |
Forward declarations
| # | Type group / Object type | Type | Type Description |
|---|---|---|---|
| 1 | Forward declaration class (CLASS c DEFINITION DEFERRED) | Forward declaration class (CLASS c DEFINITION DEFERRED) |
Interfaces
Class CL_CPE_FE_HELPER has no interface implemented.
Friends
Class CL_CPE_FE_HELPER has no friend class.
Attributes
| # | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Constant | Private | Type reference (TYPE) | INT_1 | 5 | Buffer for DB read of exchange rates quantities | 20100715 |
Methods
| # | Method | Level | Visibility | Method type | Description | Created on |
|---|---|---|---|---|---|---|
| 1 | Static method | Public | Method | Add datetimes before and after the given period | 20121002 | |
| 2 | Static method | Public | Method | Add timestamps before and after the given period | 20100715 | |
| 3 | Static method | Public | Method | Convert CPE value to field with currency reference | 20100928 | |
| 4 | Static method | Public | Method | convert decfloat to decfloat with different currency decimal | 20100928 | |
| 5 | Static method | Public | Method | Is the given date a working day | 20100715 | |
| 6 | Static method | Public | Method | Get data element text | 20100810 | |
| 7 | Static method | Public | Method | Read Quantities by material master or batch parameters | 20100715 | |
| 8 | Static method | Public | Method | Calculates the average value per quotation date | 20100708 | |
| 9 | Static method | Public | Method | Calculates the average value per quotation group | 20100708 | |
| 10 | Static method | Public | Method | Check if CPE timestamp is a valid date_time format | 20100614 | |
| 11 | Static method | Public | Method | Determine source and read data from DB | 20100715 | |
| 12 | Static method | Public | Method | Substitute Date for Exchange Rates | 20100715 | |
| 13 | Static method | Public | Method | Substitute Date for Price Quotations (obsolete) | 20100715 |
Events
Class CL_CPE_FE_HELPER has no event.
Types
| # | Type | Visibility | Typing | Associated Type | Description | Created on | Type Source |
|---|---|---|---|---|---|---|---|
| 1 | TY_CPE_QUOTGROUP | Public | See coding | quotation groups with rate | 20100708 | BEGIN OF ty_cpe_quotgroup,
quotsrc TYPE cpet_quotsrc,
quottype TYPE cpet_quottype,
quotname TYPE cpet_quotname,
dcsid TYPE tba_dcsid,
mic TYPE tba_mic,
tenor TYPE tba_tenor,
pricetype TYPE tba_pricetype,
quotdate TYPE cpet_quotdate,
rate TYPE cpet_internal_value,
END OF ty_cpe_quotgroup
|
|
| 2 | TY_CPE_QUOTGROUP_T | Public | See coding | standard table of quotation groups with rate | 20100708 | ty_cpe_quotgroup_t TYPE STANDARD TABLE OF ty_cpe_quotgroup
|
Method Signatures
Method ADD_DATETIME_BUFFER Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CT_DATETIMES | Call by reference | Type reference (TYPE) | IF_CPE_QUOTATIONS=>TY_DATETIMES | Dates with Times | 20121002 | |||
| 2 | IV_TIMESTAMP_BUFFER | Call by reference | Type reference (TYPE) | INT_1 | Number of additional timestamps | 20121002 |
Method ADD_DATETIME_BUFFER on class CL_CPE_FE_HELPER has no exception.
Method ADD_TIMESTAMP_BUFFER Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CT_TIMESTAMPS | Call by reference | Type reference (TYPE) | CPET_REFTIMESTAMP_TAB | CPE Table type for reference time stamp | 20100715 | |||
| 2 | CV_TIMESTAMP_FROM | Call by reference | Type reference (TYPE) | CPET_TIMESTAMPFROM | CPE Term - Start Date and Time for Fixed Period | 20100923 | |||
| 3 | CV_TIMESTAMP_TO | Call by reference | Type reference (TYPE) | CPET_TIMESTAMPTO | CPE Term - End Date and Time for Fixed Period | 20100923 | |||
| 4 | IV_TIMESTAMP_BUFFER | Call by reference | Type reference (TYPE) | INT_1 | Number of additional timestamps | 20100715 |
Method ADD_TIMESTAMP_BUFFER on class CL_CPE_FE_HELPER has no exception.
Method CONVERT_CPE_VALUE_TO_CURR Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CV_VALUE | Call by reference | Type reference (TYPE) | CPET_INTERNAL_VALUE | CPE - Used for internal calculation (rounding, conversion) | 20100928 | |||
| 2 | IV_CURRENCY | Call by reference | Type reference (TYPE) | SYCURR | Currency Key | 20100928 |
Method CONVERT_CPE_VALUE_TO_CURR on class CL_CPE_FE_HELPER has no exception.
Method CONVERT_CURR_TO_CPE_VALUE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CV_VALUE | Call by reference | Type reference (TYPE) | CPET_INTERNAL_VALUE | CPE - Used for internal calculation (rounding, conversion) | 20100928 | |||
| 2 | IV_CURRENCY | Call by reference | Type reference (TYPE) | SYCURR | Currency Key | 20100928 |
Method CONVERT_CURR_TO_CPE_VALUE on class CL_CPE_FE_HELPER has no exception.
Method DETERMINE_MISSING_FACTOR Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_CLOSED_MARKET | Call by reference | Type reference (TYPE) | XFELD | No working day - Closed market | 20100715 | |||
| 2 | EV_MISSING | Call by reference | Type reference (TYPE) | XFELD | Working day, but no data | 20100715 | |||
| 3 | IO_EVALUATION_DATA | Call by reference | Object reference (TYPE REF TO) | CL_CPE_FE_EVALUATION_DATA | CPE Evaluation data container | 20100715 | |||
| 4 | IV_CALENDAR_ID | Call by reference | Type reference (TYPE) | CPET_PERDETCALID | CPE Term - Calendar Used for Period Determination | 20100715 | |||
| 5 | IV_DATE | Call by reference | Type reference (TYPE) | SYDATUM | Date | 20100715 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | CPE Evaluation Terminated | 20100715 |
Method GET_DATAELEMENT_TEXT Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_LANGU | Call by reference | Type reference (TYPE) | LANGU | SY-LANGU | Language Key | 20100810 | ||
| 2 | IV_ROLLNAME | Call by reference | Type reference (TYPE) | ROLLNAME | Data element (semantic domain) | 20100810 | |||
| 3 | RV_DDIC | Value transfer | Type reference (TYPE) | DD04V | Generierte Tabelle zu einem View | 20100810 |
Method GET_DATAELEMENT_TEXT on class CL_CPE_FE_HELPER has no exception.
Method GET_MM_OR_BATCH_PARAMETERS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_QUANCONV_FROM | Call by reference | Type reference (TYPE) | CPET_INTERNAL_VALUE | CPE - Used for internal calculation (rounding, conversion) | 20100715 | |||
| 2 | EV_QUANCONV_TO | Call by reference | Type reference (TYPE) | CPET_INTERNAL_VALUE | 20100715 | ||||
| 3 | IO_EVALUATION_DATA | Call by reference | Object reference (TYPE REF TO) | CL_CPE_FE_EVALUATION_DATA | 20100715 | ||||
| 4 | IT_QUAN_CONV_PAIR | Call by reference | Type reference (TYPE) | CPET_QUANCONV_IF_TAB | CPE - Table Type for Quantity Conv. Interface in Pair Format | 20100715 | |||
| 5 | IV_QUANCONVSRC | Call by reference | Type reference (TYPE) | CPET_QUANCONVSRC | CPE - Quantity Conversion Source | 20100715 | |||
| 6 | IV_QUAN_CONV_ROUTINE | Call by reference | Type reference (TYPE) | CPET_QUANCONVROUT | 20100715 | ||||
| 7 | IV_UNIT_FROM | Call by reference | Type reference (TYPE) | CPET_UOMFROM | 20100715 | ||||
| 8 | IV_UNIT_TO | Call by reference | Type reference (TYPE) | CPET_UOMTO | 20100715 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | CPE Evaluation Terminated | 20100715 |
Method GET_QUOT_AVG_PER_DATE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ET_QUOTGROUP | Value transfer | Type reference (TYPE) | CL_CPE_FE_HELPER=>TY_CPE_QUOTGROUP_T | standard table of quotation groups with rate | 20100708 | |||
| 2 | IO_EVALUATION_DATA | Call by reference | Object reference (TYPE REF TO) | CL_CPE_FE_EVALUATION_DATA | CPE Evaluation data container | 20100713 | |||
| 3 | IT_QUOTATIONS | Call by reference | Type reference (TYPE) | CPET_PRICEQUOT_CALC_TAB | CPE - Price Quotation Table for Calculation in Evaluation | 20100708 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | CPE Evaluation Terminated | 20100713 |
Method GET_QUOT_AVG_PER_GROUP Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ET_QUOTGROUP | Value transfer | Type reference (TYPE) | CL_CPE_FE_HELPER=>TY_CPE_QUOTGROUP_T | standard table of quotation groups with rate | 20100708 | |||
| 2 | IO_EVALUATION_DATA | Call by reference | Object reference (TYPE REF TO) | CL_CPE_FE_EVALUATION_DATA | CPE Evaluation data container | 20100713 | |||
| 3 | IT_QUOTATIONS | Call by reference | Type reference (TYPE) | CPET_PRICEQUOT_CALC_TAB | CPE - Price Quotation Table for Calculation in Evaluation | 20100708 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | CPE Evaluation Terminated | 20100713 |
Method IS_VALID_CPE_TIMESTAMP Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_CPE_TIMESTAMP | Call by reference | Type reference (TYPE) | CPET_REFTIMESTAMP | CPE Term - Calculated Reference Date and Time | 20100614 | |||
| 2 | RV_VALID_TIMESTAMP | Value transfer | Type reference (TYPE) | BOOLE_D | Data element for domain BOOLE: TRUE (='X') and FALSE (=' ') | 20100614 |
Method IS_VALID_CPE_TIMESTAMP on class CL_CPE_FE_HELPER has no exception.
Method READ_PRICEQUOT_FOR_TIMESTAMPS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ET_PRICEQUOT_KEY | Call by reference | Type reference (TYPE) | CPET_PRICEQUOT_KEY_TAB | Price Quotation - Table type for Key | 20100715 | |||
| 2 | ET_QUOTATIONS | Call by reference | Type reference (TYPE) | CPET_PDT_PRCQUOT_WRK_TAB | Table Type for Price Quotation Master Data | 20100715 | |||
| 3 | IO_EVALUATION_DATA | Call by reference | Object reference (TYPE REF TO) | CL_CPE_FE_EVALUATION_DATA | CPE Evaluation data container | 20100715 | |||
| 4 | IT_TIMESTAMPS | Call by reference | Type reference (TYPE) | CPET_REFTIMESTAMP_TAB | CPE - Table Type for Reference Date | 20100715 | |||
| 5 | IV_CALENDAR_ID | Call by reference | Type reference (TYPE) | CPET_PERDETCALID | CPE Term - Calendar Used for Period Determination | 20100715 | |||
| 6 | IV_FLAG_NO_TIME | Call by reference | Type reference (TYPE) | XFELD | 'X': Don't consider time | 20100715 | |||
| 7 | IV_FLAG_SIM | Call by reference | Type reference (TYPE) | XFELD | 'X': Use Simulation DB table | 20100715 | |||
| 8 | IV_QUOTGROUP | Call by reference | Type reference (TYPE) | CPET_QUOTGROUP | Quotation Group | 20100715 | |||
| 9 | IV_QUOTNAME | Call by reference | Type reference (TYPE) | CPET_QUOTNAME | Quotation Name | 20100715 | |||
| 10 | IV_QUOTSRC | Call by reference | Type reference (TYPE) | CPET_QUOTSRC | Quotation Source | 20100715 | |||
| 11 | IV_QUOTTYPE | Call by reference | Type reference (TYPE) | CPET_QUOTTYPE | Quotation Type | 20100715 | |||
| 12 | IV_SOURCE_ROUTINE | Call by reference | Type reference (TYPE) | CPET_SOURCEROUT | CPE Term - Source Routine for Price Quot. or Curr. Ex. Rates | 20100715 | |||
| 13 | IV_TIMESTAMP_FROM | Call by reference | Type reference (TYPE) | CPET_TIMESTAMPFROM | CPE Term - Start Date and Time for Fixed Period | 20100715 | |||
| 14 | IV_TIMESTAMP_TO | Call by reference | Type reference (TYPE) | CPET_TIMESTAMPTO | CPE Term - End Date and Time for Fixed Period | 20100715 | |||
| 15 | IV_VALIDTO | Call by reference | Type reference (TYPE) | CPET_VALIDTO | CPE - 'Valid To' Time Stamp of Commodity Pricing Object | 20100715 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | CPE Evaluation Terminated | 20100715 |
Method SUBSTITUTE_DATE_EXCHRATES Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CT_EXCHANGE_RATES | Call by reference | Type reference (TYPE) | CPET_CURR_EXCH_RATES_TAB | CPE - Table Type for Currency Exchange Rates | 20100715 | |||
| 2 | EV_BILLING_BLOCK | Call by reference | Type reference (TYPE) | CPET_BILLING_BLOCK | CPE Caller - Billing: Blocking Reason for Document Items | 20100715 | |||
| 3 | EV_INCOMPLETE | Call by reference | Type reference (TYPE) | CPET_INCOMPLETE | CPE Term - Period Determination for Quotations Incomplete | 20100715 | |||
| 4 | IO_EVALUATION_DATA | Call by reference | Object reference (TYPE REF TO) | CL_CPE_FE_EVALUATION_DATA | CPE Evaluation data container | 20100715 | |||
| 5 | IV_CALENDAR_ID | Call by reference | Type reference (TYPE) | CPET_PERDETCALID | CPE Term - Calendar Used for Period Determination | 20100715 | |||
| 6 | IV_CLOSED_DAYS_ROUTINE | Call by reference | Type reference (TYPE) | CPET_CLOSEDDAYSROUT | CPE Term - Routine for Closed Market Days | 20100715 | |||
| 7 | IV_FLAG_SIM | Call by reference | Type reference (TYPE) | XFELD | Checkbox | 20100715 | |||
| 8 | IV_MAXWEIGHTING | Call by reference | Type reference (TYPE) | CPET_MAXWEIGHTING | CPE Term - Maximum Weighting of a Element During Averaging | 20100715 | |||
| 9 | IV_MISS_ENTRY_ROUTINE | Call by reference | Type reference (TYPE) | CPET_MISSENTRYROUT | CPE Term - Routine for Missing Entry Used for Period Determ. | 20100715 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | CPE Evaluation Terminated | 20100715 |
Method SUBSTITUTE_DATE_PRICEQUOT Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CT_QUOTATIONS | Call by reference | Type reference (TYPE) | CPET_PDT_PRCQUOT_WRK_TAB | Price Quotation | 20100715 | |||
| 2 | EV_BILLING_BLOCK | Call by reference | Type reference (TYPE) | CPET_BILLING_BLOCK | CPE Caller - Billing: Blocking Reason for Document Items | 20100715 | |||
| 3 | EV_INCOMPLETE | Call by reference | Type reference (TYPE) | CPET_INCOMPLETE | CPE Term - Period Determination for Quotations Incomplete | 20100715 | |||
| 4 | IO_EVALUATION_DATA | Call by reference | Object reference (TYPE REF TO) | CL_CPE_FE_EVALUATION_DATA | CPE Evaluation data container | 20100715 | |||
| 5 | IV_CALENDAR_ID | Call by reference | Type reference (TYPE) | CPET_PERDETCALID | CPE Term - Calendar Used for Period Determination | 20100715 | |||
| 6 | IV_CLOSED_DAYS_ROUTINE | Call by reference | Type reference (TYPE) | CPET_CLOSEDDAYSROUT | CPE Term - Routine for Closed Market Days | 20100715 | |||
| 7 | IV_EVAL_TIMESTAMP | Call by reference | Type reference (TYPE) | CPET_EVAL_TIMESTAMP | CPE Formula - Evaluation Date and Time | 20100715 | |||
| 8 | IV_FLAG_SIM | Call by reference | Type reference (TYPE) | XFELD | 'X': Use Simulation DB table | 20100715 | |||
| 9 | IV_MAXWEIGHTING | Call by reference | Type reference (TYPE) | CPET_MAXWEIGHTING | CPE Term - Maximum Weighting of a Element During Averaging | 20100715 | |||
| 10 | IV_MISS_ENTRY_ROUTINE | Call by reference | Type reference (TYPE) | CPET_MISSENTRYROUT | CPE Term - Routine for Missing Entry Used for Period Determ. | 20100715 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | CPE Evaluation Terminated | 20100715 |
History
| Last changed by/on | SAP | 20140121 |
| SAP Release Created in | 703 |