ENQUEUE_E_CMBASELINE2 is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.
See here to view full function module documentation and code listing, simply by entering the name ENQUEUE_E_CMBASELINE2 into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
DWBEN/SAPLCEN0005
Released Date:
Not Released
Processing type: Remote-Enabled
CALL FUNCTION 'ENQUEUE_E_CMBASELINE2' "Request lock for object E_CMBASELINE2
* EXPORTING
* mode_tcm_baseline = 'E' " enqmode Lock mode for table TCM_BASELINE
* mode_tcm_baselinet = 'E' " enqmode Lock mode for table TCM_BASELINET
* client = SY-MANDT " tcm_baseline-client 01th enqueue argument
* folder_id = " tcm_baseline-folder_id 02th enqueue argument
* product_id = " tcm_baseline-product_id 03th enqueue argument
* lc_phase = " tcm_baseline-lc_phase 04th enqueue argument
* baseline_id = " tcm_baseline-baseline_id 05th enqueue argument
* x_folder_id = SPACE " ddenqxpar Fill argument 02 with initial value?
* x_product_id = SPACE " ddenqxpar Fill argument 03 with initial value?
* x_lc_phase = SPACE " ddenqxpar Fill argument 04 with initial value?
* x_baseline_id = SPACE " ddenqxpar Fill argument 05 with initial value?
* _scope = '2' " ddenqscope
* _wait = SPACE " ddenqwait
* _collect = ' ' " ddenqcoll Initially only collect lock
EXCEPTIONS
FOREIGN_LOCK = 1 " Object already locked
SYSTEM_FAILURE = 2 " Internal error from enqueue server
. " ENQUEUE_E_CMBASELINE2
The ABAP code below is a full code listing to execute function module ENQUEUE_E_CMBASELINE2 including all data declarations. The code uses 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 original method of declaring data variables up front. 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).
DATA(ld_mode_tcm_baseline) = 'Check type of data required'.
DATA(ld_mode_tcm_baselinet) = 'Check type of data required'.
SELECT single CLIENT
FROM TCM_BASELINE
INTO @DATA(ld_client).
SELECT single FOLDER_ID
FROM TCM_BASELINE
INTO @DATA(ld_folder_id).
SELECT single PRODUCT_ID
FROM TCM_BASELINE
INTO @DATA(ld_product_id).
SELECT single LC_PHASE
FROM TCM_BASELINE
INTO @DATA(ld_lc_phase).
SELECT single BASELINE_ID
FROM TCM_BASELINE
INTO @DATA(ld_baseline_id).
DATA(ld_x_folder_id) = 'Check type of data required'.
DATA(ld_x_product_id) = 'Check type of data required'.
DATA(ld_x_lc_phase) = 'Check type of data required'.
DATA(ld_x_baseline_id) = 'Check type of data required'.
DATA(ld__scope) = 'Check type of data required'.
DATA(ld__wait) = 'Check type of data required'.
DATA(ld__collect) = 'Check type of data required'. . CALL FUNCTION 'ENQUEUE_E_CMBASELINE2' * EXPORTING * mode_tcm_baseline = ld_mode_tcm_baseline * mode_tcm_baselinet = ld_mode_tcm_baselinet * client = ld_client * folder_id = ld_folder_id * product_id = ld_product_id * lc_phase = ld_lc_phase * baseline_id = ld_baseline_id * x_folder_id = ld_x_folder_id * x_product_id = ld_x_product_id * x_lc_phase = ld_x_lc_phase * x_baseline_id = ld_x_baseline_id * _scope = ld__scope * _wait = ld__wait * _collect = ld__collect EXCEPTIONS FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2 . " ENQUEUE_E_CMBASELINE2
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ENDIF.
The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.
DATA:
| ld_mode_tcm_baseline | TYPE ENQMODE , |
| ld_mode_tcm_baselinet | TYPE ENQMODE , |
| ld_client | TYPE TCM_BASELINE-CLIENT , |
| ld_folder_id | TYPE TCM_BASELINE-FOLDER_ID , |
| ld_product_id | TYPE TCM_BASELINE-PRODUCT_ID , |
| ld_lc_phase | TYPE TCM_BASELINE-LC_PHASE , |
| ld_baseline_id | TYPE TCM_BASELINE-BASELINE_ID , |
| ld_x_folder_id | TYPE DDENQXPAR , |
| ld_x_product_id | TYPE DDENQXPAR , |
| ld_x_lc_phase | TYPE DDENQXPAR , |
| ld_x_baseline_id | TYPE DDENQXPAR , |
| ld__scope | TYPE DDENQSCOPE , |
| ld__wait | TYPE DDENQWAIT , |
| ld__collect | TYPE DDENQCOLL . |
Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name ENQUEUE_E_CMBASELINE2 or its description.
ENQUEUE_E_CMBASELINE2 - Request lock for object E_CMBASELINE2 ENQUEUE_E_CMBASELINE - Request lock for object E_CMBASELINE ENQUEUE_E_CLS_RUN - Request lock for object E_CLS_RUN ENQUEUE_E_CLS_ASSIGNMENT - Request lock for object E_CLS_ASSIGNMENT ENQUEUE_E_CLIENT - Request lock for object E_CLIENT ENQUEUE_E_CLASTOOL - Request lock for object E_CLASTOOL