CONVERT_DATE2TIMESTMP SAP Method Convert date to timestamp
Below is documentation, parameters and attributes of ABAP Method CONVERT_DATE2TIMESTMP within SAP class /SCTM/CL_SP. 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 /SCTM/CL_SP into the relevant SAP transactions such as SE24 or SE80, and then selecting the method you are interested in.
Method Type - Instance
This is an Instance Method so needs to be instantiated first before you can access any of the methods. I.e. you need to create a local variable of TYPE ref to the class.The following technical details of method CONVERT_DATE2TIMESTMP can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method CONVERT_DATE2TIMESTMP
.| Name | Type | Data Type | Description | Default Value |
| IS_LANE | Importing | TYPE /SCTM/S_LANE | Start and destination location of lane | |
| IS_VAL_PERIOD_D | Importing | TYPE /SCTM/S_VAL_PERIOD_D | Validity Period on User Interface | |
| ES_VAL_PERIOD | Exporting | TYPE /SCMB/S_VAL_PERIOD | Validity Period in time zone of destination location | |
| ES_VAL_PERIOD_CTP | Exporting | TYPE /SCMB/S_VAL_PERIOD | Validity Period in time zone of start location |
Exceptions of Method CONVERT_DATE2TIMESTMP
/SCTM/CX_UI_RG_CODE - Routing Guide UI: Program ErrorExample ABAP coding
DATA: lo_class TYPE REF TO /SCTM/CL_SP.
DATA: lv_ES_VAL_PERIOD TYPE /SCMB/S_VAL_PERIOD,
lv_ES_VAL_PERIOD_CTP TYPE /SCMB/S_VAL_PERIOD,
lv_IS_LANE TYPE /SCTM/S_LANE,
lv_IS_VAL_PERIOD_D TYPE /SCTM/S_VAL_PERIOD_D,
lv_other TYPE c.
CALL METHOD lo_class=>CONVERT_DATE2TIMESTMP(
EXPORTING
IS_LANE = lv_IS_LANE
IS_VAL_PERIOD_D = lv_IS_VAL_PERIOD_D
IMPORTING
ES_VAL_PERIOD = lv_ES_VAL_PERIOD
ES_VAL_PERIOD_CTP = lv_ES_VAL_PERIOD_CTP ).
Links to Related Class(s)
/SCTM/CL...Full list of available SAP object classes
Search for further information about these or an SAP related objects