TIMESTAMP_GET_PERIOD SAP Method Determines Period Belonging to a Time Stamp









Below is documentation, parameters and attributes of ABAP Method TIMESTAMP_GET_PERIOD within SAP class /SCMB/IF_EX_SPLR_PERIODCALC. 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 /SCMB/IF_EX_SPLR_PERIODCALC 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 TIMESTAMP_GET_PERIOD can also be found below:

  • Importing parameters
  • Exporting parameters
  • Changing parameters
  • Returning parameters
  • Exceptions
  • Coding Examples


Parameters of Method TIMESTAMP_GET_PERIOD

.

NameTypeData TypeDescriptionDefault Value
IV_PERIOD_TYPEImportingTYPE
/SCMB/SPLR_TYPE_REF_PERI
Type of Reporting Period
IV_PERIOD_VARIANTImportingTYPE
/SCMB/SPLR_TYPE_REF_PERV
Period Variant of Reporting Period
IV_TIMESTAMPImportingTYPE
TIMESTAMP
Time Stamp At Which Reporting Period Is Defined
IV_TIMESTAMP_TIMEZONEImportingTYPE
/SCMB/SPLR_TYPE_REF_TZON
Time Zone of Reporting Period
CV_PERIOD_IDChangingTYPE
/SCMB/SPLR_DISP_REF
Reporting Period



Exceptions of Method TIMESTAMP_GET_PERIOD

This method does not have any exceptions

Example ABAP coding


DATA: lo_class TYPE REF TO /SCMB/IF_EX_SPLR_PERIODCALC.
DATA: lv_CV_PERIOD_ID TYPE /SCMB/SPLR_DISP_REF,
lv_IV_PERIOD_TYPE TYPE /SCMB/SPLR_TYPE_REF_PERI,
lv_IV_PERIOD_VARIANT TYPE /SCMB/SPLR_TYPE_REF_PERV,
lv_IV_TIMESTAMP TYPE TIMESTAMP,
lv_IV_TIMESTAMP_TIMEZONE TYPE /SCMB/SPLR_TYPE_REF_TZON,
lv_other TYPE c.

CALL METHOD lo_class=>TIMESTAMP_GET_PERIOD(
EXPORTING
IV_PERIOD_TYPE = lv_IV_PERIOD_TYPE
IV_PERIOD_VARIANT = lv_IV_PERIOD_VARIANT
IV_TIMESTAMP = lv_IV_TIMESTAMP
IV_TIMESTAMP_TIMEZONE = lv_IV_TIMESTAMP_TIMEZONE
CHANGING
CV_PERIOD_ID = lv_CV_PERIOD_ID ).

Links to Related Class(s)

/SCMB/IF...
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!