SAP Function Modules

DEQUEUE_E_LS_LOCTT SAP Function module - Release lock on object E_LS_LOCTT







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

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


Pattern for FM DEQUEUE_E_LS_LOCTT - DEQUEUE E LS LOCTT





CALL FUNCTION 'DEQUEUE_E_LS_LOCTT' "Release lock on object E_LS_LOCTT
* EXPORTING
*   mode_sls_loctty = 'E'       " enqmode       Lock mode for table SLS_LOCTTY
*   mandt = SY-MANDT            " sls_loctty-mandt  01th enqueue argument
*   plvar =                     " sls_loctty-plvar  02th enqueue argument
*   locid =                     " sls_loctty-locid  03th enqueue argument
*   ttyid =                     " sls_loctty-ttyid  04th enqueue argument
*   class =                     " sls_loctty-class  05th enqueue argument
*   guid =                      " sls_loctty-guid  06th enqueue argument
*   var4 =                      " sls_loctty-var4  07th enqueue argument
*   begda =                     " sls_loctty-begda  08th enqueue argument
*   x_plvar = SPACE             "               Fill argument 02 with initial value?
*   x_locid = SPACE             "               Fill argument 03 with initial value?
*   x_ttyid = SPACE             "               Fill argument 04 with initial value?
*   x_class = SPACE             "               Fill argument 05 with initial value?
*   x_guid = SPACE              "               Fill argument 06 with initial value?
*   x_var4 = SPACE              "               Fill argument 07 with initial value?
*   x_begda = SPACE             "               Fill argument 08 with initial value?
*   _scope = '3'                "
*   _synchron = SPACE           "               Synchonous unlock
*   _collect = ' '              " ddenqcoll     Initially only collect lock
    .  "  DEQUEUE_E_LS_LOCTT

ABAP code example for Function Module DEQUEUE_E_LS_LOCTT





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

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


SELECT single PLVAR
FROM SLS_LOCTTY
INTO @DATA(ld_plvar).


SELECT single LOCID
FROM SLS_LOCTTY
INTO @DATA(ld_locid).


SELECT single TTYID
FROM SLS_LOCTTY
INTO @DATA(ld_ttyid).


SELECT single CLASS
FROM SLS_LOCTTY
INTO @DATA(ld_class).


SELECT single GUID
FROM SLS_LOCTTY
INTO @DATA(ld_guid).


SELECT single VAR4
FROM SLS_LOCTTY
INTO @DATA(ld_var4).


SELECT single BEGDA
FROM SLS_LOCTTY
INTO @DATA(ld_begda).

DATA(ld_x_plvar) = 'some text here'.
DATA(ld_x_locid) = 'some text here'.
DATA(ld_x_ttyid) = 'some text here'.
DATA(ld_x_class) = 'some text here'.
DATA(ld_x_guid) = 'some text here'.
DATA(ld_x_var4) = 'some text here'.
DATA(ld_x_begda) = '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_E_LS_LOCTT' * EXPORTING * mode_sls_loctty = ld_mode_sls_loctty * mandt = ld_mandt * plvar = ld_plvar * locid = ld_locid * ttyid = ld_ttyid * class = ld_class * guid = ld_guid * var4 = ld_var4 * begda = ld_begda * x_plvar = ld_x_plvar * x_locid = ld_x_locid * x_ttyid = ld_x_ttyid * x_class = ld_x_class * x_guid = ld_x_guid * x_var4 = ld_x_var4 * x_begda = ld_x_begda * _scope = ld__scope * _synchron = ld__synchron * _collect = ld__collect . " DEQUEUE_E_LS_LOCTT
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_sls_loctty  TYPE ENQMODE ,
ld_mandt  TYPE SLS_LOCTTY-MANDT ,
ld_plvar  TYPE SLS_LOCTTY-PLVAR ,
ld_locid  TYPE SLS_LOCTTY-LOCID ,
ld_ttyid  TYPE SLS_LOCTTY-TTYID ,
ld_class  TYPE SLS_LOCTTY-CLASS ,
ld_guid  TYPE SLS_LOCTTY-GUID ,
ld_var4  TYPE SLS_LOCTTY-VAR4 ,
ld_begda  TYPE SLS_LOCTTY-BEGDA ,
ld_x_plvar  TYPE STRING ,
ld_x_locid  TYPE STRING ,
ld_x_ttyid  TYPE STRING ,
ld_x_class  TYPE STRING ,
ld_x_guid  TYPE STRING ,
ld_x_var4  TYPE STRING ,
ld_x_begda  TYPE STRING ,
ld__scope  TYPE STRING ,
ld__synchron  TYPE STRING ,
ld__collect  TYPE DDENQCOLL .

ld_mode_sls_loctty = 'Check type of data required'.

SELECT single MANDT
FROM SLS_LOCTTY
INTO ld_mandt.


SELECT single PLVAR
FROM SLS_LOCTTY
INTO ld_plvar.


SELECT single LOCID
FROM SLS_LOCTTY
INTO ld_locid.


SELECT single TTYID
FROM SLS_LOCTTY
INTO ld_ttyid.


SELECT single CLASS
FROM SLS_LOCTTY
INTO ld_class.


SELECT single GUID
FROM SLS_LOCTTY
INTO ld_guid.


SELECT single VAR4
FROM SLS_LOCTTY
INTO ld_var4.


SELECT single BEGDA
FROM SLS_LOCTTY
INTO ld_begda.

ld_x_plvar = 'some text here'.
ld_x_locid = 'some text here'.
ld_x_ttyid = 'some text here'.
ld_x_class = 'some text here'.
ld_x_guid = 'some text here'.
ld_x_var4 = 'some text here'.
ld_x_begda = '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_E_LS_LOCTT or its description.