ADD_TIMESTAMP_TO_SELECTION SAP Method Add Timestamp to Selection
Below is documentation, parameters and attributes of ABAP Method ADD_TIMESTAMP_TO_SELECTION 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 ADD_TIMESTAMP_TO_SELECTION can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method ADD_TIMESTAMP_TO_SELECTION
.| Name | Type | Data Type | Description | Default Value |
| IS_DATTIM_FR | Importing | TYPE /SCTM/S_DATE_TIME | Structure for Date and Time | |
| IS_DATTIM_TO | Importing | TYPE /SCTM/S_DATE_TIME | Structure for Date and Time | |
| IV_FIELDNAME | Importing | TYPE NAME_KOMP | Component Name | |
| CT_SELECTIONS | Changing | TYPE /SCMB/T_SP_SELECTION | Selection Conditions for Queries to Aspects |
Exceptions of Method ADD_TIMESTAMP_TO_SELECTION
This method does not have any exceptionsExample ABAP coding
DATA: lo_class TYPE REF TO /SCTM/CL_SP.
DATA: lv_CT_SELECTIONS TYPE /SCMB/T_SP_SELECTION,
lv_IS_DATTIM_FR TYPE /SCTM/S_DATE_TIME,
lv_IS_DATTIM_TO TYPE /SCTM/S_DATE_TIME,
lv_IV_FIELDNAME TYPE NAME_KOMP,
lv_other TYPE c.
CALL METHOD lo_class=>ADD_TIMESTAMP_TO_SELECTION(
EXPORTING
IS_DATTIM_FR = lv_IS_DATTIM_FR
IS_DATTIM_TO = lv_IS_DATTIM_TO
IV_FIELDNAME = lv_IV_FIELDNAME
CHANGING
CT_SELECTIONS = lv_CT_SELECTIONS ).
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