Hierarchy
⤷
⤷
Properties
| Class | CL_BS_PERIOD_TOOLSET_BASICS | |
| Short Description | Period Toolset - Basic Functions | |
| Super Class | ||
| Instantiability of a Class | 2 | Public |
| Final |
General Data
| Message Class | ||
| Program status | ||
| Category | 0 | |
| Package | BS_PERIOD_API | API for period toolset |
| Created | 20091019 | SAP |
| Last change | 20110908 | SAP |
| Shared Memory-enabled | ||
| Fixed point arithmetic | ||
| Unicode checks active |
Forward declarations
Class CL_BS_PERIOD_TOOLSET_BASICS has no forward declaration.
Interfaces
Class CL_BS_PERIOD_TOOLSET_BASICS has no interface implemented.
Friends
Class CL_BS_PERIOD_TOOLSET_BASICS has no friend class.
Attributes
| # | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Constant | Public | Type reference (TYPE) | BSPERIOD_DATE | '00000201' | First Feb in Year 10000 | 20091019 | ||
| 2 | Constant | Public | Type reference (TYPE) | BSPERIOD_DATE | '00000101' | First Jan in Year 10000 | 20091019 | ||
| 3 | Constant | Public | Type reference (TYPE) | BSPERIOD_DATE | '00010131' | Last Jan in Year 10000 | 20091019 | ||
| 4 | Constant | Public | Type reference (TYPE) | BSPERIOD_DATE | '99991231' | Maximum Date | 20091019 | ||
| 5 | Constant | Public | Type reference (TYPE) | BSPERIOD_DATE | '19000101' | Minimum Date | 20091019 |
Methods
| # | Method | Level | Visibility | Method type | Description | Created on |
|---|---|---|---|---|---|---|
| 1 | Static method | Public | Method | Add Number of Days to Date | 20091019 | |
| 2 | Static method | Public | Method | Add Number of Hours to Date/Time Combination | 20091019 | |
| 3 | Static method | Public | Method | Add Number of Minutes to Date/Time Combination | 20091019 | |
| 4 | Static method | Public | Method | Add Number of Months to Date | 20091019 | |
| 5 | Static method | Public | Method | Add Number of Seconds to Date/Time Combination | 20091019 | |
| 6 | Static method | Public | Method | Add Number of Weeks to Date | 20091019 | |
| 7 | Static method | Public | Method | Check Validity of a Period | 20091019 | |
| 8 | Static method | Public | Method | Convert a Date from Internal to External Format | 20091019 | |
| 9 | Static method | Public | Method | Convert a Date from External to Internal Format | 20091019 | |
| 10 | Static method | Public | Method | Determine Calendar Week (cw) | 20091019 | |
| 11 | Static method | Public | Method | Determine Factory Calendar Date (Using SCAL API) | 20091019 | |
| 12 | Static method | Public | Method | Determine the first Day in a Month | 20091019 | |
| 13 | Static method | Public | Method | Determine the first Day in a Week | 20091019 | |
| 14 | Static method | Public | Method | Get the first Day in previous Month | 20091019 | |
| 15 | Static method | Public | Method | Get the Last Day in a Month | 20091019 | |
| 16 | Static method | Public | Method | Get the Last Day in previous Month | 20091019 | |
| 17 | Static method | Public | Method | Determine last date maintained in Factory Calendar | 20091019 | |
| 18 | Static method | Public | Method | Determine Number of Weekday (to be replaced by BAdI Method!) | 20091019 | |
| 19 | Static method | Public | Method | Subtract Number of Days from Date | 20091019 | |
| 20 | Static method | Public | Method | Subtract Number of Hours from Date/Time Combination | 20091019 | |
| 21 | Static method | Public | Method | Subtract Number of Minutes from Date/Time Combination | 20091019 | |
| 22 | Static method | Public | Method | Subtract Number of Months from Date | 20091019 | |
| 23 | Static method | Public | Method | Subtract Number of Seconds from Date/Time Combination | 20091019 | |
| 24 | Static method | Public | Method | Subtract Number of Weeks from Date | 20091019 |
Events
Class CL_BS_PERIOD_TOOLSET_BASICS has no event.
Types
Class CL_BS_PERIOD_TOOLSET_BASICS has no local type.
Method Signatures
Method ADD_DAYS_TO_DATE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_DATE | Call by reference | Type reference (TYPE) | DATUM | Key Date | 20091019 | |||
| 2 | IV_DAYS | Call by reference | Type reference (TYPE) | I | Number of Days | 20091019 | |||
| 3 | RV_DATE | Value transfer | Type reference (TYPE) | DATUM | Calculated Date | 20091019 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Period Toolset Exceptions - Basic Functions | 20091019 |
Method ADD_HOURS_TO_DATE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_DATE | Call by reference | Type reference (TYPE) | BSPERIOD_DATE | Calculated Date | 20091019 | |||
| 2 | EV_TIME | Call by reference | Type reference (TYPE) | BSPERIOD_TIME | Calculated Time | 20091019 | |||
| 3 | IV_DATE | Call by reference | Type reference (TYPE) | BSPERIOD_DATE | Key Date | 20091019 | |||
| 4 | IV_HOURS | Call by reference | Type reference (TYPE) | INT4 | Number of Hours | 20091019 | |||
| 5 | IV_TIME | Call by reference | Type reference (TYPE) | BSPERIOD_TIME | Key Time | 20091019 | |||
| 6 | IV_TIMEZONE | Call by reference | Type reference (TYPE) | SYSTZONLO | SY-ZONLO | Timezone | 20091019 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Period Toolset - Exceptions for Basic Functions | 20091019 |
Method ADD_MINUTES_TO_DATE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_DATE | Call by reference | Type reference (TYPE) | BSPERIOD_DATE | Calculated Date | 20091019 | |||
| 2 | EV_TIME | Call by reference | Type reference (TYPE) | BSPERIOD_TIME | Calculated Time | 20091019 | |||
| 3 | IV_DATE | Call by reference | Type reference (TYPE) | BSPERIOD_DATE | Key Date | 20091019 | |||
| 4 | IV_MINUTES | Call by reference | Type reference (TYPE) | INT4 | Number of Minutes | 20091019 | |||
| 5 | IV_TIME | Call by reference | Type reference (TYPE) | BSPERIOD_TIME | Key Time | 20091019 | |||
| 6 | IV_TIMEZONE | Call by reference | Type reference (TYPE) | SYSTZONLO | SY-ZONLO | Timezone | 20091019 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Period Toolset - Exceptions for Basic Functions | 20091019 |
Method ADD_MONTHS_TO_DATE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_DATE | Call by reference | Type reference (TYPE) | DATUM | Key Date | 20091019 | |||
| 2 | IV_MONTHS | Call by reference | Type reference (TYPE) | I | Number of Months | 20091019 | |||
| 3 | RV_DATE | Value transfer | Type reference (TYPE) | DATUM | Calculated Date | 20091019 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | 20091019 |
Method ADD_SECONDS_TO_DATE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_DATE | Call by reference | Type reference (TYPE) | BSPERIOD_DATE | Calculated Date | 20091019 | |||
| 2 | EV_TIME | Call by reference | Type reference (TYPE) | BSPERIOD_TIME | Calculated Time | 20091019 | |||
| 3 | IV_DATE | Call by reference | Type reference (TYPE) | BSPERIOD_DATE | Key Date | 20091019 | |||
| 4 | IV_SECONDS | Call by reference | Type reference (TYPE) | INT4 | Number of Seconds | 20091019 | |||
| 5 | IV_TIME | Call by reference | Type reference (TYPE) | BSPERIOD_TIME | Key Time | 20091019 | |||
| 6 | IV_TIMEZONE | Call by reference | Type reference (TYPE) | SYSTZONLO | SY-ZONLO | Timezone | 20091019 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Period Toolset - Exceptions for Basic Functions | 20091019 |
Method ADD_WEEKS_TO_DATE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_DATE | Call by reference | Type reference (TYPE) | DATUM | Key Date | 20091019 | |||
| 2 | IV_WEEKS | Call by reference | Type reference (TYPE) | I | Number of Weeks | 20091019 | |||
| 3 | RV_DATE | Value transfer | Type reference (TYPE) | DATUM | Calculated Date | 20091019 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | 20091019 |
Method CHECK_PERIOD_VALIDITY Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IS_PERIOD | Call by reference | Type reference (TYPE) | BSPERIOD_S_PERIOD | BS Period Toolset - Period Structure | 20091019 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | 20091019 |
Method CONV_DATE_TO_EXTERNAL Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_DATE | Call by reference | Type reference (TYPE) | BSPERIOD_DATE | Date (Internal Format) | 20091019 | |||
| 2 | RV_DATE | Value transfer | Type reference (TYPE) | BSPERIOD_DATE_EXTERNAL | Date (External Format) | 20091019 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Period Toolset - Exceptions for Basic Functions | 20091020 |
Method CONV_DATE_TO_INTERNAL Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_DATE | Call by reference | Type reference (TYPE) | BSPERIOD_DATE_EXTERNAL | Date (External Format) | 20091019 | |||
| 2 | RV_DATE | Value transfer | Type reference (TYPE) | BSPERIOD_DATE | Date (Internal Format) | 20091019 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | 20091019 |
Method GET_CALENDAR_WEEK Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_DATE | Call by reference | Type reference (TYPE) | BSPERIOD_DATE | Key Date | 20091019 | |||
| 2 | RV_WEEK | Value transfer | Type reference (TYPE) | BSPERIOD_WEEK | Calendar Week | 20091019 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | 20091019 |
Method GET_FACTORY_DATE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_DATE | Call by reference | Type reference (TYPE) | BSPERIOD_DATE | Factory Calendar Date | 20091019 | |||
| 2 | EV_WD_IND | Call by reference | Type reference (TYPE) | SCAL-INDICATOR | Fatory calendar flag | 20091019 | |||
| 3 | IV_DATE | Call by reference | Type reference (TYPE) | BSPERIOD_DATE | SY-DATUM | Key Date | 20091019 | ||
| 4 | IV_FCAL_ID | Call by reference | Type reference (TYPE) | SCAL-FCALID | '01' | Factory Calendar ID | 20091019 | ||
| 5 | IV_FCAL_IND | Call by reference | Type reference (TYPE) | SCAL-INDICATOR | '+' | Fatory calendar flag (+ / -) | 20091019 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | 20091019 |
Method GET_FIRST_DAY_IN_MONTH Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_DATE | Call by reference | Type reference (TYPE) | BSPERIOD_DATE | Key Date | 20091019 | |||
| 2 | RV_DATE | Value transfer | Type reference (TYPE) | BSPERIOD_DATE | First Day in Month | 20091019 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | 20091019 |
Method GET_FIRST_DAY_IN_WEEK Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_DATE | Call by reference | Type reference (TYPE) | BSPERIOD_BEGDA | Key Date | 20091019 | |||
| 2 | RV_DATE | Value transfer | Type reference (TYPE) | BSPERIOD_ENDDA | First Day in Week | 20091019 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | 20091019 |
Method GET_FIRST_DAY_PREV_MONTH Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_DATE | Call by reference | Type reference (TYPE) | BSPERIOD_DATE | Key Date | 20091019 | |||
| 2 | RV_DATE | Value transfer | Type reference (TYPE) | BSPERIOD_DATE | First Day in pervious Month | 20091019 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Period Toolset - Exceptions for Basic Functions | 20091019 |
Method GET_LAST_DAY_IN_MONTH Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_DATE | Call by reference | Type reference (TYPE) | BSPERIOD_DATE | Key Date | 20091019 | |||
| 2 | RV_DATE | Value transfer | Type reference (TYPE) | BSPERIOD_DATE | Last Day in Month | 20091019 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Period Toolset - Exceptions for Basic Functions | 20091019 |
Method GET_LAST_DAY_PREV_MONTH Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_DATE | Call by reference | Type reference (TYPE) | BSPERIOD_DATE | Key Date | 20091019 | |||
| 2 | RV_DATE | Value transfer | Type reference (TYPE) | BSPERIOD_DATE | Result Date | 20091019 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Period Toolset - Exceptions for Basic Functions | 20091020 |
Method GET_LAST_FACTORY_DATE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_FCAL_ID | Call by reference | Type reference (TYPE) | SCAL-FCALID | Factory Calendar ID | 20091019 | |||
| 2 | RV_DATE | Value transfer | Type reference (TYPE) | BSPERIOD_DATE | Last Factory Calendar Date | 20091019 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Period Toolset - Exceptions for Basic Functions | 20091019 |
Method GET_WEEKDAY_NUMBER Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_DATE | Call by reference | Type reference (TYPE) | BSPERIOD_DATE | Key Date | 20091019 | |||
| 2 | RV_WEEKDAY | Value transfer | Type reference (TYPE) | I | Weekday Number | 20091019 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | 20091019 |
Method SUBTRACT_DAYS_FROM_DATE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_DATE | Call by reference | Type reference (TYPE) | BSPERIOD_DATE | Key Date | 20091019 | |||
| 2 | IV_DAYS | Call by reference | Type reference (TYPE) | I | Number of Days | 20091019 | |||
| 3 | RV_DATE | Value transfer | Type reference (TYPE) | BSPERIOD_DATE | Calculated Date | 20091019 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Period Toolset - Exceptions for Basic Functions | 20091019 |
Method SUBTRACT_HOURS_FROM_DATE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_DATE | Call by reference | Type reference (TYPE) | BSPERIOD_DATE | Calculated Date | 20091019 | |||
| 2 | EV_TIME | Call by reference | Type reference (TYPE) | BSPERIOD_TIME | Calculated Time | 20091019 | |||
| 3 | IV_DATE | Call by reference | Type reference (TYPE) | BSPERIOD_DATE | Key Date | 20091019 | |||
| 4 | IV_HOURS | Call by reference | Type reference (TYPE) | INT4 | Number of Hours | 20091019 | |||
| 5 | IV_TIME | Call by reference | Type reference (TYPE) | BSPERIOD_TIME | Key Time | 20091019 | |||
| 6 | IV_TIMEZONE | Call by reference | Type reference (TYPE) | SYSTZONLO | SY-ZONLO | Timezone | 20091019 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Period Toolset - Exceptions for Basic Functions | 20091019 |
Method SUBTRACT_MINUTES_FROM_DATE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_DATE | Call by reference | Type reference (TYPE) | BSPERIOD_DATE | Calculated Date | 20091019 | |||
| 2 | EV_TIME | Call by reference | Type reference (TYPE) | BSPERIOD_TIME | Calculated Time | 20091019 | |||
| 3 | IV_DATE | Call by reference | Type reference (TYPE) | BSPERIOD_DATE | Key Date | 20091019 | |||
| 4 | IV_MINUTES | Call by reference | Type reference (TYPE) | INT4 | Number of Minutes | 20091019 | |||
| 5 | IV_TIME | Call by reference | Type reference (TYPE) | BSPERIOD_TIME | Key Time | 20091019 | |||
| 6 | IV_TIMEZONE | Call by reference | Type reference (TYPE) | SYSTZONLO | SY-ZONLO | Timezone | 20091019 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Period Toolset - Exceptions for Basic Functions | 20091019 |
Method SUBTRACT_MONTHS_FROM_DATE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_DATE | Call by reference | Type reference (TYPE) | BSPERIOD_DATE | Key Date | 20091019 | |||
| 2 | IV_MONTHS | Call by reference | Type reference (TYPE) | I | Number of Months | 20091019 | |||
| 3 | RV_DATE | Value transfer | Type reference (TYPE) | BSPERIOD_DATE | Calculated Date | 20091019 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Period Toolset - Exceptions for Basic Functions | 20091019 |
Method SUBTRACT_SECONDS_FROM_DATE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_DATE | Call by reference | Type reference (TYPE) | BSPERIOD_DATE | Calculated Date | 20091019 | |||
| 2 | EV_TIME | Call by reference | Type reference (TYPE) | BSPERIOD_TIME | Calculated Time | 20091019 | |||
| 3 | IV_DATE | Call by reference | Type reference (TYPE) | BSPERIOD_DATE | Key Date | 20091019 | |||
| 4 | IV_SECONDS | Call by reference | Type reference (TYPE) | INT4 | Number of Seconds | 20091019 | |||
| 5 | IV_TIME | Call by reference | Type reference (TYPE) | BSPERIOD_TIME | Key Time | 20091019 | |||
| 6 | IV_TIMEZONE | Call by reference | Type reference (TYPE) | SYSTZONLO | SY-ZONLO | Timezone | 20091019 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Period Toolset - Exceptions for Basic Functions | 20091020 |
Method SUBTRACT_WEEKS_FROM_DATE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_DATE | Call by reference | Type reference (TYPE) | BSPERIOD_DATE | Key Date | 20091019 | |||
| 2 | IV_WEEKS | Call by reference | Type reference (TYPE) | I | Number of Weeks | 20091019 | |||
| 3 | RV_DATE | Value transfer | Type reference (TYPE) | BSPERIOD_DATE | Calculated Date | 20091019 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Period Toolset - Exceptions for Basic Functions | 20091019 |
History
| Last changed by/on | SAP | 20110908 |
| SAP Release Created in | 702 |