SAP Function Modules

DEQUEUE_EFKKCRESCH SAP Function module - Release lock on object EFKKCRESCH







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

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


Pattern for FM DEQUEUE_EFKKCRESCH - DEQUEUE EFKKCRESCH





CALL FUNCTION 'DEQUEUE_EFKKCRESCH' "Release lock on object EFKKCRESCH
* EXPORTING
*   mode_dfkkcresch = 'E'       " enqmode       Lock mode for table DFKKCRESCH
*   mandt = SY-MANDT            " dfkkcresch-mandt  01th enqueue argument
*   herkf =                     " dfkkcresch-herkf  02th enqueue argument
*   org1t =                     " dfkkcresch-org1t  03th enqueue argument
*   org1r =                     " dfkkcresch-org1r  04th enqueue argument
*   hbkid =                     " dfkkcresch-hbkid  05th enqueue argument
*   hktid =                     " dfkkcresch-hktid  06th enqueue argument
*   ztart =                     " dfkkcresch-ztart  07th enqueue argument
*   ztnum =                     " dfkkcresch-ztnum  08th enqueue argument
*   x_herkf = SPACE             "               Fill argument 02 with initial value?
*   x_org1t = SPACE             "               Fill argument 03 with initial value?
*   x_org1r = SPACE             "               Fill argument 04 with initial value?
*   x_hbkid = SPACE             "               Fill argument 05 with initial value?
*   x_hktid = SPACE             "               Fill argument 06 with initial value?
*   x_ztart = SPACE             "               Fill argument 07 with initial value?
*   x_ztnum = SPACE             "               Fill argument 08 with initial value?
*   _scope = '3'                "
*   _synchron = SPACE           "               Synchonous unlock
*   _collect = ' '              " ddenqcoll     Initially only collect lock
    .  "  DEQUEUE_EFKKCRESCH

ABAP code example for Function Module DEQUEUE_EFKKCRESCH





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

SELECT single MANDT
FROM DFKKCRESCH
INTO @DATA(ld_mandt).


SELECT single HERKF
FROM DFKKCRESCH
INTO @DATA(ld_herkf).


SELECT single ORG1T
FROM DFKKCRESCH
INTO @DATA(ld_org1t).


SELECT single ORG1R
FROM DFKKCRESCH
INTO @DATA(ld_org1r).


SELECT single HBKID
FROM DFKKCRESCH
INTO @DATA(ld_hbkid).


SELECT single HKTID
FROM DFKKCRESCH
INTO @DATA(ld_hktid).


SELECT single ZTART
FROM DFKKCRESCH
INTO @DATA(ld_ztart).


SELECT single ZTNUM
FROM DFKKCRESCH
INTO @DATA(ld_ztnum).

DATA(ld_x_herkf) = 'some text here'.
DATA(ld_x_org1t) = 'some text here'.
DATA(ld_x_org1r) = 'some text here'.
DATA(ld_x_hbkid) = 'some text here'.
DATA(ld_x_hktid) = 'some text here'.
DATA(ld_x_ztart) = 'some text here'.
DATA(ld_x_ztnum) = '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_EFKKCRESCH' * EXPORTING * mode_dfkkcresch = ld_mode_dfkkcresch * mandt = ld_mandt * herkf = ld_herkf * org1t = ld_org1t * org1r = ld_org1r * hbkid = ld_hbkid * hktid = ld_hktid * ztart = ld_ztart * ztnum = ld_ztnum * x_herkf = ld_x_herkf * x_org1t = ld_x_org1t * x_org1r = ld_x_org1r * x_hbkid = ld_x_hbkid * x_hktid = ld_x_hktid * x_ztart = ld_x_ztart * x_ztnum = ld_x_ztnum * _scope = ld__scope * _synchron = ld__synchron * _collect = ld__collect . " DEQUEUE_EFKKCRESCH
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_dfkkcresch  TYPE ENQMODE ,
ld_mandt  TYPE DFKKCRESCH-MANDT ,
ld_herkf  TYPE DFKKCRESCH-HERKF ,
ld_org1t  TYPE DFKKCRESCH-ORG1T ,
ld_org1r  TYPE DFKKCRESCH-ORG1R ,
ld_hbkid  TYPE DFKKCRESCH-HBKID ,
ld_hktid  TYPE DFKKCRESCH-HKTID ,
ld_ztart  TYPE DFKKCRESCH-ZTART ,
ld_ztnum  TYPE DFKKCRESCH-ZTNUM ,
ld_x_herkf  TYPE STRING ,
ld_x_org1t  TYPE STRING ,
ld_x_org1r  TYPE STRING ,
ld_x_hbkid  TYPE STRING ,
ld_x_hktid  TYPE STRING ,
ld_x_ztart  TYPE STRING ,
ld_x_ztnum  TYPE STRING ,
ld__scope  TYPE STRING ,
ld__synchron  TYPE STRING ,
ld__collect  TYPE DDENQCOLL .

ld_mode_dfkkcresch = 'Check type of data required'.

SELECT single MANDT
FROM DFKKCRESCH
INTO ld_mandt.


SELECT single HERKF
FROM DFKKCRESCH
INTO ld_herkf.


SELECT single ORG1T
FROM DFKKCRESCH
INTO ld_org1t.


SELECT single ORG1R
FROM DFKKCRESCH
INTO ld_org1r.


SELECT single HBKID
FROM DFKKCRESCH
INTO ld_hbkid.


SELECT single HKTID
FROM DFKKCRESCH
INTO ld_hktid.


SELECT single ZTART
FROM DFKKCRESCH
INTO ld_ztart.


SELECT single ZTNUM
FROM DFKKCRESCH
INTO ld_ztnum.

ld_x_herkf = 'some text here'.
ld_x_org1t = 'some text here'.
ld_x_org1r = 'some text here'.
ld_x_hbkid = 'some text here'.
ld_x_hktid = 'some text here'.
ld_x_ztart = 'some text here'.
ld_x_ztnum = '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_EFKKCRESCH or its description.