TS_GET_HIST SAP Method TDL: Read Time Series History (Snapshot)
Below is documentation, parameters and attributes of ABAP Method TS_GET_HIST within SAP class /SCMB/IF_TDL_TIMESERIES. 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_TDL_TIMESERIES 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 TS_GET_HIST can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method TS_GET_HIST
.| Name | Type | Data Type | Description | Default Value |
| IS_CTRL | Importing | TYPE /SCMB/TDL_TS_HISTVIEWREAD_CTRL | TDL: Control Structure for Reading Past Time Series | |
| IT_LOC_TZONE | Importing | TYPE /SCMB/TDL_LOC_TZONE_TAB | TDL: Location Time Zone Table | |
| IT_MATIDLOCID | Importing | TYPE /SCMB/TSDM_MATIDLOCID_TAB | TDL: Location Product Table | |
| IT_SELECTION | Importing | TYPE /SCMB/TDL_PRMVAL_SEL_TAB | Parameter Selection (Intervals) | |
| IT_SEM_CHARS | Importing | TYPE /SCMB/TDL_TS_SEM_TAB | TDL: Time Series Characteristics Semantics | |
| IT_SEM_KEYFS | Importing | TYPE /SCMB/TDL_TS_SEM_TAB | TDL: Time Series Key Figure Semantics | |
| ET_TS | Exporting | TYPE /SCMB/TDL_T_TS_TAB | TDL: Time Series | |
| CT_PERIOD | Changing | TYPE /SCMB/TDL_TS_HISTPERIOD_TAB | TDL: Time Series Period Structure | |
| CT_RETURN | Changing | TYPE BAPIRETTAB | Table with BAPI Return Information | |
| CV_MSGTY | Changing | TYPE MSGTY | Message Type |
Exceptions of Method TS_GET_HIST
/SCMB/CX_TDL_DAO - TDL: Error in the Data Access ClassesExample ABAP coding
DATA: lo_class TYPE REF TO /SCMB/IF_TDL_TIMESERIES.
DATA: lv_CT_PERIOD TYPE /SCMB/TDL_TS_HISTPERIOD_TAB,
lv_CT_RETURN TYPE BAPIRETTAB,
lv_CV_MSGTY TYPE MSGTY,
lv_ET_TS TYPE /SCMB/TDL_T_TS_TAB,
lv_IS_CTRL TYPE /SCMB/TDL_TS_HISTVIEWREAD_CTRL,
lv_IT_LOC_TZONE TYPE /SCMB/TDL_LOC_TZONE_TAB,
lv_IT_MATIDLOCID TYPE /SCMB/TSDM_MATIDLOCID_TAB,
lv_IT_SELECTION TYPE /SCMB/TDL_PRMVAL_SEL_TAB,
lv_IT_SEM_CHARS TYPE /SCMB/TDL_TS_SEM_TAB,
lv_IT_SEM_KEYFS TYPE /SCMB/TDL_TS_SEM_TAB,
lv_other TYPE c.
CALL METHOD lo_class=>TS_GET_HIST(
EXPORTING
IS_CTRL = lv_IS_CTRL
IT_LOC_TZONE = lv_IT_LOC_TZONE
IT_MATIDLOCID = lv_IT_MATIDLOCID
IT_SELECTION = lv_IT_SELECTION
IT_SEM_CHARS = lv_IT_SEM_CHARS
IT_SEM_KEYFS = lv_IT_SEM_KEYFS
IMPORTING
ET_TS = lv_ET_TS
CHANGING
CT_PERIOD = lv_CT_PERIOD
CT_RETURN = lv_CT_RETURN
CV_MSGTY = lv_CV_MSGTY ).
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