ROUND_TIMESTAMP_TO_DAY SAP Method Round a time stamp to the full day
Below is documentation, parameters and attributes of ABAP Method ROUND_TIMESTAMP_TO_DAY within SAP class /SCMTMS/CL_COMMON_HELPER. There is also a number of example ABAP code snipts to help you use the functionality of this method.
This method is available within SAP systems depending on your version and release level, you can view further information by entering the class name /SCMTMS/CL_COMMON_HELPER into the relevant SAP transactions such as SE24 or SE80, and then selecting the method you are interested in.
Method Type - Static
This is a Static Method so you can call it directlyThe following technical details of method ROUND_TIMESTAMP_TO_DAY can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method ROUND_TIMESTAMP_TO_DAY
.| Name | Type | Data Type | Description | Default Value |
| IV_DAYSTART_TO_EOD | Importing | TYPE FLAG | Fwd Rnd Dir: Day start will also be rounded to end of day | |
| IV_DIRECTION | Importing | TYPE /SCMTMS/VSR_PLANNING_DIRECTION | Rounding direction: F -> Forward, B-> Backward | |
| IV_LOC_KEY | Importing | TYPE /SCMTMS/LOCATION_UUID | Location UUID | |
| IV_TIMEZONE | Importing | TYPE TIMEZONE | Time Zone | |
| CV_TIMESTAMP | Changing | TYPE TIMESTAMP | UTC Time Stamp in Short Form (YYYYMMDDhhmmss) |
Exceptions of Method ROUND_TIMESTAMP_TO_DAY
This method does not have any exceptionsExample ABAP coding
DATA: lv_CV_TIMESTAMP TYPE TIMESTAMP,
lv_IV_DAYSTART_TO_EOD TYPE FLAG,
lv_IV_DIRECTION TYPE /SCMTMS/VSR_PLANNING_DIRECTION,
lv_IV_LOC_KEY TYPE /SCMTMS/LOCATION_UUID,
lv_IV_TIMEZONE TYPE TIMEZONE,
lv_other TYPE c.
CALL METHOD /SCMTMS/CL_COMMON_HELPER=>ROUND_TIMESTAMP_TO_DAY(
EXPORTING
IV_DAYSTART_TO_EOD = lv_IV_DAYSTART_TO_EOD
IV_DIRECTION = lv_IV_DIRECTION
IV_LOC_KEY = lv_IV_LOC_KEY
IV_TIMEZONE = lv_IV_TIMEZONE
CHANGING
CV_TIMESTAMP = lv_CV_TIMESTAMP ).
Links to Related Class(s)
/SCMTMS/...Full list of available SAP object classes
Search for further information about these or an SAP related objects