SAP ENQUEUE_EVTRNSM_E Function Module for Request lock for object EVTRNSM_E









ENQUEUE_EVTRNSM_E is a standard enqueue evtrnsm e 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 EVTRNSM_E 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 evtrnsm e FM, simply by entering the name ENQUEUE_EVTRNSM_E into the relevant SAP transaction such as SE37 or SE38.

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



Function ENQUEUE_EVTRNSM_E 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_EVTRNSM_E'"Request lock for object EVTRNSM_E
EXPORTING
* MODE_VTRNSM_E = 'E' "Lock mode for table VTRNSM_E
* MESFCT = "09th enqueue argument
* X_TRMNO_EXT = ' ' "Fill argument 02 with initial value?
* X_DIRECT = ' ' "Fill argument 03 with initial value?
* X_PARNO = ' ' "Fill argument 04 with initial value?
* X_PARTYP = ' ' "Fill argument 05 with initial value?
* X_PARFCT = ' ' "Fill argument 06 with initial value?
* X_MESTYP = ' ' "Fill argument 07 with initial value?
* X_MESCOD = ' ' "Fill argument 08 with initial value?
* X_MESFCT = ' ' "Fill argument 09 with initial value?
* _SCOPE = '2' "
* MANDT = SY-MANDT "01th enqueue argument
* _WAIT = ' ' "
* _COLLECT = ' ' "Initially only collect lock
* TRMNO_EXT = "02th enqueue argument
* DIRECT = "03th enqueue argument
* PARNO = "04th enqueue argument
* PARTYP = "05th enqueue argument
* PARFCT = "06th enqueue argument
* MESTYP = "07th enqueue argument
* MESCOD = "08th enqueue argument

EXCEPTIONS
FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2
.



IMPORTING Parameters details for ENQUEUE_EVTRNSM_E

MODE_VTRNSM_E - Lock mode for table VTRNSM_E

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

MESFCT - 09th enqueue argument

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

X_TRMNO_EXT - Fill argument 02 with initial value?

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

X_DIRECT - Fill argument 03 with initial value?

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

X_PARNO - Fill argument 04 with initial value?

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

X_PARTYP - Fill argument 05 with initial value?

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

X_PARFCT - Fill argument 06 with initial value?

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

X_MESTYP - Fill argument 07 with initial value?

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

X_MESCOD - Fill argument 08 with initial value?

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

X_MESFCT - Fill argument 09 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)

MANDT - 01th enqueue argument

Data type: VTRNSM_E-MANDT
Default: SY-MANDT
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)

TRMNO_EXT - 02th enqueue argument

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

DIRECT - 03th enqueue argument

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

PARNO - 04th enqueue argument

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

PARTYP - 05th enqueue argument

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

PARFCT - 06th enqueue argument

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

MESTYP - 07th enqueue argument

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

MESCOD - 08th enqueue argument

Data type: VTRNSM_E-MESCOD
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_EVTRNSM_E 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_vtrnsm_e  TYPE ENQMODE, "   'E'
lv_mesfct  TYPE VTRNSM_E-MESFCT, "   
lv_x_trmno_ext  TYPE VTRNSM_E, "   SPACE
lv_x_direct  TYPE VTRNSM_E, "   SPACE
lv_x_parno  TYPE VTRNSM_E, "   SPACE
lv_x_partyp  TYPE VTRNSM_E, "   SPACE
lv_x_parfct  TYPE VTRNSM_E, "   SPACE
lv_x_mestyp  TYPE VTRNSM_E, "   SPACE
lv_x_mescod  TYPE VTRNSM_E, "   SPACE
lv_x_mesfct  TYPE VTRNSM_E, "   SPACE
lv__scope  TYPE VTRNSM_E, "   '2'
lv_mandt  TYPE VTRNSM_E-MANDT, "   SY-MANDT
lv_system_failure  TYPE VTRNSM_E, "   
lv__wait  TYPE VTRNSM_E, "   SPACE
lv__collect  TYPE DDENQCOLL, "   ' '
lv_trmno_ext  TYPE VTRNSM_E-TRMNO_EXT, "   
lv_direct  TYPE VTRNSM_E-DIRECT, "   
lv_parno  TYPE VTRNSM_E-PARNO, "   
lv_partyp  TYPE VTRNSM_E-PARTYP, "   
lv_parfct  TYPE VTRNSM_E-PARFCT, "   
lv_mestyp  TYPE VTRNSM_E-MESTYP, "   
lv_mescod  TYPE VTRNSM_E-MESCOD. "   

  CALL FUNCTION 'ENQUEUE_EVTRNSM_E'  "Request lock for object EVTRNSM_E
    EXPORTING
         MODE_VTRNSM_E = lv_mode_vtrnsm_e
         MESFCT = lv_mesfct
         X_TRMNO_EXT = lv_x_trmno_ext
         X_DIRECT = lv_x_direct
         X_PARNO = lv_x_parno
         X_PARTYP = lv_x_partyp
         X_PARFCT = lv_x_parfct
         X_MESTYP = lv_x_mestyp
         X_MESCOD = lv_x_mescod
         X_MESFCT = lv_x_mesfct
         _SCOPE = lv__scope
         MANDT = lv_mandt
         _WAIT = lv__wait
         _COLLECT = lv__collect
         TRMNO_EXT = lv_trmno_ext
         DIRECT = lv_direct
         PARNO = lv_parno
         PARTYP = lv_partyp
         PARFCT = lv_parfct
         MESTYP = lv_mestyp
         MESCOD = lv_mescod
    EXCEPTIONS
        FOREIGN_LOCK = 1
        SYSTEM_FAILURE = 2
. " ENQUEUE_EVTRNSM_E




ABAP code using 7.40 inline data declarations to call FM ENQUEUE_EVTRNSM_E

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_vtrnsm_e) = 'E'.
 
"SELECT single MESFCT FROM VTRNSM_E INTO @DATA(ld_mesfct).
 
DATA(ld_x_trmno_ext) = ' '.
 
DATA(ld_x_direct) = ' '.
 
DATA(ld_x_parno) = ' '.
 
DATA(ld_x_partyp) = ' '.
 
DATA(ld_x_parfct) = ' '.
 
DATA(ld_x_mestyp) = ' '.
 
DATA(ld_x_mescod) = ' '.
 
DATA(ld_x_mesfct) = ' '.
 
DATA(ld__scope) = '2'.
 
"SELECT single MANDT FROM VTRNSM_E INTO @DATA(ld_mandt).
DATA(ld_mandt) = SY-MANDT.
 
 
DATA(ld__wait) = ' '.
 
DATA(ld__collect) = ' '.
 
"SELECT single TRMNO_EXT FROM VTRNSM_E INTO @DATA(ld_trmno_ext).
 
"SELECT single DIRECT FROM VTRNSM_E INTO @DATA(ld_direct).
 
"SELECT single PARNO FROM VTRNSM_E INTO @DATA(ld_parno).
 
"SELECT single PARTYP FROM VTRNSM_E INTO @DATA(ld_partyp).
 
"SELECT single PARFCT FROM VTRNSM_E INTO @DATA(ld_parfct).
 
"SELECT single MESTYP FROM VTRNSM_E INTO @DATA(ld_mestyp).
 
"SELECT single MESCOD FROM VTRNSM_E INTO @DATA(ld_mescod).
 


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!