SAP ENQUEUE_E_OIURV_TCD Function Module for Request lock for object E_OIURV_TCD
ENQUEUE_E_OIURV_TCD is a standard enqueue e oiurv tcd SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Request lock for object E_OIURV_TCD 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 enqueue e oiurv tcd FM, simply by entering the name ENQUEUE_E_OIURV_TCD into the relevant SAP transaction such as SE37 or SE38.
Function Group: /1BCDWBEN/OEN0002
Program Name: /1BCDWBEN/SAPLOEN0002
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function ENQUEUE_E_OIURV_TCD 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 'ENQUEUE_E_OIURV_TCD'"Request lock for object E_OIURV_TCD.
EXPORTING
* MODE_OIURV_TCD = 'E' "Lock mode for table OIURV_TCD
* X_LAND1 = ' ' "Fill argument 02 with initial value?
* X_PRI_GEO_LOC = ' ' "Fill argument 03 with initial value?
* X_MAJPD_CD = ' ' "Fill argument 04 with initial value?
* X_MATNR = ' ' "Fill argument 05 with initial value?
* X_VL_TYPE_CD = ' ' "Fill argument 06 with initial value?
* X_SEVT_TAX_TY = ' ' "Fill argument 07 with initial value?
* X_EFF_FROM_DT = ' ' "Fill argument 08 with initial value?
* _SCOPE = '2' "
* _WAIT = ' ' "
* _COLLECT = ' ' "Initially only collect lock
* MANDT = SY-MANDT "01th enqueue argument
* LAND1 = "02th enqueue argument
* PRI_GEO_LOC = "03th enqueue argument
* MAJPD_CD = "04th enqueue argument
* MATNR = "05th enqueue argument
* VL_TYPE_CD = "06th enqueue argument
* SEVT_TAX_TY = "07th enqueue argument
* EFF_FROM_DT = "08th enqueue argument
EXCEPTIONS
FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2
IMPORTING Parameters details for ENQUEUE_E_OIURV_TCD
MODE_OIURV_TCD - Lock mode for table OIURV_TCD
Data type: ENQMODEDefault: 'E'
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_LAND1 - Fill argument 02 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_PRI_GEO_LOC - Fill argument 03 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_MAJPD_CD - Fill argument 04 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_MATNR - Fill argument 05 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_VL_TYPE_CD - Fill argument 06 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_SEVT_TAX_TY - Fill argument 07 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_EFF_FROM_DT - Fill argument 08 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
_SCOPE -
Data type:Default: '2'
Optional: Yes
Call by Reference: No ( called with pass by value option)
_WAIT -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
_COLLECT - Initially only collect lock
Data type: DDENQCOLLDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
MANDT - 01th enqueue argument
Data type: OIURV_TCD-MANDTDefault: SY-MANDT
Optional: Yes
Call by Reference: No ( called with pass by value option)
LAND1 - 02th enqueue argument
Data type: OIURV_TCD-LAND1Optional: Yes
Call by Reference: No ( called with pass by value option)
PRI_GEO_LOC - 03th enqueue argument
Data type: OIURV_TCD-PRI_GEO_LOCOptional: Yes
Call by Reference: No ( called with pass by value option)
MAJPD_CD - 04th enqueue argument
Data type: OIURV_TCD-MAJPD_CDOptional: Yes
Call by Reference: No ( called with pass by value option)
MATNR - 05th enqueue argument
Data type: OIURV_TCD-MATNROptional: Yes
Call by Reference: No ( called with pass by value option)
VL_TYPE_CD - 06th enqueue argument
Data type: OIURV_TCD-VL_TYPE_CDOptional: Yes
Call by Reference: No ( called with pass by value option)
SEVT_TAX_TY - 07th enqueue argument
Data type: OIURV_TCD-SEVT_TAX_TYOptional: Yes
Call by Reference: No ( called with pass by value option)
EFF_FROM_DT - 08th enqueue argument
Data type: OIURV_TCD-EFF_FROM_DTOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
FOREIGN_LOCK - Object already locked
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
SYSTEM_FAILURE - Internal error from enqueue server
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for ENQUEUE_E_OIURV_TCD 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_foreign_lock | TYPE STRING, " | |||
| lv_mode_oiurv_tcd | TYPE ENQMODE, " 'E' | |||
| lv_x_land1 | TYPE ENQMODE, " SPACE | |||
| lv_x_pri_geo_loc | TYPE ENQMODE, " SPACE | |||
| lv_x_majpd_cd | TYPE ENQMODE, " SPACE | |||
| lv_x_matnr | TYPE ENQMODE, " SPACE | |||
| lv_x_vl_type_cd | TYPE ENQMODE, " SPACE | |||
| lv_x_sevt_tax_ty | TYPE ENQMODE, " SPACE | |||
| lv_x_eff_from_dt | TYPE ENQMODE, " SPACE | |||
| lv__scope | TYPE ENQMODE, " '2' | |||
| lv__wait | TYPE ENQMODE, " SPACE | |||
| lv__collect | TYPE DDENQCOLL, " ' ' | |||
| lv_mandt | TYPE OIURV_TCD-MANDT, " SY-MANDT | |||
| lv_system_failure | TYPE OIURV_TCD, " | |||
| lv_land1 | TYPE OIURV_TCD-LAND1, " | |||
| lv_pri_geo_loc | TYPE OIURV_TCD-PRI_GEO_LOC, " | |||
| lv_majpd_cd | TYPE OIURV_TCD-MAJPD_CD, " | |||
| lv_matnr | TYPE OIURV_TCD-MATNR, " | |||
| lv_vl_type_cd | TYPE OIURV_TCD-VL_TYPE_CD, " | |||
| lv_sevt_tax_ty | TYPE OIURV_TCD-SEVT_TAX_TY, " | |||
| lv_eff_from_dt | TYPE OIURV_TCD-EFF_FROM_DT. " |
|   CALL FUNCTION 'ENQUEUE_E_OIURV_TCD' "Request lock for object E_OIURV_TCD |
| EXPORTING | ||
| MODE_OIURV_TCD | = lv_mode_oiurv_tcd | |
| X_LAND1 | = lv_x_land1 | |
| X_PRI_GEO_LOC | = lv_x_pri_geo_loc | |
| X_MAJPD_CD | = lv_x_majpd_cd | |
| X_MATNR | = lv_x_matnr | |
| X_VL_TYPE_CD | = lv_x_vl_type_cd | |
| X_SEVT_TAX_TY | = lv_x_sevt_tax_ty | |
| X_EFF_FROM_DT | = lv_x_eff_from_dt | |
| _SCOPE | = lv__scope | |
| _WAIT | = lv__wait | |
| _COLLECT | = lv__collect | |
| MANDT | = lv_mandt | |
| LAND1 | = lv_land1 | |
| PRI_GEO_LOC | = lv_pri_geo_loc | |
| MAJPD_CD | = lv_majpd_cd | |
| MATNR | = lv_matnr | |
| VL_TYPE_CD | = lv_vl_type_cd | |
| SEVT_TAX_TY | = lv_sevt_tax_ty | |
| EFF_FROM_DT | = lv_eff_from_dt | |
| EXCEPTIONS | ||
| FOREIGN_LOCK = 1 | ||
| SYSTEM_FAILURE = 2 | ||
| . " ENQUEUE_E_OIURV_TCD | ||
ABAP code using 7.40 inline data declarations to call FM ENQUEUE_E_OIURV_TCD
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_mode_oiurv_tcd) | = 'E'. | |||
| DATA(ld_x_land1) | = ' '. | |||
| DATA(ld_x_pri_geo_loc) | = ' '. | |||
| DATA(ld_x_majpd_cd) | = ' '. | |||
| DATA(ld_x_matnr) | = ' '. | |||
| DATA(ld_x_vl_type_cd) | = ' '. | |||
| DATA(ld_x_sevt_tax_ty) | = ' '. | |||
| DATA(ld_x_eff_from_dt) | = ' '. | |||
| DATA(ld__scope) | = '2'. | |||
| DATA(ld__wait) | = ' '. | |||
| DATA(ld__collect) | = ' '. | |||
| "SELECT single MANDT FROM OIURV_TCD INTO @DATA(ld_mandt). | ||||
| DATA(ld_mandt) | = SY-MANDT. | |||
| "SELECT single LAND1 FROM OIURV_TCD INTO @DATA(ld_land1). | ||||
| "SELECT single PRI_GEO_LOC FROM OIURV_TCD INTO @DATA(ld_pri_geo_loc). | ||||
| "SELECT single MAJPD_CD FROM OIURV_TCD INTO @DATA(ld_majpd_cd). | ||||
| "SELECT single MATNR FROM OIURV_TCD INTO @DATA(ld_matnr). | ||||
| "SELECT single VL_TYPE_CD FROM OIURV_TCD INTO @DATA(ld_vl_type_cd). | ||||
| "SELECT single SEVT_TAX_TY FROM OIURV_TCD INTO @DATA(ld_sevt_tax_ty). | ||||
| "SELECT single EFF_FROM_DT FROM OIURV_TCD INTO @DATA(ld_eff_from_dt). | ||||
Search for further information about these or an SAP related objects