Hierarchy
⤷ BC-ESI-WS-ABA-RT (Application Component) WebServices ABAP Runtime
⤷ SOAP_SEQ_SCD (Package) Sequence Scheduling
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 | ABAP | 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 | GC_INFINITE_EXPIRY_10 | Constant | Public | Type reference (TYPE) | STRING | 'P0S' | 20080602 | ||
2 | GC_INFINITE_EXPIRY_11 | Constant | Public | Type reference (TYPE) | STRING | 'PT0S' | 20080602 | ||
3 | LC_XSD_DURATION_DAY | Constant | Private | Type reference (TYPE) | CHAR1 | 'D' | 20080602 | ||
4 | LC_XSD_DURATION_HOUR | Constant | Private | Type reference (TYPE) | CHAR1 | 'H' | 20080602 | ||
5 | LC_XSD_DURATION_MINUTE | Constant | Private | Type reference (TYPE) | CHAR1 | 'M' | 20080602 | ||
6 | LC_XSD_DURATION_MONTH | Constant | Private | Type reference (TYPE) | CHAR1 | 'M' | 20080602 | ||
7 | LC_XSD_DURATION_SECOND | Constant | Private | Type reference (TYPE) | CHAR1 | 'S' | 20080602 | ||
8 | LC_XSD_DURATION_START | Constant | Private | Type reference (TYPE) | CHAR1 | 'P' | 20080602 | ||
9 | LC_XSD_DURATION_TIME | Constant | Private | Type reference (TYPE) | CHAR1 | 'T' | 20080602 | ||
10 | LC_XSD_DURATION_YEAR | Constant | Private | Type reference (TYPE) | CHAR1 | 'Y' | 20080602 | ||
11 | LM_DURATION | Instance attribute | Private | Type reference (TYPE) | SEQ_DURATION_STRUCTURE | 20080602 | |||
12 | LM_START_DATE | Instance attribute | Private | Type reference (TYPE) | SEQ_DURATION_STRUCTURE | 20080602 |
Methods
# | Method | Level | Visibility | Method type | Description | Created on |
---|---|---|---|---|---|---|
1 | ADD_DURATION_TO_DATE | Static method | Public | Method | invokes the get_result_date method | 20080602 |
2 | CALCULATE_DAYS_AND_CHANGE | Instance method | Private | Method | returns the date in timestamp | 20080602 |
3 | CALCULATE_HOURS | Instance method | Private | Method | returns the calculated hours | 20080602 |
4 | CALCULATE_HOURS_CARRY | Instance method | Private | Method | calculates the reminder of hours and convert it in days | 20080602 |
5 | CALCULATE_HOURS_TEMP | Instance method | Private | Method | calculate temp hours | 20080602 |
6 | CALCULATE_MINUTES | Instance method | Private | Method | returns the calculated minutes | 20080602 |
7 | CALCULATE_MINUTES_CARRY | Instance method | Private | Method | calculates the reminder of minutes and convert it in hours | 20080602 |
8 | CALCULATE_MINUTES_TEMP | Instance method | Private | Method | calculate temp minutes | 20080602 |
9 | CALCULATE_MONTHS | Instance method | Private | Method | returns the calculated months | 20080602 |
10 | CALCULATE_MONTHS_CARRY | Instance method | Private | Method | calculate the reminder of days and convert it in months | 20080602 |
11 | CALCULATE_MONTHS_TEMP | Instance method | Private | Method | calculate temp months | 20080602 |
12 | CALCULATE_SECONDS | Instance method | Private | Method | returns the calculated seconds | 20080602 |
13 | CALCULATE_SECONDS_CARRY | Instance method | Private | Method | calculates the reminder of seconds and convert it in minutes | 20080602 |
14 | CALCULATE_SECONDS_TEMP | Instance method | Private | Method | calculate temp seconds | 20080602 |
15 | CALCULATE_YEARS | Instance method | Private | Method | return the calculated years | 20080602 |
16 | CONSTRUCTOR | Instance method | Public | Constructor | CONSTRUCTOR | 20080602 |
17 | CONVERT_DURATION_TO_STRING | Static method | Public | Method | factory method, converts duration structure into string | 20080603 |
18 | CONVERT_DURATION_TO_STRUCTURE | Static method | Public | Method | invokes the find_period_number method and returns structure | 20080603 |
19 | CONVERT_DUR_INTERVAL | Instance method | Private | Method | searches for 'T' in string | 20080602 |
20 | CONVERT_PERIOD_TO_STRING | Instance method | Private | Method | convert I to string and trim it | 20080604 |
21 | CONVERT_SECONDS_TO_STRING | Instance method | Private | Method | convert seconds to string and trim it | 20080604 |
22 | FIND_PERIOD_NUMBER | Static method | Private | Method | returns integer value of appropriate piece of date string | 20080602 |
23 | FIND_PERIOD_STRING | Static method | Private | Method | returns period duration and time duration if 'T' found | 20080602 |
24 | FIND_SECONDS_NUMBER | Static method | Private | Method | returns float value of appropriate piece of date string | 20080610 |
25 | GET_BETTER_DURATION | Static method | Public | Method | returns less duration and result date | 20080603 |
26 | GET_DURATION_STRING | Instance method | Private | Method | used to delimit the months and minutes in string | 20080602 |
27 | GET_DUR_STRING_FOR_SECONDS | Instance method | Private | Method | like get_duration_string but for seconds | 20080604 |
28 | GET_RESULT_DATE | Instance method | Public | Method | invokes the calculate_days_and_change method | 20080602 |
29 | MAX_DAYS_IN_MONTH_FOR_END_DATE | Instance method | Private | Method | calculatess the max days witch every month has | 20080602 |
30 | SUBTRACT_DATES | 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 | Importing | IV_DURATION | Call by reference | Type reference (TYPE) | SEQ_DURATION_STRUCTURE | 20080602 | |||
2 | Importing | IV_START_DATE | Call by reference | Type reference (TYPE) | TZNTSTMPL | UTC time stamp in long form (YYYYMMDDhhmmss,mmmuuun) | 20080602 | ||
3 | Importing | IV_WSRM_VERSION | Call by reference | Type reference (TYPE) | CHAR1 | Single-Character Flag | 20080602 | ||
4 | Returning | 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 | Returning | 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 | Returning | 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 | Returning | 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 | Returning | 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 | Returning | 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 | Returning | 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 | Returning | 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 | Returning | 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 | Returning | 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 | Returning | 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 | Returning | 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 | Returning | 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 | Returning | 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 | Returning | 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 | Importing | DURATION | Call by reference | Type reference (TYPE) | SEQ_DURATION_STRUCTURE | 20080602 | |||
2 | Importing | START_DATE | Value transfer | Type reference (TYPE) | TZNTSTMPL | 20080602 | |||
3 | Importing | 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 | Importing | I_DURATION | Call by reference | Type reference (TYPE) | SEQ_DURATION_STRUCTURE | 20080603 | |||
2 | Returning | 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 | Importing | IS_DURATION | Call by reference | Type reference (TYPE) | STRING | 20080603 | |||
2 | Returning | 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 | Importing | DUR_INTERVAL | Call by reference | Type reference (TYPE) | I | 20080602 | |||
2 | Importing | DUR_STRING | Call by reference | Type reference (TYPE) | STRING | 20080602 | |||
3 | Importing | DUR_TYPE | Call by reference | Type reference (TYPE) | CHAR1 | 20080602 | |||
4 | Importing | IS_DURATION_TIME | Call by reference | Type reference (TYPE) | BOOLEAN | ABAP_FALSE | 20080602 | ||
5 | Returning | 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 | Importing | I_PERIOD | Value transfer | Type reference (TYPE) | I | 20080604 | |||
2 | Returning | 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 | Importing | IV_SECOND | Value transfer | Type reference (TYPE) | TZNTSTMPL | UTC time stamp in long form (YYYYMMDDhhmmss,mmmuuun) | 20080604 | ||
2 | Returning | 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 | Importing | I_PERIOD_CHAR | Value transfer | Type reference (TYPE) | CHAR1 | 20080602 | |||
2 | Importing | I_STR_DURATION | Value transfer | Type reference (TYPE) | STRING | 20080602 | |||
3 | Returning | 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 | Changing | C_PERIOD_DURATION | Call by reference | Type reference (TYPE) | STRING | 20080602 | |||
2 | Changing | C_TIME_DURATION | Call by reference | Type reference (TYPE) | STRING | 20080602 | |||
3 | Importing | 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 | Importing | I_PERIOD_CHAR | Value transfer | Type reference (TYPE) | CHAR1 | Single-Character Flag | 20080610 | ||
2 | Importing | I_STR_DURATION | Value transfer | Type reference (TYPE) | STRING | 20080610 | |||
3 | Returning | 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 | Changing | CH_BETTER_DURATION | Call by reference | Type reference (TYPE) | SEQ_DURATION_STRUCTURE | the less duration | 20080603 | ||
2 | Changing | CH_RESULT_DATE | Call by reference | Type reference (TYPE) | TZNTSTMPL | the result date | 20080603 | ||
3 | Importing | I_DURATION1 | Call by reference | Type reference (TYPE) | SEQ_DURATION_STRUCTURE | first duration | 20080603 | ||
4 | Importing | I_DURATION2 | Call by reference | Type reference (TYPE) | SEQ_DURATION_STRUCTURE | second duration | 20080603 | ||
5 | Importing | 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 | Returning | 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 | Importing | DUR_INTERVAL | Call by reference | Type reference (TYPE) | P | 20080604 | |||
2 | Importing | DUR_STRING | Call by reference | Type reference (TYPE) | STRING | 20080604 | |||
3 | Importing | DUR_TYPE | Call by reference | Type reference (TYPE) | CHAR1 | Single-Character Flag | 20080604 | ||
4 | Importing | IS_DURATION_TIME | Call by reference | Type reference (TYPE) | BOOLEAN | ABAP_FALSE | Boolean Variable (X=True, -=False, Space=Unknown) | 20080604 | |
5 | Returning | 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 | Returning | 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 | Importing | CALCULATED_MONTH | Call by reference | Type reference (TYPE) | I | 20080602 | |||
2 | Importing | CALCULATED_YEAR | Value transfer | Type reference (TYPE) | I | 20080602 | |||
3 | Returning | 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 | Importing | IV_TSTMP1 | Value transfer | Type reference (TYPE) | TZNTSTMPL | UTC time stamp in long form (YYYYMMDDhhmmss,mmmuuun) | 20080721 | ||
2 | Importing | IV_TSTMP2 | Value transfer | Type reference (TYPE) | TZNTSTMPL | UTC time stamp in long form (YYYYMMDDhhmmss,mmmuuun) | 20080721 | ||
3 | Returning | 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 |