SAP /SCMB/TDM_TSDM_TS_LOCK Function Module for TSDM: Time series locking
/SCMB/TDM_TSDM_TS_LOCK is a standard /scmb/tdm tsdm ts lock SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for TSDM: Time series locking 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/tdm tsdm ts lock FM, simply by entering the name /SCMB/TDM_TSDM_TS_LOCK into the relevant SAP transaction such as SE37 or SE38.
Function Group: /SCMB/TDM_TSDM
Program Name: /SCMB/SAPLTDM_TSDM
Main Program: /SCMB/SAPLTDM_TSDM
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function /SCMB/TDM_TSDM_TS_LOCK 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/TDM_TSDM_TS_LOCK'"TSDM: Time series locking.
EXPORTING
* IV_LOCK_MODE = 'E' "Lock mode
* IV_SCOPE = '2' "Control lock behavior when calling the update task
* IT_TSLOCK = "TSDM: Locking key table
* IT_TSLOCK_CHOBJ = "TSDM: Locking key table
CHANGING
* CV_MSGTY = "Message Type
* CT_RETURN = "Table with BAPI Return Information
IMPORTING Parameters details for /SCMB/TDM_TSDM_TS_LOCK
IV_LOCK_MODE - Lock mode
Data type: ENQMODEDefault: 'E'
Optional: Yes
Call by Reference: Yes
IV_SCOPE - Control lock behavior when calling the update task
Data type: DDENQSCOPEDefault: '2'
Optional: Yes
Call by Reference: Yes
IT_TSLOCK - TSDM: Locking key table
Data type: /SCMB/TSDM_LOCK_TABOptional: Yes
Call by Reference: Yes
IT_TSLOCK_CHOBJ - TSDM: Locking key table
Data type: /SCMB/TSDM_LOCK_CHOBJ_TABOptional: Yes
Call by Reference: Yes
CHANGING Parameters details for /SCMB/TDM_TSDM_TS_LOCK
CV_MSGTY - Message Type
Data type: MSGTYOptional: Yes
Call by Reference: Yes
CT_RETURN - Table with BAPI Return Information
Data type: BAPIRETTABOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for /SCMB/TDM_TSDM_TS_LOCK 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_cv_msgty | TYPE MSGTY, " | |||
| lv_iv_lock_mode | TYPE ENQMODE, " 'E' | |||
| lv_iv_scope | TYPE DDENQSCOPE, " '2' | |||
| lv_ct_return | TYPE BAPIRETTAB, " | |||
| lv_it_tslock | TYPE /SCMB/TSDM_LOCK_TAB, " | |||
| lv_it_tslock_chobj | TYPE /SCMB/TSDM_LOCK_CHOBJ_TAB. " |
|   CALL FUNCTION '/SCMB/TDM_TSDM_TS_LOCK' "TSDM: Time series locking |
| EXPORTING | ||
| IV_LOCK_MODE | = lv_iv_lock_mode | |
| IV_SCOPE | = lv_iv_scope | |
| IT_TSLOCK | = lv_it_tslock | |
| IT_TSLOCK_CHOBJ | = lv_it_tslock_chobj | |
| CHANGING | ||
| CV_MSGTY | = lv_cv_msgty | |
| CT_RETURN | = lv_ct_return | |
| . " /SCMB/TDM_TSDM_TS_LOCK | ||
ABAP code using 7.40 inline data declarations to call FM /SCMB/TDM_TSDM_TS_LOCK
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.| DATA(ld_iv_lock_mode) | = 'E'. | |||
| DATA(ld_iv_scope) | = '2'. | |||
Search for further information about these or an SAP related objects