SAP ENQUEUE_E_IMCH Function Module for









ENQUEUE_E_IMCH is a standard enqueue e imch SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 imch FM, simply by entering the name ENQUEUE_E_IMCH into the relevant SAP transaction such as SE37 or SE38.

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



Function ENQUEUE_E_IMCH 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_IMCH'"
EXPORTING
* MODE_IMCH = 'E' "
* X_LOGSYSTEM = ' ' "
* _SCOPE = '2' "
* _WAIT = ' ' "
* _COLLECT = ' ' "
* CLIENT = SY-MANDT "
* COMPR_VRSN = "
* INV_PROG = "
* APPR_YEAR = "
* LOGSYSTEM = "
* X_COMPR_VRSN = ' ' "
* X_INV_PROG = ' ' "
* X_APPR_YEAR = ' ' "

EXCEPTIONS
FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2
.



IMPORTING Parameters details for ENQUEUE_E_IMCH

MODE_IMCH -

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

X_LOGSYSTEM -

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 -

Data type: DDENQ_LIKE-COLLECT
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

CLIENT -

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

COMPR_VRSN -

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

INV_PROG -

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

APPR_YEAR -

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

LOGSYSTEM -

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

X_COMPR_VRSN -

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

X_INV_PROG -

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

X_APPR_YEAR -

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

EXCEPTIONS details

FOREIGN_LOCK -

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

SYSTEM_FAILURE -

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

Copy and paste ABAP code example for ENQUEUE_E_IMCH 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_imch  TYPE DD26E-ENQMODE, "   'E'
lv_foreign_lock  TYPE DD26E, "   
lv_x_logsystem  TYPE DD26E, "   SPACE
lv__scope  TYPE DD26E, "   '2'
lv__wait  TYPE DD26E, "   SPACE
lv__collect  TYPE DDENQ_LIKE-COLLECT, "   ' '
lv_client  TYPE IMCH-CLIENT, "   SY-MANDT
lv_system_failure  TYPE IMCH, "   
lv_compr_vrsn  TYPE IMCH-COMPR_VRSN, "   
lv_inv_prog  TYPE IMCH-INV_PROG, "   
lv_appr_year  TYPE IMCH-APPR_YEAR, "   
lv_logsystem  TYPE IMCH-LOGSYSTEM, "   
lv_x_compr_vrsn  TYPE IMCH, "   SPACE
lv_x_inv_prog  TYPE IMCH, "   SPACE
lv_x_appr_year  TYPE IMCH. "   SPACE

  CALL FUNCTION 'ENQUEUE_E_IMCH'  "
    EXPORTING
         MODE_IMCH = lv_mode_imch
         X_LOGSYSTEM = lv_x_logsystem
         _SCOPE = lv__scope
         _WAIT = lv__wait
         _COLLECT = lv__collect
         CLIENT = lv_client
         COMPR_VRSN = lv_compr_vrsn
         INV_PROG = lv_inv_prog
         APPR_YEAR = lv_appr_year
         LOGSYSTEM = lv_logsystem
         X_COMPR_VRSN = lv_x_compr_vrsn
         X_INV_PROG = lv_x_inv_prog
         X_APPR_YEAR = lv_x_appr_year
    EXCEPTIONS
        FOREIGN_LOCK = 1
        SYSTEM_FAILURE = 2
. " ENQUEUE_E_IMCH




ABAP code using 7.40 inline data declarations to call FM ENQUEUE_E_IMCH

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.

"SELECT single ENQMODE FROM DD26E INTO @DATA(ld_mode_imch).
DATA(ld_mode_imch) = 'E'.
 
 
DATA(ld_x_logsystem) = ' '.
 
DATA(ld__scope) = '2'.
 
DATA(ld__wait) = ' '.
 
"SELECT single COLLECT FROM DDENQ_LIKE INTO @DATA(ld__collect).
DATA(ld__collect) = ' '.
 
"SELECT single CLIENT FROM IMCH INTO @DATA(ld_client).
DATA(ld_client) = SY-MANDT.
 
 
"SELECT single COMPR_VRSN FROM IMCH INTO @DATA(ld_compr_vrsn).
 
"SELECT single INV_PROG FROM IMCH INTO @DATA(ld_inv_prog).
 
"SELECT single APPR_YEAR FROM IMCH INTO @DATA(ld_appr_year).
 
"SELECT single LOGSYSTEM FROM IMCH INTO @DATA(ld_logsystem).
 
DATA(ld_x_compr_vrsn) = ' '.
 
DATA(ld_x_inv_prog) = ' '.
 
DATA(ld_x_appr_year) = ' '.
 


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!