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 directly

The 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

.

NameTypeData TypeDescriptionDefault Value
IV_DAYSTART_TO_EODImportingTYPE
FLAG
Fwd Rnd Dir: Day start will also be rounded to end of day
IV_DIRECTIONImportingTYPE
/SCMTMS/VSR_PLANNING_DIRECTION
Rounding direction: F -> Forward, B-> Backward
IV_LOC_KEYImportingTYPE
/SCMTMS/LOCATION_UUID
Location UUID
IV_TIMEZONEImportingTYPE
TIMEZONE
Time Zone
CV_TIMESTAMPChangingTYPE
TIMESTAMP
UTC Time Stamp in Short Form (YYYYMMDDhhmmss)



Exceptions of Method ROUND_TIMESTAMP_TO_DAY

This method does not have any exceptions

Example 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



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!