SAP ENQUEUE_ECRMCSN3 Function Module for Request lock for object ECRMCSN3









ENQUEUE_ECRMCSN3 is a standard enqueue ecrmcsn3 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 ECRMCSN3 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 ecrmcsn3 FM, simply by entering the name ENQUEUE_ECRMCSN3 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): Remote-Enabled
Update:



Function ENQUEUE_ECRMCSN3 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_ECRMCSN3'"Request lock for object ECRMCSN3
EXPORTING
* MODE_CRMCHKCSN = 'E' "Lock mode for table CRMCHKCSN
* POBJ_NAME = "09th enqueue argument
* CHKRSLTNBR = "10th enqueue argument
* X_OBJSETKIND = ' ' "Fill argument 01 with initial value?
* X_OBJSETID = ' ' "Fill argument 02 with initial value?
* X_PGMID = ' ' "Fill argument 03 with initial value?
* X_OBJECT = ' ' "Fill argument 04 with initial value?
* X_OBJ_NAME = ' ' "Fill argument 05 with initial value?
* X_CHKID = ' ' "Fill argument 06 with initial value?
* X_CHKMSGID = ' ' "Fill argument 07 with initial value?
* X_POBJECT = ' ' "Fill argument 08 with initial value?
* OBJSETKIND = "01th enqueue argument
* X_POBJ_NAME = ' ' "Fill argument 09 with initial value?
* X_CHKRSLTNBR = ' ' "Fill argument 10 with initial value?
* _SCOPE = '2' "
* _WAIT = ' ' "
* _COLLECT = ' ' "Initially only collect lock
* OBJSETID = "02th enqueue argument
* PGMID = "03th enqueue argument
* OBJECT = "04th enqueue argument
* OBJ_NAME = "05th enqueue argument
* CHKID = "06th enqueue argument
* CHKMSGID = "07th enqueue argument
* POBJECT = "08th enqueue argument

EXCEPTIONS
FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2
.



IMPORTING Parameters details for ENQUEUE_ECRMCSN3

MODE_CRMCHKCSN - Lock mode for table CRMCHKCSN

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

POBJ_NAME - 09th enqueue argument

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

CHKRSLTNBR - 10th enqueue argument

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

X_OBJSETKIND - Fill argument 01 with initial value?

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

X_OBJSETID - Fill argument 02 with initial value?

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

X_PGMID - Fill argument 03 with initial value?

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

X_OBJECT - Fill argument 04 with initial value?

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

X_OBJ_NAME - Fill argument 05 with initial value?

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

X_CHKID - Fill argument 06 with initial value?

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

X_CHKMSGID - Fill argument 07 with initial value?

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

X_POBJECT - Fill argument 08 with initial value?

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

OBJSETKIND - 01th enqueue argument

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

X_POBJ_NAME - Fill argument 09 with initial value?

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

X_CHKRSLTNBR - Fill argument 10 with initial value?

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

_SCOPE -

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

_WAIT -

Data type: DDENQWAIT
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)

OBJSETID - 02th enqueue argument

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

PGMID - 03th enqueue argument

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

OBJECT - 04th enqueue argument

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

OBJ_NAME - 05th enqueue argument

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

CHKID - 06th enqueue argument

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

CHKMSGID - 07th enqueue argument

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

POBJECT - 08th enqueue argument

Data type: CRMCHKCSN-POBJECT
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_ECRMCSN3 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_crmchkcsn  TYPE ENQMODE, "   'E'
lv_pobj_name  TYPE CRMCHKCSN-POBJ_NAME, "   
lv_chkrsltnbr  TYPE CRMCHKCSN-CHKRSLTNBR, "   
lv_x_objsetkind  TYPE DDENQXPAR, "   SPACE
lv_x_objsetid  TYPE DDENQXPAR, "   SPACE
lv_x_pgmid  TYPE DDENQXPAR, "   SPACE
lv_x_object  TYPE DDENQXPAR, "   SPACE
lv_x_obj_name  TYPE DDENQXPAR, "   SPACE
lv_x_chkid  TYPE DDENQXPAR, "   SPACE
lv_x_chkmsgid  TYPE DDENQXPAR, "   SPACE
lv_x_pobject  TYPE DDENQXPAR, "   SPACE
lv_objsetkind  TYPE CRMCHKCSN-OBJSETKIND, "   
lv_system_failure  TYPE CRMCHKCSN, "   
lv_x_pobj_name  TYPE DDENQXPAR, "   SPACE
lv_x_chkrsltnbr  TYPE DDENQXPAR, "   SPACE
lv__scope  TYPE DDENQSCOPE, "   '2'
lv__wait  TYPE DDENQWAIT, "   SPACE
lv__collect  TYPE DDENQCOLL, "   ' '
lv_objsetid  TYPE CRMCHKCSN-OBJSETID, "   
lv_pgmid  TYPE CRMCHKCSN-PGMID, "   
lv_object  TYPE CRMCHKCSN-OBJECT, "   
lv_obj_name  TYPE CRMCHKCSN-OBJ_NAME, "   
lv_chkid  TYPE CRMCHKCSN-CHKID, "   
lv_chkmsgid  TYPE CRMCHKCSN-CHKMSGID, "   
lv_pobject  TYPE CRMCHKCSN-POBJECT. "   

  CALL FUNCTION 'ENQUEUE_ECRMCSN3'  "Request lock for object ECRMCSN3
    EXPORTING
         MODE_CRMCHKCSN = lv_mode_crmchkcsn
         POBJ_NAME = lv_pobj_name
         CHKRSLTNBR = lv_chkrsltnbr
         X_OBJSETKIND = lv_x_objsetkind
         X_OBJSETID = lv_x_objsetid
         X_PGMID = lv_x_pgmid
         X_OBJECT = lv_x_object
         X_OBJ_NAME = lv_x_obj_name
         X_CHKID = lv_x_chkid
         X_CHKMSGID = lv_x_chkmsgid
         X_POBJECT = lv_x_pobject
         OBJSETKIND = lv_objsetkind
         X_POBJ_NAME = lv_x_pobj_name
         X_CHKRSLTNBR = lv_x_chkrsltnbr
         _SCOPE = lv__scope
         _WAIT = lv__wait
         _COLLECT = lv__collect
         OBJSETID = lv_objsetid
         PGMID = lv_pgmid
         OBJECT = lv_object
         OBJ_NAME = lv_obj_name
         CHKID = lv_chkid
         CHKMSGID = lv_chkmsgid
         POBJECT = lv_pobject
    EXCEPTIONS
        FOREIGN_LOCK = 1
        SYSTEM_FAILURE = 2
. " ENQUEUE_ECRMCSN3




ABAP code using 7.40 inline data declarations to call FM ENQUEUE_ECRMCSN3

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_crmchkcsn) = 'E'.
 
"SELECT single POBJ_NAME FROM CRMCHKCSN INTO @DATA(ld_pobj_name).
 
"SELECT single CHKRSLTNBR FROM CRMCHKCSN INTO @DATA(ld_chkrsltnbr).
 
DATA(ld_x_objsetkind) = ' '.
 
DATA(ld_x_objsetid) = ' '.
 
DATA(ld_x_pgmid) = ' '.
 
DATA(ld_x_object) = ' '.
 
DATA(ld_x_obj_name) = ' '.
 
DATA(ld_x_chkid) = ' '.
 
DATA(ld_x_chkmsgid) = ' '.
 
DATA(ld_x_pobject) = ' '.
 
"SELECT single OBJSETKIND FROM CRMCHKCSN INTO @DATA(ld_objsetkind).
 
 
DATA(ld_x_pobj_name) = ' '.
 
DATA(ld_x_chkrsltnbr) = ' '.
 
DATA(ld__scope) = '2'.
 
DATA(ld__wait) = ' '.
 
DATA(ld__collect) = ' '.
 
"SELECT single OBJSETID FROM CRMCHKCSN INTO @DATA(ld_objsetid).
 
"SELECT single PGMID FROM CRMCHKCSN INTO @DATA(ld_pgmid).
 
"SELECT single OBJECT FROM CRMCHKCSN INTO @DATA(ld_object).
 
"SELECT single OBJ_NAME FROM CRMCHKCSN INTO @DATA(ld_obj_name).
 
"SELECT single CHKID FROM CRMCHKCSN INTO @DATA(ld_chkid).
 
"SELECT single CHKMSGID FROM CRMCHKCSN INTO @DATA(ld_chkmsgid).
 
"SELECT single POBJECT FROM CRMCHKCSN INTO @DATA(ld_pobject).
 


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!