SAP ABAP Class CL_BUS_TIME (Service Functions for Time Stamps)
Hierarchy
☛
SAP_ABA (Software Component) Cross-Application Component
⤷
AP-MD-BP-UI (Application Component) Dialog SAP-GUI
⤷
BUS_TOOLS (Package) Locator
⤷
⤷
Properties
| Class | CL_BUS_TIME | |
| Short Description | Service Functions for Time Stamps | |
| Super Class | ||
| Instantiability of a Class | 2 | Public |
| Final |
General Data
| Message Class | ||
| Program status | ||
| Category | 0 | |
| Package | BUS_TOOLS | Locator |
| Created | 20000518 | SAP |
| Last change | 20130531 | SAP |
| Shared Memory-enabled | ||
| Fixed point arithmetic | ||
| Unicode checks active |
Forward declarations
Class CL_BUS_TIME has no forward declaration.
Interfaces
Class CL_BUS_TIME has no interface implemented.
Friends
Class CL_BUS_TIME has no friend class.
Attributes
| # | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Constant | Public | Type reference (TYPE) | T | '000000' | Symbolic Value for "Zero Hour" | 20000711 | ||
| 2 | Constant | Public | Type reference (TYPE) | D | '00010101' | Symbolic Value for "Since Always" | 20000814 | ||
| 3 | Constant | Public | Type reference (TYPE) | BUS_TIME-DAY_FORMAT | 'L' | Long Date Format | 20001004 | ||
| 4 | Constant | Public | Type reference (TYPE) | BUS_TIME-DAY_FORMAT | 'S' | Short Date Format | 20001004 | ||
| 5 | Constant | Public | Type reference (TYPE) | T | '235959' | Symbolic Value for "24:00 Hours" | 20000711 | ||
| 6 | Constant | Public | Type reference (TYPE) | D | '99991231' | Symbolic Value for "Until Always" | 20000814 | ||
| 7 | Constant | Public | Type reference (TYPE) | T | '225959' | Symbolic Value for "24:00 Hours" | 20090708 | ||
| 8 | Constant | Private | Type reference (TYPE) | I | 11 | GC_TIME_OFFSET | 20000821 | ||
| 9 | Constant | Public | Type reference (TYPE) | TZNZONE | 'UTC' | Time Zone | 20041201 | ||
| 10 | Constant | Public | Type reference (TYPE) | TIMESTAMP | '00010101000000' | Symbolic Value for "Since Always" | 20000518 | ||
| 11 | Constant | Public | Type reference (TYPE) | TIMESTAMP | '99991231235959' | Symbolic Value for "Until Always" | 20000518 | ||
| 12 | Constant | Public | Type reference (TYPE) | TIMESTAMP | '99991231225959' | UTC Time Stamp in Short Form (YYYYMMDDhhmmss) | 20090708 |
Methods
| # | Method | Level | Visibility | Method type | Description | Created on |
|---|---|---|---|---|---|---|
| 1 | Static method | Public | Method | Converts 'Date From' to Time Stamp Corresponding to TD | 20041130 | |
| 2 | Static method | Public | Method | Converts Dates From/To into Time Stamp From/To | 20000718 | |
| 3 | Static method | Public | Method | Converts Dates to Time Stamps Corresponding to TD | 20041130 | |
| 4 | Static method | Public | Method | Converts 'Date To' to Time Stamp Corresponding to TD | 20041130 | |
| 5 | Static method | Public | Method | Converts a Date from Screen Display to Internal | 20000814 | |
| 6 | Static method | Public | Method | Converts From/To Dates from Screen Display to Internal | 20000814 | |
| 7 | Static method | Public | Method | Converts a Time Stamp from Screen Display to Internal | 20000821 | |
| 8 | Static method | Public | Method | Converts a Time Stamp into Character Format | 20000821 | |
| 9 | Static method | Public | Method | Converts Time Stamps to Dates According to TD | 20041130 | |
| 10 | Static method | Public | Method | Converts a Time Stamp Period into Character Format | 20000814 | |
| 11 | Static method | Public | Method | Converts a Time Stamp into Date | 20000718 | |
| 12 | Static method | Public | Method | Converts Time Stamp to Date According to TD | 20041130 | |
| 13 | Static method | Public | Method | Rounds Down a Time Stamp to 1 Second | 20000711 | |
| 14 | Static method | Private | Method | Delivers the Text for a Date | 20001004 | |
| 15 | Static method | Public | Method | Rounds Up a Time Stamp to 1 Second | 20000711 |
Events
Class CL_BUS_TIME has no event.
Types
Class CL_BUS_TIME has no local type.
Method Signatures
Method CONVERT_DATEFROM_TO_TIMESTAMP Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_TIMESTAMP | Call by reference | Type reference (TYPE) | BU_BP_VALID_FROM | Gültigkeitsbeginn BUT000 GP-Daten | 20041201 | |||
| 2 | IV_DATE | Call by reference | Type reference (TYPE) | SYSTDATLO | Lokales Datum des aktuellen Benutzers | 20041201 |
Method CONVERT_DATEFROM_TO_TIMESTAMP on class CL_BUS_TIME has no exception.
Method CONVERT_DATES_TO_TIMESTAMPS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_TIMESTAMP_FROM | Call by reference | Type reference (TYPE) | TIMESTAMP | UTC-Zeitstempel in Kurzform (JJJJMMTThhmmss) | 20000718 | |||
| 2 | EV_TIMESTAMP_TO | Call by reference | Type reference (TYPE) | TIMESTAMP | UTC-Zeitstempel in Kurzform (JJJJMMTThhmmss) | 20000718 | |||
| 3 | IV_DATE_FROM | Call by reference | Type reference (TYPE) | D | Datum | 20000718 | |||
| 4 | IV_DATE_TO | Call by reference | Type reference (TYPE) | D | Datum | 20000718 | |||
| 5 | IV_TIME_ZONE | Call by reference | Type reference (TYPE) | TIMEZONE | Zeitzone | 20000718 |
Method CONVERT_DATES_TO_TIMESTAMPS on class CL_BUS_TIME has no exception.
Method CONVERT_DATES_TO_TIMESTAMPS_TD Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_TIMESTAMP_FROM | Call by reference | Type reference (TYPE) | BU_BP_VALID_FROM | Gültigkeitsbeginn BUT000 GP-Daten | 20041201 | |||
| 2 | EV_TIMESTAMP_TO | Call by reference | Type reference (TYPE) | BU_BP_VALID_TO | Gültigkeitsende BUT000 GP-Daten | 20041201 | |||
| 3 | IV_DATE_FROM | Call by reference | Type reference (TYPE) | SYSTDATLO | Lokales Datum des aktuellen Benutzers | 20041201 | |||
| 4 | IV_DATE_TO | Call by reference | Type reference (TYPE) | SYSTDATLO | Lokales Datum des aktuellen Benutzers | 20041201 |
Method CONVERT_DATES_TO_TIMESTAMPS_TD on class CL_BUS_TIME has no exception.
Method CONVERT_DATETO_TO_TIMESTAMP Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_TIMESTAMP | Call by reference | Type reference (TYPE) | BU_BP_VALID_TO | Gültigkeitsende BUT000 GP-Daten | 20041201 | |||
| 2 | IV_DATE | Call by reference | Type reference (TYPE) | SYSTDATLO | Lokales Datum des aktuellen Benutzers | 20041201 |
Method CONVERT_DATETO_TO_TIMESTAMP on class CL_BUS_TIME has no exception.
Method CONVERT_SCREEN_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) | BUS_TIME-DATE | "Ab" Datum | 20000814 | |||
| 2 | IV_DATE | Call by reference | Type reference (TYPE) | BUS_TIME-DATE_CHAR | Dynpro: "Ab" Datum im Charakter-Format | 20000814 | |||
| 3 | IV_DEFAULT | Call by reference | Type reference (TYPE) | BUS_TIME-DATE | Standarddatum bei leerer Eingabe | 20000814 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Ungültiges Datum | 20000814 |
Method CONVERT_SCREEN_DATES Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_DATE_FROM | Call by reference | Type reference (TYPE) | BUS_TIME-DATE_FROM | "Ab" Datum | 20000814 | |||
| 2 | EV_DATE_TO | Call by reference | Type reference (TYPE) | BUS_TIME-DATE_TO | "Bis" Datum | 20000814 | |||
| 3 | IV_DATE_FROM | Call by reference | Type reference (TYPE) | BUS_TIME-DATE_FROM_CHAR | Dynpro: "Ab" Datum in Charakter Darstellung | 20000814 | |||
| 4 | IV_DATE_TO | Call by reference | Type reference (TYPE) | BUS_TIME-DATE_FROM_CHAR | Dynpro: "Bis" Datum in Charakter Darstellung | 20000814 | |||
| 5 | IV_DEFAULT_FROM | Call by reference | Type reference (TYPE) | BUS_TIME-DATE_TO | Standard bei leerer EIngabe | 20000814 | |||
| 6 | IV_DEFAULT_TO | Call by reference | Type reference (TYPE) | BUS_TIME-DATE_TO | Standard bei leerer Eingabe | 20000814 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Das "Ab" und das "Bis" Datum passen nicht zueinander | 20000814 | ||
| 2 | Das "Ab" Datum ist nicht gültig | 20000814 | ||
| 3 | Das "Bis" Datum ist nicht gültig | 20000814 |
Method CONVERT_SCREEN_TIMESTAMP Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_TIMESTAMP | Call by reference | Type reference (TYPE) | BUS_TIME-STAMP | Zeitpunkt in interner Darstellung | 20000821 | |||
| 2 | IV_DEFAULT | Call by reference | Type reference (TYPE) | BUS_TIME-STAMP | Standardzeitpunkt bei leerer Eingabe | 20000821 | |||
| 3 | IV_TIMESTAMP | Call by reference | Type reference (TYPE) | BUS_TIME-STAMP_CHAR | Dynpro: Zeitpunkt im Charakter-Format | 20000821 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Ungültiges Datum | 20000821 |
Method CONVERT_TIMESTAMP Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_TIMESTAMP | Call by reference | Type reference (TYPE) | BUS_TIME-STAMP_CHAR | Zeitstempel in Charakterdarstellung | 20000821 | |||
| 2 | IV_TEXT | Call by reference | Type reference (TYPE) | C | Ersatztext für Zeitstempel 0 | 20000821 | |||
| 3 | IV_TIMESTAMP | Call by reference | Type reference (TYPE) | BUS_TIME-STAMP | Zeitstempel | 20000821 | |||
| 4 | IV_TIME_ZONE | Call by reference | Type reference (TYPE) | BUS_TIME-ZONE | Zeitzone | 20000821 |
Method CONVERT_TIMESTAMP on class CL_BUS_TIME has no exception.
Method CONVERT_TIMESTAMPS_TO_DATES_TD Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_DATE_FROM | Call by reference | Type reference (TYPE) | SYSTDATLO | Lokales Datum des aktuellen Benutzers | 20041201 | |||
| 2 | EV_DATE_TO | Call by reference | Type reference (TYPE) | SYSTDATLO | Lokales Datum des aktuellen Benutzers | 20041201 | |||
| 3 | IV_TIMESTAMP_FROM | Call by reference | Type reference (TYPE) | BU_BP_VALID_FROM | Gültigkeitsbeginn BUT000 GP-Daten | 20041201 | |||
| 4 | IV_TIMESTAMP_TO | Call by reference | Type reference (TYPE) | BU_BP_VALID_TO | Gültigkeitsende BUT000 GP-Daten | 20041201 |
Method CONVERT_TIMESTAMPS_TO_DATES_TD on class CL_BUS_TIME has no exception.
Method CONVERT_TIMESTAMP_PERIOD Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ES_PERIOD | Call by reference | Type reference (TYPE) | BUS_TIME-STAMP_PERIOD_CHAR | Dynpro: Zeitstempelintervall in Charakterdarstellung | 20000814 | |||
| 2 | EV_DAY_FROM_TEXT | Call by reference | Type reference (TYPE) | C | Text zum "Von" Tag | 20001004 | |||
| 3 | EV_DAY_TO_TEXT | Call by reference | Type reference (TYPE) | C | Text zum "Bis" Tag | 20001004 | |||
| 4 | IS_PERIOD | Call by reference | Type reference (TYPE) | BUS_TIME-STAMP_PERIOD | Zeitstempelintervall | 20000814 | |||
| 5 | IV_FORMAT | Call by reference | Type reference (TYPE) | BUS_TIME-DAY_FORMAT | SPACE = kein Format, 'S' =kurzes Format, 'L' = langes Format | 20001004 | |||
| 6 | IV_FROM_TEXT | Call by reference | Type reference (TYPE) | C | Ersatztext für "Von" Zeitstempel 0 | 20000814 | |||
| 7 | IV_TIME_ZONE | Call by reference | Type reference (TYPE) | BUS_TIME-ZONE | Zeitzone | 20000814 | |||
| 8 | IV_TO_TEXT | Call by reference | Type reference (TYPE) | C | Ersatztext für "Bis" Zeitstempel 0 | 20000814 |
Method CONVERT_TIMESTAMP_PERIOD on class CL_BUS_TIME has no exception.
Method CONVERT_TIMESTAMP_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) | D | Datum | 20000718 | |||
| 2 | IV_TIMESTAMP | Call by reference | Type reference (TYPE) | TIMESTAMP | UTC-Zeitstempel in Kurzform (JJJJMMTThhmmss) | 20000718 | |||
| 3 | IV_TIME_ZONE | Call by reference | Type reference (TYPE) | TIMEZONE | Zeitzone | 20110104 |
Method CONVERT_TIMESTAMP_TO_DATE on class CL_BUS_TIME has no exception.
Method CONVERT_TIMESTAMP_TO_DATE_TD Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_DATE | Call by reference | Type reference (TYPE) | SYSTDATLO | Lokales Datum des aktuellen Benutzers | 20041201 | |||
| 2 | IV_TIMESTAMP | Call by reference | Type reference (TYPE) | BU_BP_VALID_FROM | Gültigkeitsbeginn BUT000 GP-Daten | 20041201 |
Method CONVERT_TIMESTAMP_TO_DATE_TD on class CL_BUS_TIME has no exception.
Method DECREMENT_TIMESTAMP Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_TIMESTAMP | Call by reference | Type reference (TYPE) | TIMESTAMP | UTC-Zeitstempel in Kurzform (JJJJMMTThhmmss) | 20000711 | |||
| 2 | IV_TIMESTAMP | Value transfer | Type reference (TYPE) | TIMESTAMP | UTC-Zeitstempel in Kurzform (JJJJMMTThhmmss) | 20000711 |
Method DECREMENT_TIMESTAMP on class CL_BUS_TIME has no exception.
Method GET_DAY_TEXT Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_TEXT | Call by reference | Type reference (TYPE) | C | Text | 20001004 | |||
| 2 | IV_DAY | Call by reference | Type reference (TYPE) | BUS_TIME-DATE | Datum | 20001004 | |||
| 3 | IV_FORMAT | Call by reference | Type reference (TYPE) | BUS_TIME-DAY_FORMAT | Format: SPACE = WRITE | 20001004 |
Method GET_DAY_TEXT on class CL_BUS_TIME has no exception.
Method INCREMENT_TIMESTAMP Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_TIMESTAMP | Call by reference | Type reference (TYPE) | TIMESTAMP | UTC-Zeitstempel in Kurzform (JJJJMMTThhmmss) | 20000711 | |||
| 2 | IV_TIMESTAMP | Value transfer | Type reference (TYPE) | TIMESTAMP | UTC-Zeitstempel in Kurzform (JJJJMMTThhmmss) | 20000711 |
Method INCREMENT_TIMESTAMP on class CL_BUS_TIME has no exception.
History
| Last changed by/on | SAP | 20130531 |
| SAP Release Created in | 30A |