SAP ENQUEUE_EMI_OBJECT Function Module for Request lock for object EMI_OBJECT









ENQUEUE_EMI_OBJECT is a standard enqueue emi object 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 EMI_OBJECT 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 emi object FM, simply by entering the name ENQUEUE_EMI_OBJECT into the relevant SAP transaction such as SE37 or SE38.

Function Group: /1BCDWBEN/EEN0003
Program Name: /1BCDWBEN/SAPLEEN0003
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function ENQUEUE_EMI_OBJECT 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_EMI_OBJECT'"Request lock for object EMI_OBJECT
EXPORTING
* MODE_TEMOB = 'X' "Lock mode for table TEMOB
* A_LEVEL = "03th enqueue argument
* A_NODE = "04th enqueue argument
* N_LEVEL = "05th enqueue argument
* N_NODE = "06th enqueue argument
* INPSTRUCT1 = "07th enqueue argument
* FIELD1 = "08th enqueue argument
* INPSTRUCT2 = "09th enqueue argument
* FIELD2 = "10th enqueue argument
* SPRAS = "11th enqueue argument
* INPSTRUCT3 = "12th enqueue argument
* MODE_TEMDB = 'X' "Lock mode for table TEMDB
* FIELD3 = "13th enqueue argument
* INPSTRUCT4 = "14th enqueue argument
* FIELD4 = "15th enqueue argument
* ZLNUM = "16th enqueue argument
* X_FIRMA = ' ' "Fill argument 01 with initial value?
* X_OBJECT = ' ' "Fill argument 02 with initial value?
* X_A_LEVEL = ' ' "Fill argument 03 with initial value?
* X_A_NODE = ' ' "Fill argument 04 with initial value?
* X_N_LEVEL = ' ' "Fill argument 05 with initial value?
* X_N_NODE = ' ' "Fill argument 06 with initial value?
* MODE_TEMRF = 'X' "Lock mode for table TEMRF
* X_INPSTRUCT1 = ' ' "Fill argument 07 with initial value?
* X_FIELD1 = ' ' "Fill argument 08 with initial value?
* X_INPSTRUCT2 = ' ' "Fill argument 09 with initial value?
* X_FIELD2 = ' ' "Fill argument 10 with initial value?
* X_SPRAS = ' ' "Fill argument 11 with initial value?
* X_INPSTRUCT3 = ' ' "Fill argument 12 with initial value?
* X_FIELD3 = ' ' "Fill argument 13 with initial value?
* X_INPSTRUCT4 = ' ' "Fill argument 14 with initial value?
* X_FIELD4 = ' ' "Fill argument 15 with initial value?
* X_ZLNUM = ' ' "Fill argument 16 with initial value?
* MODE_TEMRU = 'X' "Lock mode for table TEMRU
* _SCOPE = '2' "
* _WAIT = ' ' "
* _COLLECT = ' ' "Initially only collect lock
* MODE_TEMOBT = 'X' "Lock mode for table TEMOBT
* MODE_TEMRE = 'X' "Lock mode for table TEMRE
* MODE_TEMRT = 'X' "Lock mode for table TEMRT
* FIRMA = "01th enqueue argument
* OBJECT = "02th enqueue argument

EXCEPTIONS
FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2
.



IMPORTING Parameters details for ENQUEUE_EMI_OBJECT

MODE_TEMOB - Lock mode for table TEMOB

Data type: ENQMODE
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

A_LEVEL - 03th enqueue argument

Data type: TEMDB-A_LEVEL
Optional: Yes
Call by Reference: No ( called with pass by value option)

A_NODE - 04th enqueue argument

Data type: TEMDB-A_NODE
Optional: Yes
Call by Reference: No ( called with pass by value option)

N_LEVEL - 05th enqueue argument

Data type: TEMDB-N_LEVEL
Optional: Yes
Call by Reference: No ( called with pass by value option)

N_NODE - 06th enqueue argument

Data type: TEMDB-N_NODE
Optional: Yes
Call by Reference: No ( called with pass by value option)

INPSTRUCT1 - 07th enqueue argument

Data type: TEMRF-INPSTRUCT
Optional: Yes
Call by Reference: No ( called with pass by value option)

FIELD1 - 08th enqueue argument

Data type: TEMRF-FIELD
Optional: Yes
Call by Reference: No ( called with pass by value option)

INPSTRUCT2 - 09th enqueue argument

Data type: TEMRU-INPSTRUCT
Optional: Yes
Call by Reference: No ( called with pass by value option)

FIELD2 - 10th enqueue argument

Data type: TEMRU-FIELD
Optional: Yes
Call by Reference: No ( called with pass by value option)

SPRAS - 11th enqueue argument

Data type: TEMOBT-SPRAS
Optional: Yes
Call by Reference: No ( called with pass by value option)

INPSTRUCT3 - 12th enqueue argument

Data type: TEMRE-INPSTRUCT
Optional: Yes
Call by Reference: No ( called with pass by value option)

MODE_TEMDB - Lock mode for table TEMDB

Data type: ENQMODE
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

FIELD3 - 13th enqueue argument

Data type: TEMRE-FIELD
Optional: Yes
Call by Reference: No ( called with pass by value option)

INPSTRUCT4 - 14th enqueue argument

Data type: TEMRT-INPSTRUCT
Optional: Yes
Call by Reference: No ( called with pass by value option)

FIELD4 - 15th enqueue argument

Data type: TEMRT-FIELD
Optional: Yes
Call by Reference: No ( called with pass by value option)

ZLNUM - 16th enqueue argument

Data type: TEMRT-ZLNUM
Optional: Yes
Call by Reference: No ( called with pass by value option)

X_FIRMA - Fill argument 01 with initial value?

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

X_OBJECT - Fill argument 02 with initial value?

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

X_A_LEVEL - Fill argument 03 with initial value?

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

X_A_NODE - Fill argument 04 with initial value?

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

X_N_LEVEL - Fill argument 05 with initial value?

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

X_N_NODE - Fill argument 06 with initial value?

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

MODE_TEMRF - Lock mode for table TEMRF

Data type: ENQMODE
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

X_INPSTRUCT1 - Fill argument 07 with initial value?

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

X_FIELD1 - Fill argument 08 with initial value?

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

X_INPSTRUCT2 - Fill argument 09 with initial value?

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

X_FIELD2 - Fill argument 10 with initial value?

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

X_SPRAS - Fill argument 11 with initial value?

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

X_INPSTRUCT3 - Fill argument 12 with initial value?

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

X_FIELD3 - Fill argument 13 with initial value?

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

X_INPSTRUCT4 - Fill argument 14 with initial value?

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

X_FIELD4 - Fill argument 15 with initial value?

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

X_ZLNUM - Fill argument 16 with initial value?

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

MODE_TEMRU - Lock mode for table TEMRU

Data type: ENQMODE
Default: 'X'
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: DDENQCOLL
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

MODE_TEMOBT - Lock mode for table TEMOBT

Data type: ENQMODE
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

MODE_TEMRE - Lock mode for table TEMRE

Data type: ENQMODE
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

MODE_TEMRT - Lock mode for table TEMRT

Data type: ENQMODE
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

FIRMA - 01th enqueue argument

Data type: TEMOB-FIRMA
Optional: Yes
Call by Reference: No ( called with pass by value option)

OBJECT - 02th enqueue argument

Data type: TEMOB-OBJECT
Optional: 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_EMI_OBJECT 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_mode_temob  TYPE ENQMODE, "   'X'
lv_foreign_lock  TYPE ENQMODE, "   
lv_a_level  TYPE TEMDB-A_LEVEL, "   
lv_a_node  TYPE TEMDB-A_NODE, "   
lv_n_level  TYPE TEMDB-N_LEVEL, "   
lv_n_node  TYPE TEMDB-N_NODE, "   
lv_inpstruct1  TYPE TEMRF-INPSTRUCT, "   
lv_field1  TYPE TEMRF-FIELD, "   
lv_inpstruct2  TYPE TEMRU-INPSTRUCT, "   
lv_field2  TYPE TEMRU-FIELD, "   
lv_spras  TYPE TEMOBT-SPRAS, "   
lv_inpstruct3  TYPE TEMRE-INPSTRUCT, "   
lv_mode_temdb  TYPE ENQMODE, "   'X'
lv_system_failure  TYPE ENQMODE, "   
lv_field3  TYPE TEMRE-FIELD, "   
lv_inpstruct4  TYPE TEMRT-INPSTRUCT, "   
lv_field4  TYPE TEMRT-FIELD, "   
lv_zlnum  TYPE TEMRT-ZLNUM, "   
lv_x_firma  TYPE TEMRT, "   SPACE
lv_x_object  TYPE TEMRT, "   SPACE
lv_x_a_level  TYPE TEMRT, "   SPACE
lv_x_a_node  TYPE TEMRT, "   SPACE
lv_x_n_level  TYPE TEMRT, "   SPACE
lv_x_n_node  TYPE TEMRT, "   SPACE
lv_mode_temrf  TYPE ENQMODE, "   'X'
lv_x_inpstruct1  TYPE ENQMODE, "   SPACE
lv_x_field1  TYPE ENQMODE, "   SPACE
lv_x_inpstruct2  TYPE ENQMODE, "   SPACE
lv_x_field2  TYPE ENQMODE, "   SPACE
lv_x_spras  TYPE ENQMODE, "   SPACE
lv_x_inpstruct3  TYPE ENQMODE, "   SPACE
lv_x_field3  TYPE ENQMODE, "   SPACE
lv_x_inpstruct4  TYPE ENQMODE, "   SPACE
lv_x_field4  TYPE ENQMODE, "   SPACE
lv_x_zlnum  TYPE ENQMODE, "   SPACE
lv_mode_temru  TYPE ENQMODE, "   'X'
lv__scope  TYPE ENQMODE, "   '2'
lv__wait  TYPE ENQMODE, "   SPACE
lv__collect  TYPE DDENQCOLL, "   ' '
lv_mode_temobt  TYPE ENQMODE, "   'X'
lv_mode_temre  TYPE ENQMODE, "   'X'
lv_mode_temrt  TYPE ENQMODE, "   'X'
lv_firma  TYPE TEMOB-FIRMA, "   
lv_object  TYPE TEMOB-OBJECT. "   

  CALL FUNCTION 'ENQUEUE_EMI_OBJECT'  "Request lock for object EMI_OBJECT
    EXPORTING
         MODE_TEMOB = lv_mode_temob
         A_LEVEL = lv_a_level
         A_NODE = lv_a_node
         N_LEVEL = lv_n_level
         N_NODE = lv_n_node
         INPSTRUCT1 = lv_inpstruct1
         FIELD1 = lv_field1
         INPSTRUCT2 = lv_inpstruct2
         FIELD2 = lv_field2
         SPRAS = lv_spras
         INPSTRUCT3 = lv_inpstruct3
         MODE_TEMDB = lv_mode_temdb
         FIELD3 = lv_field3
         INPSTRUCT4 = lv_inpstruct4
         FIELD4 = lv_field4
         ZLNUM = lv_zlnum
         X_FIRMA = lv_x_firma
         X_OBJECT = lv_x_object
         X_A_LEVEL = lv_x_a_level
         X_A_NODE = lv_x_a_node
         X_N_LEVEL = lv_x_n_level
         X_N_NODE = lv_x_n_node
         MODE_TEMRF = lv_mode_temrf
         X_INPSTRUCT1 = lv_x_inpstruct1
         X_FIELD1 = lv_x_field1
         X_INPSTRUCT2 = lv_x_inpstruct2
         X_FIELD2 = lv_x_field2
         X_SPRAS = lv_x_spras
         X_INPSTRUCT3 = lv_x_inpstruct3
         X_FIELD3 = lv_x_field3
         X_INPSTRUCT4 = lv_x_inpstruct4
         X_FIELD4 = lv_x_field4
         X_ZLNUM = lv_x_zlnum
         MODE_TEMRU = lv_mode_temru
         _SCOPE = lv__scope
         _WAIT = lv__wait
         _COLLECT = lv__collect
         MODE_TEMOBT = lv_mode_temobt
         MODE_TEMRE = lv_mode_temre
         MODE_TEMRT = lv_mode_temrt
         FIRMA = lv_firma
         OBJECT = lv_object
    EXCEPTIONS
        FOREIGN_LOCK = 1
        SYSTEM_FAILURE = 2
. " ENQUEUE_EMI_OBJECT




ABAP code using 7.40 inline data declarations to call FM ENQUEUE_EMI_OBJECT

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_temob) = 'X'.
 
 
"SELECT single A_LEVEL FROM TEMDB INTO @DATA(ld_a_level).
 
"SELECT single A_NODE FROM TEMDB INTO @DATA(ld_a_node).
 
"SELECT single N_LEVEL FROM TEMDB INTO @DATA(ld_n_level).
 
"SELECT single N_NODE FROM TEMDB INTO @DATA(ld_n_node).
 
"SELECT single INPSTRUCT FROM TEMRF INTO @DATA(ld_inpstruct1).
 
"SELECT single FIELD FROM TEMRF INTO @DATA(ld_field1).
 
"SELECT single INPSTRUCT FROM TEMRU INTO @DATA(ld_inpstruct2).
 
"SELECT single FIELD FROM TEMRU INTO @DATA(ld_field2).
 
"SELECT single SPRAS FROM TEMOBT INTO @DATA(ld_spras).
 
"SELECT single INPSTRUCT FROM TEMRE INTO @DATA(ld_inpstruct3).
 
DATA(ld_mode_temdb) = 'X'.
 
 
"SELECT single FIELD FROM TEMRE INTO @DATA(ld_field3).
 
"SELECT single INPSTRUCT FROM TEMRT INTO @DATA(ld_inpstruct4).
 
"SELECT single FIELD FROM TEMRT INTO @DATA(ld_field4).
 
"SELECT single ZLNUM FROM TEMRT INTO @DATA(ld_zlnum).
 
DATA(ld_x_firma) = ' '.
 
DATA(ld_x_object) = ' '.
 
DATA(ld_x_a_level) = ' '.
 
DATA(ld_x_a_node) = ' '.
 
DATA(ld_x_n_level) = ' '.
 
DATA(ld_x_n_node) = ' '.
 
DATA(ld_mode_temrf) = 'X'.
 
DATA(ld_x_inpstruct1) = ' '.
 
DATA(ld_x_field1) = ' '.
 
DATA(ld_x_inpstruct2) = ' '.
 
DATA(ld_x_field2) = ' '.
 
DATA(ld_x_spras) = ' '.
 
DATA(ld_x_inpstruct3) = ' '.
 
DATA(ld_x_field3) = ' '.
 
DATA(ld_x_inpstruct4) = ' '.
 
DATA(ld_x_field4) = ' '.
 
DATA(ld_x_zlnum) = ' '.
 
DATA(ld_mode_temru) = 'X'.
 
DATA(ld__scope) = '2'.
 
DATA(ld__wait) = ' '.
 
DATA(ld__collect) = ' '.
 
DATA(ld_mode_temobt) = 'X'.
 
DATA(ld_mode_temre) = 'X'.
 
DATA(ld_mode_temrt) = 'X'.
 
"SELECT single FIRMA FROM TEMOB INTO @DATA(ld_firma).
 
"SELECT single OBJECT FROM TEMOB INTO @DATA(ld_object).
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!