SAP /SCMB/TSDM_TSTP_READ Function Module for Time series type data read access
/SCMB/TSDM_TSTP_READ is a standard /scmb/tsdm tstp read SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Time series type data read access processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for /scmb/tsdm tstp read FM, simply by entering the name /SCMB/TSDM_TSTP_READ into the relevant SAP transaction such as SE37 or SE38.
Function Group: /SCMB/TDM_TSDM_META
Program Name: /SCMB/SAPLTDM_TSDM_META
Main Program: /SCMB/SAPLTDM_TSDM_META
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function /SCMB/TSDM_TSTP_READ pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION '/SCMB/TSDM_TSTP_READ'"Time series type data read access.
EXPORTING
IV_TSTP = "Time series type
* IV_TIMEPERIODFLG = "Read time periods
* IV_TSTFR = "TSDM: Time stamp from
* IV_TSTTO = "TSDM: Time stamp to
IMPORTING
ES_TSTYPE = "TSDM: Time series type
ES_TIMEPROFILE = "Time profile
ET_PERIOD = "Time periods
ET_PRM = "Parameter
ET_TSDTYPEKEY = "TSDM: Time Series Data Type Keys
ET_TSDTYPECH = "TSDM: Characteristics for Time Series Data Type Planning Obj
ET_TSDAREA = "Time series data area (based on /SCA/TSDAREA)
ET_TSDAREASC = "Time series data area scope
ET_TSDTYPEDEF = "Time series data type definition (based on /SCA/TSDTYPEDEF)
EXCEPTIONS
TSTP_NOT_VALID = 1 TSDM_NOT_FOUND = 2
IMPORTING Parameters details for /SCMB/TSDM_TSTP_READ
IV_TSTP - Time series type
Data type: /SCMB/TSTPOptional: No
Call by Reference: Yes
IV_TIMEPERIODFLG - Read time periods
Data type: XFELDOptional: Yes
Call by Reference: Yes
IV_TSTFR - TSDM: Time stamp from
Data type: /SCMB/TSDM_TSTFROptional: Yes
Call by Reference: Yes
IV_TSTTO - TSDM: Time stamp to
Data type: /SCMB/TSDM_TSTTOOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for /SCMB/TSDM_TSTP_READ
ES_TSTYPE - TSDM: Time series type
Data type: /SCMB/TSTYPE_STROptional: No
Call by Reference: Yes
ES_TIMEPROFILE - Time profile
Data type: /SCMB/TIMEPROFILE_STROptional: No
Call by Reference: Yes
ET_PERIOD - Time periods
Data type: /SCMB/TSDM_PERIOD_TABOptional: No
Call by Reference: Yes
ET_PRM - Parameter
Data type: /SCMB/TSDM_PRM_TABOptional: No
Call by Reference: Yes
ET_TSDTYPEKEY - TSDM: Time Series Data Type Keys
Data type: /SCMB/TSDM_TSDTYPEKEY_TABOptional: No
Call by Reference: Yes
ET_TSDTYPECH - TSDM: Characteristics for Time Series Data Type Planning Obj
Data type: /SCMB/TSDM_TSDTYPECH_TABOptional: No
Call by Reference: Yes
ET_TSDAREA - Time series data area (based on /SCA/TSDAREA)
Data type: /SCMB/TSDM_TSDAREA_TABOptional: No
Call by Reference: Yes
ET_TSDAREASC - Time series data area scope
Data type: /SCMB/TSDM_TSDAREASC_GET_TABOptional: No
Call by Reference: Yes
ET_TSDTYPEDEF - Time series data type definition (based on /SCA/TSDTYPEDEF)
Data type: /SCA/TSDTYPEDEF_TABOptional: No
Call by Reference: Yes
EXCEPTIONS details
TSTP_NOT_VALID - Time series type not valid
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TSDM_NOT_FOUND - TSDM not found
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for /SCMB/TSDM_TSTP_READ Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lv_iv_tstp | TYPE /SCMB/TSTP, " | |||
| lv_es_tstype | TYPE /SCMB/TSTYPE_STR, " | |||
| lv_tstp_not_valid | TYPE /SCMB/TSTYPE_STR, " | |||
| lv_es_timeprofile | TYPE /SCMB/TIMEPROFILE_STR, " | |||
| lv_tsdm_not_found | TYPE /SCMB/TIMEPROFILE_STR, " | |||
| lv_iv_timeperiodflg | TYPE XFELD, " | |||
| lv_iv_tstfr | TYPE /SCMB/TSDM_TSTFR, " | |||
| lv_et_period | TYPE /SCMB/TSDM_PERIOD_TAB, " | |||
| lv_et_prm | TYPE /SCMB/TSDM_PRM_TAB, " | |||
| lv_iv_tstto | TYPE /SCMB/TSDM_TSTTO, " | |||
| lv_et_tsdtypekey | TYPE /SCMB/TSDM_TSDTYPEKEY_TAB, " | |||
| lv_et_tsdtypech | TYPE /SCMB/TSDM_TSDTYPECH_TAB, " | |||
| lv_et_tsdarea | TYPE /SCMB/TSDM_TSDAREA_TAB, " | |||
| lv_et_tsdareasc | TYPE /SCMB/TSDM_TSDAREASC_GET_TAB, " | |||
| lv_et_tsdtypedef | TYPE /SCA/TSDTYPEDEF_TAB. " |
|   CALL FUNCTION '/SCMB/TSDM_TSTP_READ' "Time series type data read access |
| EXPORTING | ||
| IV_TSTP | = lv_iv_tstp | |
| IV_TIMEPERIODFLG | = lv_iv_timeperiodflg | |
| IV_TSTFR | = lv_iv_tstfr | |
| IV_TSTTO | = lv_iv_tstto | |
| IMPORTING | ||
| ES_TSTYPE | = lv_es_tstype | |
| ES_TIMEPROFILE | = lv_es_timeprofile | |
| ET_PERIOD | = lv_et_period | |
| ET_PRM | = lv_et_prm | |
| ET_TSDTYPEKEY | = lv_et_tsdtypekey | |
| ET_TSDTYPECH | = lv_et_tsdtypech | |
| ET_TSDAREA | = lv_et_tsdarea | |
| ET_TSDAREASC | = lv_et_tsdareasc | |
| ET_TSDTYPEDEF | = lv_et_tsdtypedef | |
| EXCEPTIONS | ||
| TSTP_NOT_VALID = 1 | ||
| TSDM_NOT_FOUND = 2 | ||
| . " /SCMB/TSDM_TSTP_READ | ||
ABAP code using 7.40 inline data declarations to call FM /SCMB/TSDM_TSTP_READ
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.Search for further information about these or an SAP related objects