SAP ENQUEUE_ETPMONI Function Module for Request lock for object ETPMONI









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

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



Function ENQUEUE_ETPMONI 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_ETPMONI'"Request lock for object ETPMONI
EXPORTING
* MODE_TPMONI = 'E' "Lock mode for table TPMONI
* X_TARGETLANG = ' ' "Fill argument 02 with initial value?
* X_TRANSLATOR = ' ' "Fill argument 03 with initial value?
* X_COLLNAME = ' ' "Fill argument 04 with initial value?
* X_COLLTYPE = ' ' "Fill argument 05 with initial value?
* X_OBJTYPE = ' ' "Fill argument 06 with initial value?
* X_OBJCOUNTER = ' ' "Fill argument 07 with initial value?
* _SCOPE = '2' "
* _WAIT = ' ' "
* _COLLECT = ' ' "Initially only collect lock
* SOURCELANG = "01th enqueue argument
* TARGETLANG = "02th enqueue argument
* TRANSLATOR = "03th enqueue argument
* COLLNAME = "04th enqueue argument
* COLLTYPE = "05th enqueue argument
* OBJTYPE = "06th enqueue argument
* OBJCOUNTER = "07th enqueue argument
* X_SOURCELANG = ' ' "Fill argument 01 with initial value?

EXCEPTIONS
FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2
.



IMPORTING Parameters details for ENQUEUE_ETPMONI

MODE_TPMONI - Lock mode for table TPMONI

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

X_TARGETLANG - Fill argument 02 with initial value?

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

X_TRANSLATOR - Fill argument 03 with initial value?

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

X_COLLNAME - Fill argument 04 with initial value?

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

X_COLLTYPE - Fill argument 05 with initial value?

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

X_OBJTYPE - Fill argument 06 with initial value?

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

X_OBJCOUNTER - Fill argument 07 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)

SOURCELANG - 01th enqueue argument

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

TARGETLANG - 02th enqueue argument

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

TRANSLATOR - 03th enqueue argument

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

COLLNAME - 04th enqueue argument

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

COLLTYPE - 05th enqueue argument

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

OBJTYPE - 06th enqueue argument

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

OBJCOUNTER - 07th enqueue argument

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

X_SOURCELANG - Fill argument 01 with initial value?

Data type:
Default: SPACE
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_ETPMONI 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_tpmoni  TYPE ENQMODE, "   'E'
lv_foreign_lock  TYPE ENQMODE, "   
lv_x_targetlang  TYPE ENQMODE, "   SPACE
lv_x_translator  TYPE ENQMODE, "   SPACE
lv_x_collname  TYPE ENQMODE, "   SPACE
lv_x_colltype  TYPE ENQMODE, "   SPACE
lv_x_objtype  TYPE ENQMODE, "   SPACE
lv_x_objcounter  TYPE ENQMODE, "   SPACE
lv__scope  TYPE ENQMODE, "   '2'
lv__wait  TYPE ENQMODE, "   SPACE
lv__collect  TYPE DDENQCOLL, "   ' '
lv_sourcelang  TYPE TPMONI-SOURCELANG, "   
lv_system_failure  TYPE TPMONI, "   
lv_targetlang  TYPE TPMONI-TARGETLANG, "   
lv_translator  TYPE TPMONI-TRANSLATOR, "   
lv_collname  TYPE TPMONI-COLLNAME, "   
lv_colltype  TYPE TPMONI-COLLTYPE, "   
lv_objtype  TYPE TPMONI-OBJTYPE, "   
lv_objcounter  TYPE TPMONI-OBJCOUNTER, "   
lv_x_sourcelang  TYPE TPMONI. "   SPACE

  CALL FUNCTION 'ENQUEUE_ETPMONI'  "Request lock for object ETPMONI
    EXPORTING
         MODE_TPMONI = lv_mode_tpmoni
         X_TARGETLANG = lv_x_targetlang
         X_TRANSLATOR = lv_x_translator
         X_COLLNAME = lv_x_collname
         X_COLLTYPE = lv_x_colltype
         X_OBJTYPE = lv_x_objtype
         X_OBJCOUNTER = lv_x_objcounter
         _SCOPE = lv__scope
         _WAIT = lv__wait
         _COLLECT = lv__collect
         SOURCELANG = lv_sourcelang
         TARGETLANG = lv_targetlang
         TRANSLATOR = lv_translator
         COLLNAME = lv_collname
         COLLTYPE = lv_colltype
         OBJTYPE = lv_objtype
         OBJCOUNTER = lv_objcounter
         X_SOURCELANG = lv_x_sourcelang
    EXCEPTIONS
        FOREIGN_LOCK = 1
        SYSTEM_FAILURE = 2
. " ENQUEUE_ETPMONI




ABAP code using 7.40 inline data declarations to call FM ENQUEUE_ETPMONI

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_tpmoni) = 'E'.
 
 
DATA(ld_x_targetlang) = ' '.
 
DATA(ld_x_translator) = ' '.
 
DATA(ld_x_collname) = ' '.
 
DATA(ld_x_colltype) = ' '.
 
DATA(ld_x_objtype) = ' '.
 
DATA(ld_x_objcounter) = ' '.
 
DATA(ld__scope) = '2'.
 
DATA(ld__wait) = ' '.
 
DATA(ld__collect) = ' '.
 
"SELECT single SOURCELANG FROM TPMONI INTO @DATA(ld_sourcelang).
 
 
"SELECT single TARGETLANG FROM TPMONI INTO @DATA(ld_targetlang).
 
"SELECT single TRANSLATOR FROM TPMONI INTO @DATA(ld_translator).
 
"SELECT single COLLNAME FROM TPMONI INTO @DATA(ld_collname).
 
"SELECT single COLLTYPE FROM TPMONI INTO @DATA(ld_colltype).
 
"SELECT single OBJTYPE FROM TPMONI INTO @DATA(ld_objtype).
 
"SELECT single OBJCOUNTER FROM TPMONI INTO @DATA(ld_objcounter).
 
DATA(ld_x_sourcelang) = ' '.
 


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!