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

.

NameTypeData TypeDescriptionDefault Value
IS_DATTIM_FRImportingTYPE
/SCTM/S_DATE_TIME
Structure for Date and Time
IS_DATTIM_TOImportingTYPE
/SCTM/S_DATE_TIME
Structure for Date and Time
IV_FIELDNAMEImportingTYPE
NAME_KOMP
Component Name
CT_SELECTIONSChangingTYPE
/SCMB/T_SP_SELECTION
Selection Conditions for Queries to Aspects



Exceptions of Method ADD_TIMESTAMP_TO_SELECTION

This method does not have any exceptions

Example 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



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!