SAP ABAP Class /MRSS/CL_SGE_ABAP_TSTMP (Calculate with Time Stamps)
Hierarchy
☛
MRSS_NW (Software Component) SAP Multiresource Scheduling for SAP Net
⤷
PM-WOC-MO (Application Component) Maintenance Orders
⤷
/MRSS/SGE (Package) Multiresource Planning: Scheduling Engine
⤷
⤷
Properties
| Class | /MRSS/CL_SGE_ABAP_TSTMP | |
| Short Description | Calculate with Time Stamps | |
| Super Class | ||
| Instantiability of a Class | 2 | Public |
| Final |
General Data
| Message Class | ||
| Program status | ||
| Category | 0 | |
| Package | /MRSS/SGE | Multiresource Planning: Scheduling Engine |
| Created | 20090710 | SAP |
| Last change | 20141109 | |
| Shared Memory-enabled | ||
| Fixed point arithmetic | ||
| Unicode checks active |
Forward declarations
Class /MRSS/CL_SGE_ABAP_TSTMP has no forward declaration.
Interfaces
Class /MRSS/CL_SGE_ABAP_TSTMP has no interface implemented.
Friends
Class /MRSS/CL_SGE_ABAP_TSTMP has no friend class.
Attributes
| # | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Constant | Public | Type reference (TYPE) | CHAR4 | 'R3NW' | Char 20 | 20110405 | ||
| 2 | Constant | Public | Type reference (TYPE) | GUID_32 | '00000000000000000000000000000001' | GUID in 'CHAR' Format in Uppercase | 20110405 | ||
| 3 | Constant | Public | Type reference (TYPE) | CHAR20 | '/MRSS/RAP' | Char 20 | 20110405 | ||
| 4 | Constant | Public | Type reference (TYPE) | SY-UZEIT | '000000' | Current Time of Application Server | 20110405 | ||
| 5 | Constant | Public | Type reference (TYPE) | SY-UZEIT | '235959' | Current Time of Application Server | 20110405 | ||
| 6 | Constant | Public | Type reference (TYPE) | CHAR1 | 'W' | Single-Character Indicator | 20110405 | ||
| 7 | Constant | Public | Type reference (TYPE) | CHAR2 | '01' | Single-Character Indicator | 20110405 | ||
| 8 | Constant | Private | Type reference (TYPE) | TZNTSTMPL | '315538070399.9999999' | Maximum Duration (Number of Seconds) | 20090710 | ||
| 9 | Constant | Private | Type reference (TYPE) | TZNTSTMPL | '-315538070399.9999999' | Minimum Duration (Number of Seconds) | 20090710 | ||
| 10 | Constant | Private | Type reference (TYPE) | I | 86400 | Number of Seconds in a Day | 20090710 |
Methods
| # | Method | Level | Visibility | Method type | Description | Created on |
|---|---|---|---|---|---|---|
| 1 | Static method | Public | Method | Addition of Duration in Seconds to Time Stamp | 20090710 | |
| 2 | Static method | Public | Method | Check Whether Day Changed | 20090710 | |
| 3 | Static method | Public | Method | Returns the date of a timestamp | 20110317 | |
| 4 | Static method | Public | Method | Get Month First last | 20110405 | |
| 5 | Static method | Public | Method | Get number of months between two dates | 20110405 | |
| 6 | Static method | Public | Method | Get number of weeks between two dates | 20110405 | |
| 7 | Static method | Public | Method | Returns the time of a timestamp | 20110317 | |
| 8 | Static method | Public | Method | Get time interval | 20110405 | |
| 9 | Static method | Public | Method | Get list of dates based on input time rule | 20110405 | |
| 10 | Static method | Public | Method | Get Total Duration of Breaks Between Set of Intervals | 20090710 | |
| 11 | Static method | Public | Method | Get the Total Duration Between a Set of Intervals | 20090710 | |
| 12 | Static method | Public | Method | Converts UTC Time Stamps | 20110713 | |
| 13 | Static method | Private | Method | Conversion: Duration in Seconds after Time Stamp | 20090710 | |
| 14 | Static method | Public | Method | Subtraction of Two Time Stamps | 20090710 | |
| 15 | Static method | Public | Method | Subtraction of Duration in Seconds of Time Stamp | 20090710 | |
| 16 | Static method | Private | Method | Conversion: Time Stamp by Duration in Seconds | 20090710 | |
| 17 | Static method | Private | Method | Conversion: Time Stamp in type P by Duration in Seconds | 20120326 |
Events
Class /MRSS/CL_SGE_ABAP_TSTMP has no event.
Types
Class /MRSS/CL_SGE_ABAP_TSTMP has no local type.
Method Signatures
Method ADD Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | R_TSTMP | Value transfer | Type reference (TYPE) | TZNTSTMPL | UTC time stamp in long form (YYYYMMDDhhmmss,mmmuuun) | 20090710 | |||
| 2 | SECS | Call by reference | Type reference (TYPE) | INT4 | Natural Number | 20090710 | |||
| 3 | TSTMP | Call by reference | Type reference (TYPE) | P | UTC Time Stamp | 20090710 |
Method ADD on class /MRSS/CL_SGE_ABAP_TSTMP has no exception.
Method CHECK_DAY_CHANGED Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_NEW | Call by reference | Type reference (TYPE) | TIMESTAMP | UTC Time Stamp in Short Form (YYYYMMDDhhmmss) | 20090710 | |||
| 2 | IV_REFERENCE | Call by reference | Type reference (TYPE) | TIMESTAMP | UTC Time Stamp in Short Form (YYYYMMDDhhmmss) | 20090710 | |||
| 3 | RV_CHANGED | Value transfer | Type reference (TYPE) | /MRSS/T_BOOLEAN | Boolean Variable | 20090710 |
Method CHECK_DAY_CHANGED on class /MRSS/CL_SGE_ABAP_TSTMP has no exception.
Method GET_DATE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_TIMESTAMP | Call by reference | Type reference (TYPE) | TIMESTAMP | UTC-Zeitstempel in Kurzform (JJJJMMTThhmmss) | 20110317 | |||
| 2 | RV_DATE | Value transfer | Type reference (TYPE) | D | The date you have asked for | 20110317 |
Method GET_DATE on class /MRSS/CL_SGE_ABAP_TSTMP has no exception.
Method GET_MONTH_FIRST_LAST Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_FIRST_DAY | Call by reference | Type reference (TYPE) | SY-DATUM | Current Date of Application Server | 20110405 | |||
| 2 | EV_LAST_DAY | Call by reference | Type reference (TYPE) | SY-DATUM | Current Date of Application Server | 20110405 | |||
| 3 | IV_DATE | Call by reference | Type reference (TYPE) | SY-DATUM | Current Date of Application Server | 20110405 | |||
| 4 | IV_MONTH | Call by reference | Type reference (TYPE) | NUMC2 | Two digit number | 20110405 | |||
| 5 | IV_YEAR | Call by reference | Type reference (TYPE) | NUMC4 | Count parameters | 20110405 |
Method GET_MONTH_FIRST_LAST on class /MRSS/CL_SGE_ABAP_TSTMP has no exception.
Method GET_NUM_OF_MONTHS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_MONTHS | Call by reference | Type reference (TYPE) | INT4 | Natural number | 20110405 | |||
| 2 | IV_BEGIN_DATE | Call by reference | Type reference (TYPE) | DATS | Field of type DATS | 20110405 | |||
| 3 | IV_END_DATE | Call by reference | Type reference (TYPE) | DATS | Field of type DATS | 20110405 |
Method GET_NUM_OF_MONTHS on class /MRSS/CL_SGE_ABAP_TSTMP has no exception.
Method GET_NUM_OF_WEEKS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_WEEKS | Call by reference | Type reference (TYPE) | INT4 | Natural number | 20110405 | |||
| 2 | IV_BEGIN_DATE | Call by reference | Type reference (TYPE) | SCAL-DATE | Date for public holiday and factory calendars | 20110405 | |||
| 3 | IV_END_DATE | Call by reference | Type reference (TYPE) | SCAL-DATE | Date for public holiday and factory calendars | 20110405 |
Method GET_NUM_OF_WEEKS on class /MRSS/CL_SGE_ABAP_TSTMP has no exception.
Method GET_TIME Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_TIMESTAMP | Call by reference | Type reference (TYPE) | TIMESTAMP | UTC-Zeitstempel in Kurzform (JJJJMMTThhmmss) | 20110317 | |||
| 2 | RV_TIME | Value transfer | Type reference (TYPE) | T | Time you have asked for | 20110317 |
Method GET_TIME on class /MRSS/CL_SGE_ABAP_TSTMP has no exception.
Method GET_TIME_INTERVAL Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ES_INTERVAL | Call by reference | Type reference (TYPE) | /MRSS/T_TIMESTAMP_INTERVAL | Time Interval | 20110405 | |||
| 2 | ET_INTERVAL | Call by reference | Type reference (TYPE) | /MRSS/T_TIMESTAMP_INTERVAL_TAB | Table with Time Stamp Intervals | 20110405 | |||
| 3 | IV_DATE | Call by reference | Type reference (TYPE) | SY-DATUM | Current Date of Application Server | 20110405 | |||
| 4 | IV_END_DATE | Call by reference | Type reference (TYPE) | DATS | Field of type DATS | 20110405 | |||
| 5 | IV_TIME_ZONE | Call by reference | Type reference (TYPE) | SY-ZONLO | Time Zone of Current User | 20110405 | |||
| 6 | IV_VIEW_TYPE | Call by reference | Type reference (TYPE) | /MRSS/T_VIEW_TYPE | View Type | 20110405 |
Method GET_TIME_INTERVAL on class /MRSS/CL_SGE_ABAP_TSTMP has no exception.
Method GET_TIME_RULE_INTERVAL Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ET_DATES | Call by reference | Type reference (TYPE) | /MRSS/T_RM_DATE_TAB | Time Rule Date Table | 20110405 | |||
| 2 | IS_DAY | Call by reference | Type reference (TYPE) | /MRSS/T_RM_DAY | Days of Week | 20110405 | |||
| 3 | IV_END_DATE | Call by reference | Type reference (TYPE) | DATS | Field of type DATS | 20110405 | |||
| 4 | IV_START_DATE | Call by reference | Type reference (TYPE) | DATS | Field of type DATS | 20110405 |
Method GET_TIME_RULE_INTERVAL on class /MRSS/CL_SGE_ABAP_TSTMP has no exception.
Method GET_TOTAL_BREAK_IN_INTERVAL Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IT_INTERVALS | Call by reference | Type reference (TYPE) | /MRSS/T_SGE_GUID_TSP_INT_TAB | GUIDs with Intervals | 20090710 | |||
| 2 | RV_TOTAL_DURATION | Value transfer | Type reference (TYPE) | TZNTSTMPL | UTC Time Stamp in Long Form (YYYYMMDDhhmmss,mmmuuun) | 20090710 |
Method GET_TOTAL_BREAK_IN_INTERVAL on class /MRSS/CL_SGE_ABAP_TSTMP has no exception.
Method GET_TOTAL_DURATION_IN_INTERVAL Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IT_INTERVALS | Call by reference | Type reference (TYPE) | /MRSS/T_SGE_GUID_TSP_INT_TAB | GUIDs with Intervals | 20090710 | |||
| 2 | RV_TOTAL_DURATION | Value transfer | Type reference (TYPE) | TZNTSTMPL | UTC Time Stamp in Long Form (YYYYMMDDhhmmss,mmmuuun) | 20090710 |
Method GET_TOTAL_DURATION_IN_INTERVAL on class /MRSS/CL_SGE_ABAP_TSTMP has no exception.
Method MOVE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | TSTMP_SRC | Call by reference | Type reference (TYPE) | P | UTC Time Stamp: Source | 20110713 | |||
| 2 | TSTMP_TGT | Call by reference | Type reference (TYPE) | P | UTC Time Stamp: Target | 20110713 |
Method MOVE on class /MRSS/CL_SGE_ABAP_TSTMP has no exception.
Method SECS2TSTMP Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | SECS | Call by reference | Type reference (TYPE) | P | Time Interval in Seconds (as from 01.01.0001 00:00:00) | 20090710 | |||
| 2 | TSTMP | Value transfer | Type reference (TYPE) | TZNTSTMPL | UTC Time Stamp | 20090710 |
Method SECS2TSTMP on class /MRSS/CL_SGE_ABAP_TSTMP has no exception.
Method SUBTRACT Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | R_SECS | Value transfer | Type reference (TYPE) | TZNTSTMPL | Time Interval in Seconds | 20090710 | |||
| 2 | TSTMP1 | Call by reference | Type reference (TYPE) | P | UTC Time Stamp | 20090710 | |||
| 3 | TSTMP2 | Call by reference | Type reference (TYPE) | P | UTC Time Stamp | 20090710 |
Method SUBTRACT on class /MRSS/CL_SGE_ABAP_TSTMP has no exception.
Method SUBTRACTSECS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | R_TSTMP | Value transfer | Type reference (TYPE) | TZNTSTMPL | UTC Time Stamp | 20090710 | |||
| 2 | SECS | Call by reference | Type reference (TYPE) | INT4 | Time Interval in Seconds | 20090710 | |||
| 3 | TSTMP | Call by reference | Type reference (TYPE) | P | UTC Time Stamp | 20090710 |
Method SUBTRACTSECS on class /MRSS/CL_SGE_ABAP_TSTMP has no exception.
Method TSTMP2SECS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | SECS | Value transfer | Type reference (TYPE) | TZNTSTMPL | UTC time stamp in long form (YYYYMMDDhhmmss,mmmuuun) | 20090710 | |||
| 2 | TSTMP | Call by reference | Type reference (TYPE) | TZNTSTMPS | UTC Time Stamp | 20090710 |
Method TSTMP2SECS on class /MRSS/CL_SGE_ABAP_TSTMP has no exception.
Method TSTMP_TO_SECS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | SECS | Value transfer | Type reference (TYPE) | TZNTSTMPL | Time Interval in Seconds (as from 01.01.0001 00:00:00) | 20120326 | |||
| 2 | TSTMP | Call by reference | Type reference (TYPE) | P | UTC Time Stamp | 20120326 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Parameter with Invalid Range | 20120326 | ||
| 2 | Parameter with Invalid Type | 20120326 |
History
| Last changed by/on | SAP | 20141109 |
| SAP Release Created in | 700 |