SAP ENQUEUE_ECIF_IMOD Function Module for Request lock for object ECIF_IMOD









ENQUEUE_ECIF_IMOD is a standard enqueue ecif imod 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 ECIF_IMOD 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 ecif imod FM, simply by entering the name ENQUEUE_ECIF_IMOD into the relevant SAP transaction such as SE37 or SE38.

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



Function ENQUEUE_ECIF_IMOD 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_ECIF_IMOD'"Request lock for object ECIF_IMOD
EXPORTING
* MODE_CIF_IMOD = 'E' "Lock mode for table CIF_IMOD
* STATUS = "09th enqueue argument
* BLOCKNO = "10th enqueue argument
* X_MODELNAME = ' ' "Fill argument 02 with initial value?
* X_LOGSYS = ' ' "Fill argument 03 with initial value?
* X_APOAPP = ' ' "Fill argument 04 with initial value?
* X_CRDATE = ' ' "Fill argument 05 with initial value?
* X_CRTIME = ' ' "Fill argument 06 with initial value?
* X_IMTYP = ' ' "Fill argument 07 with initial value?
* X_SEGMENT = ' ' "Fill argument 08 with initial value?
* X_STATUS = ' ' "Fill argument 09 with initial value?
* MANDT = SY-MANDT "01th enqueue argument
* X_BLOCKNO = ' ' "Fill argument 10 with initial value?
* _SCOPE = '2' "
* _WAIT = ' ' "
* _COLLECT = ' ' "Initially only collect lock
* MODELNAME = "02th enqueue argument
* LOGSYS = "03th enqueue argument
* APOAPP = "04th enqueue argument
* CRDATE = "05th enqueue argument
* CRTIME = "06th enqueue argument
* IMTYP = "07th enqueue argument
* SEGMENT = "08th enqueue argument

EXCEPTIONS
FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2
.



IMPORTING Parameters details for ENQUEUE_ECIF_IMOD

MODE_CIF_IMOD - Lock mode for table CIF_IMOD

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

STATUS - 09th enqueue argument

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

BLOCKNO - 10th enqueue argument

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

X_MODELNAME - Fill argument 02 with initial value?

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

X_LOGSYS - Fill argument 03 with initial value?

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

X_APOAPP - Fill argument 04 with initial value?

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

X_CRDATE - Fill argument 05 with initial value?

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

X_CRTIME - Fill argument 06 with initial value?

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

X_IMTYP - Fill argument 07 with initial value?

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

X_SEGMENT - Fill argument 08 with initial value?

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

X_STATUS - Fill argument 09 with initial value?

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

MANDT - 01th enqueue argument

Data type: CIF_IMOD-MANDT
Default: SY-MANDT
Optional: Yes
Call by Reference: No ( called with pass by value option)

X_BLOCKNO - Fill argument 10 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: DDENQCOLL
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

MODELNAME - 02th enqueue argument

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

LOGSYS - 03th enqueue argument

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

APOAPP - 04th enqueue argument

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

CRDATE - 05th enqueue argument

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

CRTIME - 06th enqueue argument

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

IMTYP - 07th enqueue argument

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

SEGMENT - 08th enqueue argument

Data type: CIF_IMOD-SEGMENT
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_ECIF_IMOD 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_cif_imod  TYPE ENQMODE, "   'E'
lv_status  TYPE CIF_IMOD-STATUS, "   
lv_blockno  TYPE CIF_IMOD-BLOCKNO, "   
lv_x_modelname  TYPE CIF_IMOD, "   SPACE
lv_x_logsys  TYPE CIF_IMOD, "   SPACE
lv_x_apoapp  TYPE CIF_IMOD, "   SPACE
lv_x_crdate  TYPE CIF_IMOD, "   SPACE
lv_x_crtime  TYPE CIF_IMOD, "   SPACE
lv_x_imtyp  TYPE CIF_IMOD, "   SPACE
lv_x_segment  TYPE CIF_IMOD, "   SPACE
lv_x_status  TYPE CIF_IMOD, "   SPACE
lv_mandt  TYPE CIF_IMOD-MANDT, "   SY-MANDT
lv_system_failure  TYPE CIF_IMOD, "   
lv_x_blockno  TYPE CIF_IMOD, "   SPACE
lv__scope  TYPE CIF_IMOD, "   '2'
lv__wait  TYPE CIF_IMOD, "   SPACE
lv__collect  TYPE DDENQCOLL, "   ' '
lv_modelname  TYPE CIF_IMOD-MODELNAME, "   
lv_logsys  TYPE CIF_IMOD-LOGSYS, "   
lv_apoapp  TYPE CIF_IMOD-APOAPP, "   
lv_crdate  TYPE CIF_IMOD-CRDATE, "   
lv_crtime  TYPE CIF_IMOD-CRTIME, "   
lv_imtyp  TYPE CIF_IMOD-IMTYP, "   
lv_segment  TYPE CIF_IMOD-SEGMENT. "   

  CALL FUNCTION 'ENQUEUE_ECIF_IMOD'  "Request lock for object ECIF_IMOD
    EXPORTING
         MODE_CIF_IMOD = lv_mode_cif_imod
         STATUS = lv_status
         BLOCKNO = lv_blockno
         X_MODELNAME = lv_x_modelname
         X_LOGSYS = lv_x_logsys
         X_APOAPP = lv_x_apoapp
         X_CRDATE = lv_x_crdate
         X_CRTIME = lv_x_crtime
         X_IMTYP = lv_x_imtyp
         X_SEGMENT = lv_x_segment
         X_STATUS = lv_x_status
         MANDT = lv_mandt
         X_BLOCKNO = lv_x_blockno
         _SCOPE = lv__scope
         _WAIT = lv__wait
         _COLLECT = lv__collect
         MODELNAME = lv_modelname
         LOGSYS = lv_logsys
         APOAPP = lv_apoapp
         CRDATE = lv_crdate
         CRTIME = lv_crtime
         IMTYP = lv_imtyp
         SEGMENT = lv_segment
    EXCEPTIONS
        FOREIGN_LOCK = 1
        SYSTEM_FAILURE = 2
. " ENQUEUE_ECIF_IMOD




ABAP code using 7.40 inline data declarations to call FM ENQUEUE_ECIF_IMOD

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_cif_imod) = 'E'.
 
"SELECT single STATUS FROM CIF_IMOD INTO @DATA(ld_status).
 
"SELECT single BLOCKNO FROM CIF_IMOD INTO @DATA(ld_blockno).
 
DATA(ld_x_modelname) = ' '.
 
DATA(ld_x_logsys) = ' '.
 
DATA(ld_x_apoapp) = ' '.
 
DATA(ld_x_crdate) = ' '.
 
DATA(ld_x_crtime) = ' '.
 
DATA(ld_x_imtyp) = ' '.
 
DATA(ld_x_segment) = ' '.
 
DATA(ld_x_status) = ' '.
 
"SELECT single MANDT FROM CIF_IMOD INTO @DATA(ld_mandt).
DATA(ld_mandt) = SY-MANDT.
 
 
DATA(ld_x_blockno) = ' '.
 
DATA(ld__scope) = '2'.
 
DATA(ld__wait) = ' '.
 
DATA(ld__collect) = ' '.
 
"SELECT single MODELNAME FROM CIF_IMOD INTO @DATA(ld_modelname).
 
"SELECT single LOGSYS FROM CIF_IMOD INTO @DATA(ld_logsys).
 
"SELECT single APOAPP FROM CIF_IMOD INTO @DATA(ld_apoapp).
 
"SELECT single CRDATE FROM CIF_IMOD INTO @DATA(ld_crdate).
 
"SELECT single CRTIME FROM CIF_IMOD INTO @DATA(ld_crtime).
 
"SELECT single IMTYP FROM CIF_IMOD INTO @DATA(ld_imtyp).
 
"SELECT single SEGMENT FROM CIF_IMOD INTO @DATA(ld_segment).
 


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!