SAP Function Modules

DEQUEUE_ERSENQUEUE SAP Function module - Release lock on object ERSENQUEUE







DEQUEUE_ERSENQUEUE is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name DEQUEUE_ERSENQUEUE into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: DWBEN/SAPLREN0002
Released Date: Not Released
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM DEQUEUE_ERSENQUEUE - DEQUEUE ERSENQUEUE





CALL FUNCTION 'DEQUEUE_ERSENQUEUE' "Release lock on object ERSENQUEUE
* EXPORTING
*   mode_rsenq_prot_enq = 'E'   " enqmode       Lock mode for table RSENQ_PROT_ENQ
*   action =                    " rsenq_prot_enq-action  01th enqueue argument
*   object =                    " rsenq_prot_enq-object  02th enqueue argument
*   object_typ =                " rsenq_prot_enq-object_typ  03th enqueue argument
*   subobject =                 " rsenq_prot_enq-subobject  04th enqueue argument
*   subsubobject =              " rsenq_prot_enq-subsubobject  05th enqueue argument
*   x_action = SPACE            " ddenqxpar     Fill argument 01 with initial value?
*   x_object = SPACE            " ddenqxpar     Fill argument 02 with initial value?
*   x_object_typ = SPACE        " ddenqxpar     Fill argument 03 with initial value?
*   x_subobject = SPACE         " ddenqxpar     Fill argument 04 with initial value?
*   x_subsubobject = SPACE      " ddenqxpar     Fill argument 05 with initial value?
*   _scope = '3'                " ddenqscope
*   _synchron = SPACE           " ddenqsync     Synchonous unlock
*   _collect = ' '              " ddenqcoll     Initially only collect lock
    .  "  DEQUEUE_ERSENQUEUE

ABAP code example for Function Module DEQUEUE_ERSENQUEUE





The ABAP code below is a full code listing to execute function module DEQUEUE_ERSENQUEUE including all data declarations. The code uses 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 original method of declaring data variables up front. 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).


DATA(ld_mode_rsenq_prot_enq) = 'Check type of data required'.

SELECT single ACTION
FROM RSENQ_PROT_ENQ
INTO @DATA(ld_action).


SELECT single OBJECT
FROM RSENQ_PROT_ENQ
INTO @DATA(ld_object).


SELECT single OBJECT_TYP
FROM RSENQ_PROT_ENQ
INTO @DATA(ld_object_typ).


SELECT single SUBOBJECT
FROM RSENQ_PROT_ENQ
INTO @DATA(ld_subobject).


SELECT single SUBSUBOBJECT
FROM RSENQ_PROT_ENQ
INTO @DATA(ld_subsubobject).

DATA(ld_x_action) = 'Check type of data required'.
DATA(ld_x_object) = 'Check type of data required'.
DATA(ld_x_object_typ) = 'Check type of data required'.
DATA(ld_x_subobject) = 'Check type of data required'.
DATA(ld_x_subsubobject) = 'Check type of data required'.
DATA(ld__scope) = 'Check type of data required'.
DATA(ld__synchron) = 'some text here'.
DATA(ld__collect) = 'some text here'. . CALL FUNCTION 'DEQUEUE_ERSENQUEUE' * EXPORTING * mode_rsenq_prot_enq = ld_mode_rsenq_prot_enq * action = ld_action * object = ld_object * object_typ = ld_object_typ * subobject = ld_subobject * subsubobject = ld_subsubobject * x_action = ld_x_action * x_object = ld_x_object * x_object_typ = ld_x_object_typ * x_subobject = ld_x_subobject * x_subsubobject = ld_x_subsubobject * _scope = ld__scope * _synchron = ld__synchron * _collect = ld__collect . " DEQUEUE_ERSENQUEUE
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_mode_rsenq_prot_enq  TYPE ENQMODE ,
ld_action  TYPE RSENQ_PROT_ENQ-ACTION ,
ld_object  TYPE RSENQ_PROT_ENQ-OBJECT ,
ld_object_typ  TYPE RSENQ_PROT_ENQ-OBJECT_TYP ,
ld_subobject  TYPE RSENQ_PROT_ENQ-SUBOBJECT ,
ld_subsubobject  TYPE RSENQ_PROT_ENQ-SUBSUBOBJECT ,
ld_x_action  TYPE DDENQXPAR ,
ld_x_object  TYPE DDENQXPAR ,
ld_x_object_typ  TYPE DDENQXPAR ,
ld_x_subobject  TYPE DDENQXPAR ,
ld_x_subsubobject  TYPE DDENQXPAR ,
ld__scope  TYPE DDENQSCOPE ,
ld__synchron  TYPE DDENQSYNC ,
ld__collect  TYPE DDENQCOLL .

ld_mode_rsenq_prot_enq = 'some text here'.

SELECT single ACTION
FROM RSENQ_PROT_ENQ
INTO ld_action.


SELECT single OBJECT
FROM RSENQ_PROT_ENQ
INTO ld_object.


SELECT single OBJECT_TYP
FROM RSENQ_PROT_ENQ
INTO ld_object_typ.


SELECT single SUBOBJECT
FROM RSENQ_PROT_ENQ
INTO ld_subobject.


SELECT single SUBSUBOBJECT
FROM RSENQ_PROT_ENQ
INTO ld_subsubobject.

ld_x_action = 'some text here'.
ld_x_object = 'some text here'.
ld_x_object_typ = 'some text here'.
ld_x_subobject = 'some text here'.
ld_x_subsubobject = 'some text here'.
ld__scope = 'some text here'.
ld__synchron = 'some text here'.
ld__collect = 'some text here'.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name DEQUEUE_ERSENQUEUE or its description.