SAP Function Modules

DEQUEUE_EFMAPSTAT SAP Function module - Release lock on object EFMAPSTAT







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

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


Pattern for FM DEQUEUE_EFMAPSTAT - DEQUEUE EFMAPSTAT





CALL FUNCTION 'DEQUEUE_EFMAPSTAT' "Release lock on object EFMAPSTAT
* EXPORTING
*   mode_fmapstat = 'E'         " enqmode       Lock mode for table FMAPSTAT
*   mandt = SY-MANDT            " fmapstat-mandt  01th enqueue argument
*   fikrs =                     " fmapstat-fikrs  02th enqueue argument
*   hivers =                    " fmapstat-hivers  03th enqueue argument
*   gjahr =                     " fmapstat-gjahr  04th enqueue argument
*   ctr_objnr =                 " fmapstat-ctr_objnr  05th enqueue argument
*   posit =                     " fmapstat-posit  06th enqueue argument
*   geber =                     " fmapstat-geber  07th enqueue argument
*   datbis =                    " fmapstat-datbis  08th enqueue argument
*   x_fikrs = SPACE             "               Fill argument 02 with initial value?
*   x_hivers = SPACE            "               Fill argument 03 with initial value?
*   x_gjahr = SPACE             "               Fill argument 04 with initial value?
*   x_ctr_objnr = SPACE         "               Fill argument 05 with initial value?
*   x_posit = SPACE             "               Fill argument 06 with initial value?
*   x_geber = SPACE             "               Fill argument 07 with initial value?
*   x_datbis = SPACE            "               Fill argument 08 with initial value?
*   _scope = '3'                "
*   _synchron = SPACE           "               Synchonous unlock
*   _collect = ' '              " ddenqcoll     Initially only collect lock
    .  "  DEQUEUE_EFMAPSTAT

ABAP code example for Function Module DEQUEUE_EFMAPSTAT





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

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


SELECT single FIKRS
FROM FMAPSTAT
INTO @DATA(ld_fikrs).


SELECT single HIVERS
FROM FMAPSTAT
INTO @DATA(ld_hivers).


SELECT single GJAHR
FROM FMAPSTAT
INTO @DATA(ld_gjahr).


SELECT single CTR_OBJNR
FROM FMAPSTAT
INTO @DATA(ld_ctr_objnr).


SELECT single POSIT
FROM FMAPSTAT
INTO @DATA(ld_posit).


SELECT single GEBER
FROM FMAPSTAT
INTO @DATA(ld_geber).


SELECT single DATBIS
FROM FMAPSTAT
INTO @DATA(ld_datbis).

DATA(ld_x_fikrs) = 'some text here'.
DATA(ld_x_hivers) = 'some text here'.
DATA(ld_x_gjahr) = 'some text here'.
DATA(ld_x_ctr_objnr) = 'some text here'.
DATA(ld_x_posit) = 'some text here'.
DATA(ld_x_geber) = 'some text here'.
DATA(ld_x_datbis) = '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_EFMAPSTAT' * EXPORTING * mode_fmapstat = ld_mode_fmapstat * mandt = ld_mandt * fikrs = ld_fikrs * hivers = ld_hivers * gjahr = ld_gjahr * ctr_objnr = ld_ctr_objnr * posit = ld_posit * geber = ld_geber * datbis = ld_datbis * x_fikrs = ld_x_fikrs * x_hivers = ld_x_hivers * x_gjahr = ld_x_gjahr * x_ctr_objnr = ld_x_ctr_objnr * x_posit = ld_x_posit * x_geber = ld_x_geber * x_datbis = ld_x_datbis * _scope = ld__scope * _synchron = ld__synchron * _collect = ld__collect . " DEQUEUE_EFMAPSTAT
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_fmapstat  TYPE ENQMODE ,
ld_mandt  TYPE FMAPSTAT-MANDT ,
ld_fikrs  TYPE FMAPSTAT-FIKRS ,
ld_hivers  TYPE FMAPSTAT-HIVERS ,
ld_gjahr  TYPE FMAPSTAT-GJAHR ,
ld_ctr_objnr  TYPE FMAPSTAT-CTR_OBJNR ,
ld_posit  TYPE FMAPSTAT-POSIT ,
ld_geber  TYPE FMAPSTAT-GEBER ,
ld_datbis  TYPE FMAPSTAT-DATBIS ,
ld_x_fikrs  TYPE STRING ,
ld_x_hivers  TYPE STRING ,
ld_x_gjahr  TYPE STRING ,
ld_x_ctr_objnr  TYPE STRING ,
ld_x_posit  TYPE STRING ,
ld_x_geber  TYPE STRING ,
ld_x_datbis  TYPE STRING ,
ld__scope  TYPE STRING ,
ld__synchron  TYPE STRING ,
ld__collect  TYPE DDENQCOLL .

ld_mode_fmapstat = 'Check type of data required'.

SELECT single MANDT
FROM FMAPSTAT
INTO ld_mandt.


SELECT single FIKRS
FROM FMAPSTAT
INTO ld_fikrs.


SELECT single HIVERS
FROM FMAPSTAT
INTO ld_hivers.


SELECT single GJAHR
FROM FMAPSTAT
INTO ld_gjahr.


SELECT single CTR_OBJNR
FROM FMAPSTAT
INTO ld_ctr_objnr.


SELECT single POSIT
FROM FMAPSTAT
INTO ld_posit.


SELECT single GEBER
FROM FMAPSTAT
INTO ld_geber.


SELECT single DATBIS
FROM FMAPSTAT
INTO ld_datbis.

ld_x_fikrs = 'some text here'.
ld_x_hivers = 'some text here'.
ld_x_gjahr = 'some text here'.
ld_x_ctr_objnr = 'some text here'.
ld_x_posit = 'some text here'.
ld_x_geber = 'some text here'.
ld_x_datbis = '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_EFMAPSTAT or its description.