SAP Function Modules

DEQUEUE_EFKKLOCKS SAP Function module - Release lock on object EFKKLOCKS







DEQUEUE_EFKKLOCKS 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_EFKKLOCKS into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: DWBEN/SAPLFEN0009
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM DEQUEUE_EFKKLOCKS - DEQUEUE EFKKLOCKS





CALL FUNCTION 'DEQUEUE_EFKKLOCKS' "Release lock on object EFKKLOCKS
* EXPORTING
*   mode_dfkklocks = 'E'        " enqmode       Lock mode for table DFKKLOCKS
*   client = SY-MANDT           " dfkklocks-client  01th enqueue argument
*   loobj1 =                    " dfkklocks-loobj1  02th enqueue argument
*   lotyp =                     " dfkklocks-lotyp  03th enqueue argument
*   proid =                     " dfkklocks-proid  04th enqueue argument
*   lockr =                     " dfkklocks-lockr  05th enqueue argument
*   fdate =                     " dfkklocks-fdate  06th enqueue argument
*   tdate =                     " dfkklocks-tdate  07th enqueue argument
*   gpart =                     " dfkklocks-gpart  08th enqueue argument
*   vkont =                     " dfkklocks-vkont  09th enqueue argument
*   x_loobj1 = SPACE            "               Fill argument 02 with initial value?
*   x_lotyp = SPACE             "               Fill argument 03 with initial value?
*   x_proid = SPACE             "               Fill argument 04 with initial value?
*   x_lockr = SPACE             "               Fill argument 05 with initial value?
*   x_fdate = SPACE             "               Fill argument 06 with initial value?
*   x_tdate = SPACE             "               Fill argument 07 with initial value?
*   x_gpart = SPACE             "               Fill argument 08 with initial value?
*   x_vkont = SPACE             "               Fill argument 09 with initial value?
*   _scope = '3'                "
*   _synchron = SPACE           "               Synchonous unlock
*   _collect = ' '              " ddenqcoll     Initially only collect lock
    .  "  DEQUEUE_EFKKLOCKS

ABAP code example for Function Module DEQUEUE_EFKKLOCKS





The ABAP code below is a full code listing to execute function module DEQUEUE_EFKKLOCKS 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_dfkklocks) = 'Check type of data required'.

SELECT single CLIENT
FROM DFKKLOCKS
INTO @DATA(ld_client).


SELECT single LOOBJ1
FROM DFKKLOCKS
INTO @DATA(ld_loobj1).


SELECT single LOTYP
FROM DFKKLOCKS
INTO @DATA(ld_lotyp).


SELECT single PROID
FROM DFKKLOCKS
INTO @DATA(ld_proid).


SELECT single LOCKR
FROM DFKKLOCKS
INTO @DATA(ld_lockr).


SELECT single FDATE
FROM DFKKLOCKS
INTO @DATA(ld_fdate).


SELECT single TDATE
FROM DFKKLOCKS
INTO @DATA(ld_tdate).


SELECT single GPART
FROM DFKKLOCKS
INTO @DATA(ld_gpart).


SELECT single VKONT
FROM DFKKLOCKS
INTO @DATA(ld_vkont).

DATA(ld_x_loobj1) = 'some text here'.
DATA(ld_x_lotyp) = 'some text here'.
DATA(ld_x_proid) = 'some text here'.
DATA(ld_x_lockr) = 'some text here'.
DATA(ld_x_fdate) = 'some text here'.
DATA(ld_x_tdate) = 'some text here'.
DATA(ld_x_gpart) = 'some text here'.
DATA(ld_x_vkont) = 'some text here'.
DATA(ld__scope) = 'some text here'.
DATA(ld__synchron) = 'some text here'.
DATA(ld__collect) = 'Check type of data required'. . CALL FUNCTION 'DEQUEUE_EFKKLOCKS' * EXPORTING * mode_dfkklocks = ld_mode_dfkklocks * client = ld_client * loobj1 = ld_loobj1 * lotyp = ld_lotyp * proid = ld_proid * lockr = ld_lockr * fdate = ld_fdate * tdate = ld_tdate * gpart = ld_gpart * vkont = ld_vkont * x_loobj1 = ld_x_loobj1 * x_lotyp = ld_x_lotyp * x_proid = ld_x_proid * x_lockr = ld_x_lockr * x_fdate = ld_x_fdate * x_tdate = ld_x_tdate * x_gpart = ld_x_gpart * x_vkont = ld_x_vkont * _scope = ld__scope * _synchron = ld__synchron * _collect = ld__collect . " DEQUEUE_EFKKLOCKS
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_dfkklocks  TYPE ENQMODE ,
ld_client  TYPE DFKKLOCKS-CLIENT ,
ld_loobj1  TYPE DFKKLOCKS-LOOBJ1 ,
ld_lotyp  TYPE DFKKLOCKS-LOTYP ,
ld_proid  TYPE DFKKLOCKS-PROID ,
ld_lockr  TYPE DFKKLOCKS-LOCKR ,
ld_fdate  TYPE DFKKLOCKS-FDATE ,
ld_tdate  TYPE DFKKLOCKS-TDATE ,
ld_gpart  TYPE DFKKLOCKS-GPART ,
ld_vkont  TYPE DFKKLOCKS-VKONT ,
ld_x_loobj1  TYPE STRING ,
ld_x_lotyp  TYPE STRING ,
ld_x_proid  TYPE STRING ,
ld_x_lockr  TYPE STRING ,
ld_x_fdate  TYPE STRING ,
ld_x_tdate  TYPE STRING ,
ld_x_gpart  TYPE STRING ,
ld_x_vkont  TYPE STRING ,
ld__scope  TYPE STRING ,
ld__synchron  TYPE STRING ,
ld__collect  TYPE DDENQCOLL .

ld_mode_dfkklocks = 'Check type of data required'.

SELECT single CLIENT
FROM DFKKLOCKS
INTO ld_client.


SELECT single LOOBJ1
FROM DFKKLOCKS
INTO ld_loobj1.


SELECT single LOTYP
FROM DFKKLOCKS
INTO ld_lotyp.


SELECT single PROID
FROM DFKKLOCKS
INTO ld_proid.


SELECT single LOCKR
FROM DFKKLOCKS
INTO ld_lockr.


SELECT single FDATE
FROM DFKKLOCKS
INTO ld_fdate.


SELECT single TDATE
FROM DFKKLOCKS
INTO ld_tdate.


SELECT single GPART
FROM DFKKLOCKS
INTO ld_gpart.


SELECT single VKONT
FROM DFKKLOCKS
INTO ld_vkont.

ld_x_loobj1 = 'some text here'.
ld_x_lotyp = 'some text here'.
ld_x_proid = 'some text here'.
ld_x_lockr = 'some text here'.
ld_x_fdate = 'some text here'.
ld_x_tdate = 'some text here'.
ld_x_gpart = 'some text here'.
ld_x_vkont = 'some text here'.
ld__scope = 'some text here'.
ld__synchron = 'some text here'.
ld__collect = 'Check type of data required'.

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_EFKKLOCKS or its description.