Hierarchy
⤷
⤷
Properties
| Class | CL_SEQ_DURATION_HELPER | |
| Short Description | XSD Duration helper class | |
| Super Class | ||
| Instantiability of a Class | 2 | Public |
| Final |
General Data
| Message Class | ||
| Program status | ||
| Category | 0 | |
| Package | SOAP_SEQ_SCD | Sequence Scheduling |
| Created | 20080528 | SAP |
| Last change | 20090618 | SAP |
| Shared Memory-enabled | ||
| Fixed point arithmetic | ||
| Unicode checks active |
Forward declarations
| # | Type group / Object type | Type | Type Description |
|---|---|---|---|
| 1 | Type group use (TYPE-POOLS tp) | Type group use (TYPE-POOLS tp) |
Interfaces
Class CL_SEQ_DURATION_HELPER has no interface implemented.
Friends
Class CL_SEQ_DURATION_HELPER has no friend class.
Attributes
| # | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Constant | Public | Type reference (TYPE) | STRING | 'P0S' | 20080602 | |||
| 2 | Constant | Public | Type reference (TYPE) | STRING | 'PT0S' | 20080602 | |||
| 3 | Constant | Private | Type reference (TYPE) | CHAR1 | 'D' | 20080602 | |||
| 4 | Constant | Private | Type reference (TYPE) | CHAR1 | 'H' | 20080602 | |||
| 5 | Constant | Private | Type reference (TYPE) | CHAR1 | 'M' | 20080602 | |||
| 6 | Constant | Private | Type reference (TYPE) | CHAR1 | 'M' | 20080602 | |||
| 7 | Constant | Private | Type reference (TYPE) | CHAR1 | 'S' | 20080602 | |||
| 8 | Constant | Private | Type reference (TYPE) | CHAR1 | 'P' | 20080602 | |||
| 9 | Constant | Private | Type reference (TYPE) | CHAR1 | 'T' | 20080602 | |||
| 10 | Constant | Private | Type reference (TYPE) | CHAR1 | 'Y' | 20080602 | |||
| 11 | Instance attribute | Private | Type reference (TYPE) | SEQ_DURATION_STRUCTURE | 20080602 | ||||
| 12 | Instance attribute | Private | Type reference (TYPE) | SEQ_DURATION_STRUCTURE | 20080602 |
Methods
| # | Method | Level | Visibility | Method type | Description | Created on |
|---|---|---|---|---|---|---|
| 1 | Static method | Public | Method | invokes the get_result_date method | 20080602 | |
| 2 | Instance method | Private | Method | returns the date in timestamp | 20080602 | |
| 3 | Instance method | Private | Method | returns the calculated hours | 20080602 | |
| 4 | Instance method | Private | Method | calculates the reminder of hours and convert it in days | 20080602 | |
| 5 | Instance method | Private | Method | calculate temp hours | 20080602 | |
| 6 | Instance method | Private | Method | returns the calculated minutes | 20080602 | |
| 7 | Instance method | Private | Method | calculates the reminder of minutes and convert it in hours | 20080602 | |
| 8 | Instance method | Private | Method | calculate temp minutes | 20080602 | |
| 9 | Instance method | Private | Method | returns the calculated months | 20080602 | |
| 10 | Instance method | Private | Method | calculate the reminder of days and convert it in months | 20080602 | |
| 11 | Instance method | Private | Method | calculate temp months | 20080602 | |
| 12 | Instance method | Private | Method | returns the calculated seconds | 20080602 | |
| 13 | Instance method | Private | Method | calculates the reminder of seconds and convert it in minutes | 20080602 | |
| 14 | Instance method | Private | Method | calculate temp seconds | 20080602 | |
| 15 | Instance method | Private | Method | return the calculated years | 20080602 | |
| 16 | Instance method | Public | Constructor | CONSTRUCTOR | 20080602 | |
| 17 | Static method | Public | Method | factory method, converts duration structure into string | 20080603 | |
| 18 | Static method | Public | Method | invokes the find_period_number method and returns structure | 20080603 | |
| 19 | Instance method | Private | Method | searches for 'T' in string | 20080602 | |
| 20 | Instance method | Private | Method | convert I to string and trim it | 20080604 | |
| 21 | Instance method | Private | Method | convert seconds to string and trim it | 20080604 | |
| 22 | Static method | Private | Method | returns integer value of appropriate piece of date string | 20080602 | |
| 23 | Static method | Private | Method | returns period duration and time duration if 'T' found | 20080602 | |
| 24 | Static method | Private | Method | returns float value of appropriate piece of date string | 20080610 | |
| 25 | Static method | Public | Method | returns less duration and result date | 20080603 | |
| 26 | Instance method | Private | Method | used to delimit the months and minutes in string | 20080602 | |
| 27 | Instance method | Private | Method | like get_duration_string but for seconds | 20080604 | |
| 28 | Instance method | Public | Method | invokes the calculate_days_and_change method | 20080602 | |
| 29 | Instance method | Private | Method | calculatess the max days witch every month has | 20080602 | |
| 30 | Static method | Public | Method | subtract from first tstmp second and return duration | 20080721 |
Events
Class CL_SEQ_DURATION_HELPER has no event.
Types
| # | Type | Visibility | Typing | Associated Type | Description | Created on | Type Source |
|---|---|---|---|---|---|---|---|
| 1 | SEQ_DURATION_STRUCTURE | Public | See coding | 20080602 | BEGIN OF seq_duration_structure,
years TYPE i,
months TYPE i,
days TYPE i,
hours TYPE i,
minutes TYPE i,
seconds TYPE p LENGTH 11 DECIMALS 3,
END OF seq_duration_structure
|
Method Signatures
Method ADD_DURATION_TO_DATE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_DURATION | Call by reference | Type reference (TYPE) | SEQ_DURATION_STRUCTURE | 20080602 | ||||
| 2 | IV_START_DATE | Call by reference | Type reference (TYPE) | TZNTSTMPL | UTC time stamp in long form (YYYYMMDDhhmmss,mmmuuun) | 20080602 | |||
| 3 | IV_WSRM_VERSION | Call by reference | Type reference (TYPE) | CHAR1 | Single-Character Flag | 20080602 | |||
| 4 | RV_RESULT | Value transfer | Type reference (TYPE) | TZNTSTMPL | UTC time stamp in long form (YYYYMMDDhhmmss,mmmuuun) | 20080602 |
Method ADD_DURATION_TO_DATE on class CL_SEQ_DURATION_HELPER has no exception.
Method CALCULATE_DAYS_AND_CHANGE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | RESULT_TMSTP | Value transfer | Type reference (TYPE) | TZNTSTMPL | 20080602 |
Method CALCULATE_DAYS_AND_CHANGE on class CL_SEQ_DURATION_HELPER has no exception.
Method CALCULATE_HOURS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CALCULATED_HOURS | Value transfer | Type reference (TYPE) | I | 20080602 |
Method CALCULATE_HOURS on class CL_SEQ_DURATION_HELPER has no exception.
Method CALCULATE_HOURS_CARRY Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CARRY | Value transfer | Type reference (TYPE) | I | 20080602 |
Method CALCULATE_HOURS_CARRY on class CL_SEQ_DURATION_HELPER has no exception.
Method CALCULATE_HOURS_TEMP Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | TEMP | Value transfer | Type reference (TYPE) | I | 20080602 |
Method CALCULATE_HOURS_TEMP on class CL_SEQ_DURATION_HELPER has no exception.
Method CALCULATE_MINUTES Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CALCULATED_MINUTES | Value transfer | Type reference (TYPE) | I | 20080602 |
Method CALCULATE_MINUTES on class CL_SEQ_DURATION_HELPER has no exception.
Method CALCULATE_MINUTES_CARRY Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CARRY | Value transfer | Type reference (TYPE) | I | 20080602 |
Method CALCULATE_MINUTES_CARRY on class CL_SEQ_DURATION_HELPER has no exception.
Method CALCULATE_MINUTES_TEMP Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | TEMP | Value transfer | Type reference (TYPE) | I | 20080602 |
Method CALCULATE_MINUTES_TEMP on class CL_SEQ_DURATION_HELPER has no exception.
Method CALCULATE_MONTHS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CALCULATED_MONTHS | Value transfer | Type reference (TYPE) | I | 20080602 |
Method CALCULATE_MONTHS on class CL_SEQ_DURATION_HELPER has no exception.
Method CALCULATE_MONTHS_CARRY Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CARRY | Value transfer | Type reference (TYPE) | I | 20080602 |
Method CALCULATE_MONTHS_CARRY on class CL_SEQ_DURATION_HELPER has no exception.
Method CALCULATE_MONTHS_TEMP Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | TEMP | Value transfer | Type reference (TYPE) | I | 20080602 |
Method CALCULATE_MONTHS_TEMP on class CL_SEQ_DURATION_HELPER has no exception.
Method CALCULATE_SECONDS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CALCULATED_SECONDS | Value transfer | Type reference (TYPE) | TZNTSTMPL | UTC time stamp in long form (YYYYMMDDhhmmss,mmmuuun) | 20080602 |
Method CALCULATE_SECONDS on class CL_SEQ_DURATION_HELPER has no exception.
Method CALCULATE_SECONDS_CARRY Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CARRY | Value transfer | Type reference (TYPE) | I | 20080602 |
Method CALCULATE_SECONDS_CARRY on class CL_SEQ_DURATION_HELPER has no exception.
Method CALCULATE_SECONDS_TEMP Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | SECONDS_TEMP | Value transfer | Type reference (TYPE) | TZNTSTMPL | UTC time stamp in long form (YYYYMMDDhhmmss,mmmuuun) | 20080602 |
Method CALCULATE_SECONDS_TEMP on class CL_SEQ_DURATION_HELPER has no exception.
Method CALCULATE_YEARS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CALCULATED_YEARS | Value transfer | Type reference (TYPE) | I | 20080602 |
Method CALCULATE_YEARS on class CL_SEQ_DURATION_HELPER has no exception.
Method CONSTRUCTOR Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | DURATION | Call by reference | Type reference (TYPE) | SEQ_DURATION_STRUCTURE | 20080602 | ||||
| 2 | START_DATE | Value transfer | Type reference (TYPE) | TZNTSTMPL | 20080602 | ||||
| 3 | WSRM_VERSION | Call by reference | Type reference (TYPE) | C | 20080602 |
Method CONSTRUCTOR on class CL_SEQ_DURATION_HELPER has no exception.
Method CONVERT_DURATION_TO_STRING Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | I_DURATION | Call by reference | Type reference (TYPE) | SEQ_DURATION_STRUCTURE | 20080603 | ||||
| 2 | R_DURATION | Value transfer | Type reference (TYPE) | STRING | 20080603 |
Method CONVERT_DURATION_TO_STRING on class CL_SEQ_DURATION_HELPER has no exception.
Method CONVERT_DURATION_TO_STRUCTURE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IS_DURATION | Call by reference | Type reference (TYPE) | STRING | 20080603 | ||||
| 2 | R_DURATION | Value transfer | Type reference (TYPE) | SEQ_DURATION_STRUCTURE | 20080603 |
Method CONVERT_DURATION_TO_STRUCTURE on class CL_SEQ_DURATION_HELPER has no exception.
Method CONVERT_DUR_INTERVAL Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | DUR_INTERVAL | Call by reference | Type reference (TYPE) | I | 20080602 | ||||
| 2 | DUR_STRING | Call by reference | Type reference (TYPE) | STRING | 20080602 | ||||
| 3 | DUR_TYPE | Call by reference | Type reference (TYPE) | CHAR1 | 20080602 | ||||
| 4 | IS_DURATION_TIME | Call by reference | Type reference (TYPE) | BOOLEAN | ABAP_FALSE | 20080602 | |||
| 5 | R_RESULT | Value transfer | Type reference (TYPE) | STRING | 20080602 |
Method CONVERT_DUR_INTERVAL on class CL_SEQ_DURATION_HELPER has no exception.
Method CONVERT_PERIOD_TO_STRING Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | I_PERIOD | Value transfer | Type reference (TYPE) | I | 20080604 | ||||
| 2 | R_RESULT | Value transfer | Type reference (TYPE) | STRING | 20080604 |
Method CONVERT_PERIOD_TO_STRING on class CL_SEQ_DURATION_HELPER has no exception.
Method CONVERT_SECONDS_TO_STRING Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_SECOND | Value transfer | Type reference (TYPE) | TZNTSTMPL | UTC time stamp in long form (YYYYMMDDhhmmss,mmmuuun) | 20080604 | |||
| 2 | RV_SECOND | Value transfer | Type reference (TYPE) | STRING | 20080604 |
Method CONVERT_SECONDS_TO_STRING on class CL_SEQ_DURATION_HELPER has no exception.
Method FIND_PERIOD_NUMBER Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | I_PERIOD_CHAR | Value transfer | Type reference (TYPE) | CHAR1 | 20080602 | ||||
| 2 | I_STR_DURATION | Value transfer | Type reference (TYPE) | STRING | 20080602 | ||||
| 3 | R_PERIOD_VALUE | Value transfer | Type reference (TYPE) | I | 20080602 |
Method FIND_PERIOD_NUMBER on class CL_SEQ_DURATION_HELPER has no exception.
Method FIND_PERIOD_STRING Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | C_PERIOD_DURATION | Call by reference | Type reference (TYPE) | STRING | 20080602 | ||||
| 2 | C_TIME_DURATION | Call by reference | Type reference (TYPE) | STRING | 20080602 | ||||
| 3 | IV_DUR_STRING | Value transfer | Type reference (TYPE) | STRING | 20080602 |
Method FIND_PERIOD_STRING on class CL_SEQ_DURATION_HELPER has no exception.
Method FIND_SECONDS_NUMBER Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | I_PERIOD_CHAR | Value transfer | Type reference (TYPE) | CHAR1 | Single-Character Flag | 20080610 | |||
| 2 | I_STR_DURATION | Value transfer | Type reference (TYPE) | STRING | 20080610 | ||||
| 3 | R_PERIOD_VALUE | Value transfer | Type reference (TYPE) | F | 20080610 |
Method FIND_SECONDS_NUMBER on class CL_SEQ_DURATION_HELPER has no exception.
Method GET_BETTER_DURATION Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CH_BETTER_DURATION | Call by reference | Type reference (TYPE) | SEQ_DURATION_STRUCTURE | the less duration | 20080603 | |||
| 2 | CH_RESULT_DATE | Call by reference | Type reference (TYPE) | TZNTSTMPL | the result date | 20080603 | |||
| 3 | I_DURATION1 | Call by reference | Type reference (TYPE) | SEQ_DURATION_STRUCTURE | first duration | 20080603 | |||
| 4 | I_DURATION2 | Call by reference | Type reference (TYPE) | SEQ_DURATION_STRUCTURE | second duration | 20080603 | |||
| 5 | I_START_DATE | Call by reference | Type reference (TYPE) | TZNTSTMPL | start date | 20080603 |
Method GET_BETTER_DURATION on class CL_SEQ_DURATION_HELPER has no exception.
Method GET_DURATION_STRING Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | R_STRING | Value transfer | Type reference (TYPE) | STRING | 20080602 |
Method GET_DURATION_STRING on class CL_SEQ_DURATION_HELPER has no exception.
Method GET_DUR_STRING_FOR_SECONDS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | DUR_INTERVAL | Call by reference | Type reference (TYPE) | P | 20080604 | ||||
| 2 | DUR_STRING | Call by reference | Type reference (TYPE) | STRING | 20080604 | ||||
| 3 | DUR_TYPE | Call by reference | Type reference (TYPE) | CHAR1 | Single-Character Flag | 20080604 | |||
| 4 | IS_DURATION_TIME | Call by reference | Type reference (TYPE) | BOOLEAN | ABAP_FALSE | Boolean Variable (X=True, -=False, Space=Unknown) | 20080604 | ||
| 5 | R_RESULT | Value transfer | Type reference (TYPE) | STRING | 20080604 |
Method GET_DUR_STRING_FOR_SECONDS on class CL_SEQ_DURATION_HELPER has no exception.
Method GET_RESULT_DATE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | RESULT_TMSTP | Value transfer | Type reference (TYPE) | TZNTSTMPL | 20080602 |
Method GET_RESULT_DATE on class CL_SEQ_DURATION_HELPER has no exception.
Method MAX_DAYS_IN_MONTH_FOR_END_DATE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CALCULATED_MONTH | Call by reference | Type reference (TYPE) | I | 20080602 | ||||
| 2 | CALCULATED_YEAR | Value transfer | Type reference (TYPE) | I | 20080602 | ||||
| 3 | MAX_DAYS | Value transfer | Type reference (TYPE) | I | 20080602 |
Method MAX_DAYS_IN_MONTH_FOR_END_DATE on class CL_SEQ_DURATION_HELPER has no exception.
Method SUBTRACT_DATES Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_TSTMP1 | Value transfer | Type reference (TYPE) | TZNTSTMPL | UTC time stamp in long form (YYYYMMDDhhmmss,mmmuuun) | 20080721 | |||
| 2 | IV_TSTMP2 | Value transfer | Type reference (TYPE) | TZNTSTMPL | UTC time stamp in long form (YYYYMMDDhhmmss,mmmuuun) | 20080721 | |||
| 3 | RV_DURATION | Value transfer | Type reference (TYPE) | SEQ_DURATION_STRUCTURE | duration structure | 20080721 |
Method SUBTRACT_DATES on class CL_SEQ_DURATION_HELPER has no exception.
History
| Last changed by/on | SAP | 20090618 |
| SAP Release Created in | 711 |