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)
⤷ 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 | CL_CPE_FE_HELPER | 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 | GS_UNIT_DAY | Static Attribute | Private | Type reference (TYPE) | MSEHI | Unit of Measurement | 20110606 | ||
2 | GS_UNIT_MONTH | Static Attribute | Private | Type reference (TYPE) | MSEHI | Unit of Measurement | 20110606 | ||
3 | GS_UNIT_WEEK | Static Attribute | Private | Type reference (TYPE) | MSEHI | Unit of Measurement | 20110606 |
Methods
# | Method | Level | Visibility | Method type | Description | Created on |
---|---|---|---|---|---|---|
1 | GET_1ST_DAY_OF_10_DAYS | Static method | Public | Method | Determine the 1st day of 10 days period | 20110606 |
2 | GET_1ST_DAY_OF_HALF_MONTH | Static method | Public | Method | Determine the 1st day of half month | 20110606 |
3 | GET_1ST_DAY_OF_WISHED_MONTH | Static method | Public | Method | Determine the 1st day of the wished month | 20110606 |
4 | GET_1ST_DAY_OF_WISHED_WEEK | Static method | Public | Method | Determine the 1st day of wished week | 20110606 |
5 | GET_DATE_PROPERTIES | Static method | Public | Method | Date props: if workday, day of week, prev and next workday | 20110606 |
6 | GET_LAST_DAY_OF_10_DAYS | Static method | Public | Method | Determine the last day of 10 days period | 20110606 |
7 | GET_LAST_DAY_OF_HALF_MONTH | Static method | Public | Method | Determine the last day of half month | 20110606 |
8 | GET_LAST_DAY_OF_WISHED_MONTH | Static method | Public | Method | Determine the last day of the wished month | 20110606 |
9 | GET_LAST_DAY_OF_WISHED_WEEK | Static method | Public | Method | Determine the last day of wished week | 20110606 |
10 | SHIFT_DATE_IN_DAYS | Static method | Public | Method | Shift a certain date in days, back and forward | 20110606 |
11 | SHIFT_DATE_IN_MONTHS | Static method | Public | Method | Shift a certain date in months, back and forward | 20110606 |
12 | SHIFT_DATE_IN_WEEKS | Static method | Public | Method | Shift a certain date in weeks, back and forward | 20110606 |
13 | SHIFT_DATE_IN_WORKDAYS | Static method | Public | Method | Shift a certain date in workdays, back and forward | 20110606 |
14 | SHIFT_DAYS | 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 | Exporting | EV_FIRSTDAY_OF_TEN_DAYS | Call by reference | Type reference (TYPE) | CPET_EVAL_TIMESTAMP | CPE Formula - Evaluation Date and Time | 20110606 | ||
2 | Importing | IV_TIMESTAMP | Call by reference | Type reference (TYPE) | CPET_EVAL_TIMESTAMP | CPE Formula - Evaluation Date and Time | 20110606 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | CX_CPE_CALENDAR_HELPER | 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 | Exporting | EV_FIRSTDAY_OF_HALF_MONTH | Call by reference | Type reference (TYPE) | CPET_EVAL_TIMESTAMP | CPE Formula - Evaluation Date and Time | 20110606 | ||
2 | Importing | IV_TIMESTAMP | Call by reference | Type reference (TYPE) | CPET_EVAL_TIMESTAMP | CPE Formula - Evaluation Date and Time | 20110606 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | CX_CPE_CALENDAR_HELPER | 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 | Exporting | EV_FIRST_DAY_OF_MONTH | Call by reference | Type reference (TYPE) | CPET_EVAL_TIMESTAMP | CPE Formula - Evaluation Date and Time | 20110606 | ||
2 | Importing | IV_OFFSET | Call by reference | Type reference (TYPE) | I | Whole Number with +/- Sign (-2.147.483.648 .. 2.147.483.647) | 20110606 | ||
3 | Importing | IV_TIMESTAMP | Call by reference | Type reference (TYPE) | CPET_EVAL_TIMESTAMP | CPE Formula - Evaluation Date and Time | 20110606 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | CX_CPE_CALENDAR_HELPER | 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 | Exporting | EV_FIRST_DAY_OF_WEEK | Call by reference | Type reference (TYPE) | CPET_EVAL_TIMESTAMP | CPE Formula - Evaluation Date and Time | 20110606 | ||
2 | Importing | IV_OFFSET | Call by reference | Type reference (TYPE) | I | Whole Number with +/- Sign (-2.147.483.648 .. 2.147.483.647) | 20110606 | ||
3 | Importing | IV_START_DAY | Call by reference | Type reference (TYPE) | SC_DAY_TXT | 'MONDAY' | Weekdays (text) | 20110606 | |
4 | Importing | IV_TIMESTAMP | Call by reference | Type reference (TYPE) | CPET_EVAL_TIMESTAMP | CPE Formula - Evaluation Date and Time | 20110606 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | CX_CPE_CALENDAR_HELPER | 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 | Exporting | EV_DAY_OF_WEEK | Call by reference | Type reference (TYPE) | SC_DAY_TXT | Weekdays (text) | 20110606 | ||
2 | Exporting | EV_NEXT_WORKDAY | Call by reference | Type reference (TYPE) | CPET_EVAL_TIMESTAMP | CPE Formula - Evaluation Date and Time | 20110606 | ||
3 | Exporting | EV_NON_WORKDAY | Call by reference | Type reference (TYPE) | XFELD | Checkbox | 20110606 | ||
4 | Exporting | EV_PREVIOUS_WORKDAY | Call by reference | Type reference (TYPE) | CPET_EVAL_TIMESTAMP | CPE Formula - Evaluation Date and Time | 20110606 | ||
5 | Importing | IV_CALENDAR_ID | Call by reference | Type reference (TYPE) | CPET_PERDETCALID | CPE Term - Calendar Used for Period Determination | 20110606 | ||
6 | Importing | IV_TIMESTAMP | Call by reference | Type reference (TYPE) | CPET_EVAL_TIMESTAMP | CPE Formula - Evaluation Date and Time | 20110606 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | CX_CPE_CALENDAR_HELPER | 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 | Exporting | EV_LASTDAY_OF_TEN_DAYS | Call by reference | Type reference (TYPE) | CPET_EVAL_TIMESTAMP | CPE Formula - Evaluation Date and Time | 20110606 | ||
2 | Importing | IV_TIMESTAMP | Call by reference | Type reference (TYPE) | CPET_EVAL_TIMESTAMP | CPE Formula - Evaluation Date and Time | 20110606 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | CX_CPE_CALENDAR_HELPER | 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 | Exporting | EV_LASTDAY_OF_HALF_MONTH | Call by reference | Type reference (TYPE) | CPET_EVAL_TIMESTAMP | CPE Formula - Evaluation Date and Time | 20110606 | ||
2 | Importing | IV_TIMESTAMP | Call by reference | Type reference (TYPE) | CPET_EVAL_TIMESTAMP | CPE Formula - Evaluation Date and Time | 20110606 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | CX_CPE_CALENDAR_HELPER | 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 | Exporting | EV_LAST_DAY_OF_MONTH | Call by reference | Type reference (TYPE) | CPET_EVAL_TIMESTAMP | CPE Formula - Evaluation Date and Time | 20110606 | ||
2 | Importing | IV_OFFSET | Call by reference | Type reference (TYPE) | I | Whole Number with +/- Sign (-2.147.483.648 .. 2.147.483.647) | 20110606 | ||
3 | Importing | IV_TIMESTAMP | Call by reference | Type reference (TYPE) | CPET_EVAL_TIMESTAMP | CPE Formula - Evaluation Date and Time | 20110606 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | CX_CPE_CALENDAR_HELPER | 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 | Exporting | EV_LAST_DAY_OF_WEEK | Call by reference | Type reference (TYPE) | CPET_EVAL_TIMESTAMP | CPE Formula - Evaluation Date and Time | 20110606 | ||
2 | Importing | IV_OFFSET | Call by reference | Type reference (TYPE) | I | Whole Number with +/- Sign (-2.147.483.648 .. 2.147.483.647) | 20110606 | ||
3 | Importing | IV_START_DAY | Call by reference | Type reference (TYPE) | SC_DAY_TXT | 'MONDAY' | Weekdays (text) | 20110606 | |
4 | Importing | IV_TIMESTAMP | Call by reference | Type reference (TYPE) | CPET_EVAL_TIMESTAMP | CPE Formula - Evaluation Date and Time | 20110606 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | CX_CPE_CALENDAR_HELPER | 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 | Exporting | EV_END_TIMESTAMP | Call by reference | Type reference (TYPE) | CPET_EVAL_TIMESTAMP | CPE Formula - Evaluation Date and Time | 20110606 | ||
2 | Exporting | EV_START_TIMESTAMP | Call by reference | Type reference (TYPE) | CPET_EVAL_TIMESTAMP | CPE Formula - Evaluation Date and Time | 20110606 | ||
3 | Importing | IV_OFFSET_AFTER | Call by reference | Type reference (TYPE) | I | Whole Number with +/- Sign (-2.147.483.648 .. 2.147.483.647) | 20110606 | ||
4 | Importing | IV_OFFSET_BEFORE | Call by reference | Type reference (TYPE) | I | Whole Number with +/- Sign (-2.147.483.648 .. 2.147.483.647) | 20110606 | ||
5 | Importing | IV_TIMESTAMP | Call by reference | Type reference (TYPE) | CPET_EVAL_TIMESTAMP | CPE Formula - Evaluation Date and Time | 20110606 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | CX_CPE_CALENDAR_HELPER | 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 | Exporting | EV_END_TIMESTAMP | Call by reference | Type reference (TYPE) | CPET_EVAL_TIMESTAMP | CPE Formula - Evaluation Date and Time | 20110606 | ||
2 | Exporting | EV_START_TIMESTAMP | Call by reference | Type reference (TYPE) | CPET_EVAL_TIMESTAMP | CPE Formula - Evaluation Date and Time | 20110606 | ||
3 | Importing | IV_OFFSET_AFTER | Call by reference | Type reference (TYPE) | I | Whole Number with +/- Sign (-2.147.483.648 .. 2.147.483.647) | 20110606 | ||
4 | Importing | IV_OFFSET_BEFORE | Call by reference | Type reference (TYPE) | I | Whole Number with +/- Sign (-2.147.483.648 .. 2.147.483.647) | 20110606 | ||
5 | Importing | IV_TIMESTAMP | Call by reference | Type reference (TYPE) | CPET_EVAL_TIMESTAMP | CPE Formula - Evaluation Date and Time | 20110606 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | CX_CPE_CALENDAR_HELPER | 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 | Exporting | EV_END_TIMESTAMP | Call by reference | Type reference (TYPE) | CPET_EVAL_TIMESTAMP | CPE Formula - Evaluation Date and Time | 20110606 | ||
2 | Exporting | EV_START_TIMESTAMP | Call by reference | Type reference (TYPE) | CPET_EVAL_TIMESTAMP | CPE Formula - Evaluation Date and Time | 20110606 | ||
3 | Importing | IV_OFFSET_AFTER | Call by reference | Type reference (TYPE) | I | Whole Number with +/- Sign (-2.147.483.648 .. 2.147.483.647) | 20110606 | ||
4 | Importing | IV_OFFSET_BEFORE | Call by reference | Type reference (TYPE) | I | Whole Number with +/- Sign (-2.147.483.648 .. 2.147.483.647) | 20110606 | ||
5 | Importing | IV_TIMESTAMP | Call by reference | Type reference (TYPE) | CPET_EVAL_TIMESTAMP | CPE Formula - Evaluation Date and Time | 20110606 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | CX_CPE_CALENDAR_HELPER | 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 | Exporting | EV_END_TIMESTAMP | Call by reference | Type reference (TYPE) | CPET_EVAL_TIMESTAMP | CPE Formula - Evaluation Date and Time | 20110606 | ||
2 | Exporting | EV_START_TIMESTAMP | Call by reference | Type reference (TYPE) | CPET_EVAL_TIMESTAMP | CPE Formula - Evaluation Date and Time | 20110606 | ||
3 | Importing | IV_CALENDAR_ID | Call by reference | Type reference (TYPE) | CPET_PERDETCALID | CPE Term - Calendar Used for Period Determination | 20110606 | ||
4 | Importing | IV_OFFSET_AFTER | Call by reference | Type reference (TYPE) | I | Whole Number with +/- Sign (-2.147.483.648 .. 2.147.483.647) | 20110606 | ||
5 | Importing | IV_OFFSET_BEFORE | Call by reference | Type reference (TYPE) | I | Whole Number with +/- Sign (-2.147.483.648 .. 2.147.483.647) | 20110606 | ||
6 | Importing | IV_TIMESTAMP | Call by reference | Type reference (TYPE) | CPET_EVAL_TIMESTAMP | CPE Formula - Evaluation Date and Time | 20110606 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | CX_CPE_CALENDAR_HELPER | Exception CPE Calendar Helper | 20110606 |
Method SHIFT_DAYS Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | Exporting | EV_END_TIMESTAMP | Call by reference | Type reference (TYPE) | CPET_EVAL_TIMESTAMP | CPE Formula - Evaluation Date and Time | 20110606 | ||
2 | Exporting | EV_START_TIMESTAMP | Call by reference | Type reference (TYPE) | CPET_EVAL_TIMESTAMP | CPE Formula - Evaluation Date and Time | 20110606 | ||
3 | Importing | IV_CALENDAR_ID | Call by reference | Type reference (TYPE) | CPET_PERDETCALID | CPE Term - Calendar Used for Period Determination | 20110606 | ||
4 | Importing | IV_OFFSET_AFTER | Call by reference | Type reference (TYPE) | I | Whole Number with +/- Sign (-2.147.483.648 .. 2.147.483.647) | 20110606 | ||
5 | Importing | IV_OFFSET_BEFORE | Call by reference | Type reference (TYPE) | I | Whole Number with +/- Sign (-2.147.483.648 .. 2.147.483.647) | 20110606 | ||
6 | Importing | IV_TIMESTAMP | Call by reference | Type reference (TYPE) | CPET_EVAL_TIMESTAMP | CPE Formula - Evaluation Date and Time | 20110606 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | CX_CPE_CALENDAR_HELPER | Exception CPE Calendar Helper | 20110606 |
History
Last changed by/on | SAP | 20130531 |
SAP Release Created in |