SAP ABAP Class CL_CPE_FE_CALENDAR_HELPER (CPE Calendar 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_CALENDAR_HELPER | |
| Short Description | CPE Calendar 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 | 20110308 | SAP |
| Last change | 20130531 | 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_CALENDAR_HELPER has no interface implemented.
Friends
Class CL_CPE_FE_CALENDAR_HELPER has no friend class.
Attributes
| # | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Static Attribute | Private | Type reference (TYPE) | MSEHI | Unit of Measurement | 20110606 | |||
| 2 | Static Attribute | Private | Type reference (TYPE) | MSEHI | Unit of Measurement | 20110606 | |||
| 3 | Static Attribute | Private | Type reference (TYPE) | MSEHI | Unit of Measurement | 20110606 |
Methods
| # | Method | Level | Visibility | Method type | Description | Created on |
|---|---|---|---|---|---|---|
| 1 | Static method | Public | Method | Determine the 1st day of 10 days period | 20110606 | |
| 2 | Static method | Public | Method | Determine the 1st day of half month | 20110606 | |
| 3 | Static method | Public | Method | Determine the 1st day of the wished month | 20110606 | |
| 4 | Static method | Public | Method | Determine the 1st day of wished week | 20110606 | |
| 5 | Static method | Public | Method | Date props: if workday, day of week, prev and next workday | 20110606 | |
| 6 | Static method | Public | Method | Determine the last day of 10 days period | 20110606 | |
| 7 | Static method | Public | Method | Determine the last day of half month | 20110606 | |
| 8 | Static method | Public | Method | Determine the last day of the wished month | 20110606 | |
| 9 | Static method | Public | Method | Determine the last day of wished week | 20110606 | |
| 10 | Static method | Public | Method | Shift a certain date in days, back and forward | 20110606 | |
| 11 | Static method | Public | Method | Shift a certain date in months, back and forward | 20110606 | |
| 12 | Static method | Public | Method | Shift a certain date in weeks, back and forward | 20110606 | |
| 13 | Static method | Public | Method | Shift a certain date in workdays, back and forward | 20110606 | |
| 14 | Static method | Private | Method | Shift days or workdays, back and forward | 20110606 |
Events
Class CL_CPE_FE_CALENDAR_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 | 20110606 | BEGIN OF ty_cpe_quotgroup,
quotsrc TYPE cpet_quotsrc,
quottype TYPE cpet_quottype,
quotname TYPE cpet_quotname,
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 | 20110606 | ty_cpe_quotgroup_t TYPE STANDARD TABLE OF ty_cpe_quotgroup
|
Method Signatures
Method GET_1ST_DAY_OF_10_DAYS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_FIRSTDAY_OF_TEN_DAYS | Call by reference | Type reference (TYPE) | CPET_EVAL_TIMESTAMP | CPE Formula - Evaluation Date and Time | 20110606 | |||
| 2 | IV_TIMESTAMP | Call by reference | Type reference (TYPE) | CPET_EVAL_TIMESTAMP | CPE Formula - Evaluation Date and Time | 20110606 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Exception CPE Calendar Helper | 20110606 |
Method GET_1ST_DAY_OF_HALF_MONTH Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_FIRSTDAY_OF_HALF_MONTH | Call by reference | Type reference (TYPE) | CPET_EVAL_TIMESTAMP | CPE Formula - Evaluation Date and Time | 20110606 | |||
| 2 | IV_TIMESTAMP | Call by reference | Type reference (TYPE) | CPET_EVAL_TIMESTAMP | CPE Formula - Evaluation Date and Time | 20110606 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Exception CPE Calendar Helper | 20110606 |
Method GET_1ST_DAY_OF_WISHED_MONTH Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_FIRST_DAY_OF_MONTH | Call by reference | Type reference (TYPE) | CPET_EVAL_TIMESTAMP | CPE Formula - Evaluation Date and Time | 20110606 | |||
| 2 | IV_OFFSET | Call by reference | Type reference (TYPE) | I | Whole Number with +/- Sign (-2.147.483.648 .. 2.147.483.647) | 20110606 | |||
| 3 | IV_TIMESTAMP | Call by reference | Type reference (TYPE) | CPET_EVAL_TIMESTAMP | CPE Formula - Evaluation Date and Time | 20110606 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Exception CPE Calendar Helper | 20110606 |
Method GET_1ST_DAY_OF_WISHED_WEEK Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_FIRST_DAY_OF_WEEK | Call by reference | Type reference (TYPE) | CPET_EVAL_TIMESTAMP | CPE Formula - Evaluation Date and Time | 20110606 | |||
| 2 | IV_OFFSET | Call by reference | Type reference (TYPE) | I | Whole Number with +/- Sign (-2.147.483.648 .. 2.147.483.647) | 20110606 | |||
| 3 | IV_START_DAY | Call by reference | Type reference (TYPE) | SC_DAY_TXT | 'MONDAY' | Weekdays (text) | 20110606 | ||
| 4 | IV_TIMESTAMP | Call by reference | Type reference (TYPE) | CPET_EVAL_TIMESTAMP | CPE Formula - Evaluation Date and Time | 20110606 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Exception CPE Calendar Helper | 20110606 |
Method GET_DATE_PROPERTIES Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_DAY_OF_WEEK | Call by reference | Type reference (TYPE) | SC_DAY_TXT | Weekdays (text) | 20110606 | |||
| 2 | EV_NEXT_WORKDAY | Call by reference | Type reference (TYPE) | CPET_EVAL_TIMESTAMP | CPE Formula - Evaluation Date and Time | 20110606 | |||
| 3 | EV_NON_WORKDAY | Call by reference | Type reference (TYPE) | XFELD | Checkbox | 20110606 | |||
| 4 | EV_PREVIOUS_WORKDAY | Call by reference | Type reference (TYPE) | CPET_EVAL_TIMESTAMP | CPE Formula - Evaluation Date and Time | 20110606 | |||
| 5 | IV_CALENDAR_ID | Call by reference | Type reference (TYPE) | CPET_PERDETCALID | CPE Term - Calendar Used for Period Determination | 20110606 | |||
| 6 | IV_TIMESTAMP | Call by reference | Type reference (TYPE) | CPET_EVAL_TIMESTAMP | CPE Formula - Evaluation Date and Time | 20110606 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Exception CPE Calendar Helper | 20110606 |
Method GET_LAST_DAY_OF_10_DAYS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_LASTDAY_OF_TEN_DAYS | Call by reference | Type reference (TYPE) | CPET_EVAL_TIMESTAMP | CPE Formula - Evaluation Date and Time | 20110606 | |||
| 2 | IV_TIMESTAMP | Call by reference | Type reference (TYPE) | CPET_EVAL_TIMESTAMP | CPE Formula - Evaluation Date and Time | 20110606 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Exception CPE Calendar Helper | 20110606 |
Method GET_LAST_DAY_OF_HALF_MONTH Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_LASTDAY_OF_HALF_MONTH | Call by reference | Type reference (TYPE) | CPET_EVAL_TIMESTAMP | CPE Formula - Evaluation Date and Time | 20110606 | |||
| 2 | IV_TIMESTAMP | Call by reference | Type reference (TYPE) | CPET_EVAL_TIMESTAMP | CPE Formula - Evaluation Date and Time | 20110606 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Exception CPE Calendar Helper | 20110606 |
Method GET_LAST_DAY_OF_WISHED_MONTH Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_LAST_DAY_OF_MONTH | Call by reference | Type reference (TYPE) | CPET_EVAL_TIMESTAMP | CPE Formula - Evaluation Date and Time | 20110606 | |||
| 2 | IV_OFFSET | Call by reference | Type reference (TYPE) | I | Whole Number with +/- Sign (-2.147.483.648 .. 2.147.483.647) | 20110606 | |||
| 3 | IV_TIMESTAMP | Call by reference | Type reference (TYPE) | CPET_EVAL_TIMESTAMP | CPE Formula - Evaluation Date and Time | 20110606 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Exception CPE Calendar Helper | 20110606 |
Method GET_LAST_DAY_OF_WISHED_WEEK Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_LAST_DAY_OF_WEEK | Call by reference | Type reference (TYPE) | CPET_EVAL_TIMESTAMP | CPE Formula - Evaluation Date and Time | 20110606 | |||
| 2 | IV_OFFSET | Call by reference | Type reference (TYPE) | I | Whole Number with +/- Sign (-2.147.483.648 .. 2.147.483.647) | 20110606 | |||
| 3 | IV_START_DAY | Call by reference | Type reference (TYPE) | SC_DAY_TXT | 'MONDAY' | Weekdays (text) | 20110606 | ||
| 4 | IV_TIMESTAMP | Call by reference | Type reference (TYPE) | CPET_EVAL_TIMESTAMP | CPE Formula - Evaluation Date and Time | 20110606 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Exception CPE Calendar Helper | 20110606 |
Method SHIFT_DATE_IN_DAYS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_END_TIMESTAMP | Call by reference | Type reference (TYPE) | CPET_EVAL_TIMESTAMP | CPE Formula - Evaluation Date and Time | 20110606 | |||
| 2 | EV_START_TIMESTAMP | Call by reference | Type reference (TYPE) | CPET_EVAL_TIMESTAMP | CPE Formula - Evaluation Date and Time | 20110606 | |||
| 3 | IV_OFFSET_AFTER | Call by reference | Type reference (TYPE) | I | Whole Number with +/- Sign (-2.147.483.648 .. 2.147.483.647) | 20110606 | |||
| 4 | IV_OFFSET_BEFORE | Call by reference | Type reference (TYPE) | I | Whole Number with +/- Sign (-2.147.483.648 .. 2.147.483.647) | 20110606 | |||
| 5 | IV_TIMESTAMP | Call by reference | Type reference (TYPE) | CPET_EVAL_TIMESTAMP | CPE Formula - Evaluation Date and Time | 20110606 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Exception CPE Calendar Helper | 20110606 |
Method SHIFT_DATE_IN_MONTHS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_END_TIMESTAMP | Call by reference | Type reference (TYPE) | CPET_EVAL_TIMESTAMP | CPE Formula - Evaluation Date and Time | 20110606 | |||
| 2 | EV_START_TIMESTAMP | Call by reference | Type reference (TYPE) | CPET_EVAL_TIMESTAMP | CPE Formula - Evaluation Date and Time | 20110606 | |||
| 3 | IV_OFFSET_AFTER | Call by reference | Type reference (TYPE) | I | Whole Number with +/- Sign (-2.147.483.648 .. 2.147.483.647) | 20110606 | |||
| 4 | IV_OFFSET_BEFORE | Call by reference | Type reference (TYPE) | I | Whole Number with +/- Sign (-2.147.483.648 .. 2.147.483.647) | 20110606 | |||
| 5 | IV_TIMESTAMP | Call by reference | Type reference (TYPE) | CPET_EVAL_TIMESTAMP | CPE Formula - Evaluation Date and Time | 20110606 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Exception CPE Calendar Helper | 20110606 |
Method SHIFT_DATE_IN_WEEKS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_END_TIMESTAMP | Call by reference | Type reference (TYPE) | CPET_EVAL_TIMESTAMP | CPE Formula - Evaluation Date and Time | 20110606 | |||
| 2 | EV_START_TIMESTAMP | Call by reference | Type reference (TYPE) | CPET_EVAL_TIMESTAMP | CPE Formula - Evaluation Date and Time | 20110606 | |||
| 3 | IV_OFFSET_AFTER | Call by reference | Type reference (TYPE) | I | Whole Number with +/- Sign (-2.147.483.648 .. 2.147.483.647) | 20110606 | |||
| 4 | IV_OFFSET_BEFORE | Call by reference | Type reference (TYPE) | I | Whole Number with +/- Sign (-2.147.483.648 .. 2.147.483.647) | 20110606 | |||
| 5 | IV_TIMESTAMP | Call by reference | Type reference (TYPE) | CPET_EVAL_TIMESTAMP | CPE Formula - Evaluation Date and Time | 20110606 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Exception CPE Calendar Helper | 20110606 |
Method SHIFT_DATE_IN_WORKDAYS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_END_TIMESTAMP | Call by reference | Type reference (TYPE) | CPET_EVAL_TIMESTAMP | CPE Formula - Evaluation Date and Time | 20110606 | |||
| 2 | EV_START_TIMESTAMP | Call by reference | Type reference (TYPE) | CPET_EVAL_TIMESTAMP | CPE Formula - Evaluation Date and Time | 20110606 | |||
| 3 | IV_CALENDAR_ID | Call by reference | Type reference (TYPE) | CPET_PERDETCALID | CPE Term - Calendar Used for Period Determination | 20110606 | |||
| 4 | IV_OFFSET_AFTER | Call by reference | Type reference (TYPE) | I | Whole Number with +/- Sign (-2.147.483.648 .. 2.147.483.647) | 20110606 | |||
| 5 | IV_OFFSET_BEFORE | Call by reference | Type reference (TYPE) | I | Whole Number with +/- Sign (-2.147.483.648 .. 2.147.483.647) | 20110606 | |||
| 6 | IV_TIMESTAMP | Call by reference | Type reference (TYPE) | CPET_EVAL_TIMESTAMP | CPE Formula - Evaluation Date and Time | 20110606 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Exception CPE Calendar Helper | 20110606 |
Method SHIFT_DAYS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_END_TIMESTAMP | Call by reference | Type reference (TYPE) | CPET_EVAL_TIMESTAMP | CPE Formula - Evaluation Date and Time | 20110606 | |||
| 2 | EV_START_TIMESTAMP | Call by reference | Type reference (TYPE) | CPET_EVAL_TIMESTAMP | CPE Formula - Evaluation Date and Time | 20110606 | |||
| 3 | IV_CALENDAR_ID | Call by reference | Type reference (TYPE) | CPET_PERDETCALID | CPE Term - Calendar Used for Period Determination | 20110606 | |||
| 4 | IV_OFFSET_AFTER | Call by reference | Type reference (TYPE) | I | Whole Number with +/- Sign (-2.147.483.648 .. 2.147.483.647) | 20110606 | |||
| 5 | IV_OFFSET_BEFORE | Call by reference | Type reference (TYPE) | I | Whole Number with +/- Sign (-2.147.483.648 .. 2.147.483.647) | 20110606 | |||
| 6 | IV_TIMESTAMP | Call by reference | Type reference (TYPE) | CPET_EVAL_TIMESTAMP | CPE Formula - Evaluation Date and Time | 20110606 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Exception CPE Calendar Helper | 20110606 |
History
| Last changed by/on | SAP | 20130531 |
| SAP Release Created in |