DEQUEUE_EMMATAE 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_EMMATAE into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
DWBEN/SAPLMEN0000
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'DEQUEUE_EMMATAE' "Release lock on object EMMATAE
* EXPORTING
* mode_mara = 'E' " enqmode Lock mode for table MARA
* mode_mvke = 'E' " enqmode Lock mode for table MVKE
* mode_mbew = 'E' " enqmode Lock mode for table MBEW
* mode_mlgn = 'E' " enqmode Lock mode for table MLGN
* mode_marc = 'E' " enqmode Lock mode for table MARC
* mandt = SY-MANDT " mara-mandt 01th enqueue argument
* matnr = " mara-matnr 02th enqueue argument
* vkorg = " mvke-vkorg 03th enqueue argument
* vtweg = " mvke-vtweg 04th enqueue argument
* bwkey = " mbew-bwkey 05th enqueue argument
* bwtar = " mbew-bwtar 06th enqueue argument
* lgnum = " mlgn-lgnum 07th enqueue argument
* werks = " marc-werks 08th enqueue argument
* x_matnr = SPACE " Fill argument 02 with initial value?
* x_vkorg = SPACE " Fill argument 03 with initial value?
* x_vtweg = SPACE " Fill argument 04 with initial value?
* x_bwkey = SPACE " Fill argument 05 with initial value?
* x_bwtar = SPACE " Fill argument 06 with initial value?
* x_lgnum = SPACE " Fill argument 07 with initial value?
* x_werks = SPACE " Fill argument 08 with initial value?
* _scope = '3' "
* _synchron = SPACE " Synchonous unlock
* _collect = ' ' " ddenqcoll Initially only collect lock
. " DEQUEUE_EMMATAE
The ABAP code below is a full code listing to execute function module DEQUEUE_EMMATAE 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_mara) = 'Check type of data required'.
DATA(ld_mode_mvke) = 'Check type of data required'.
DATA(ld_mode_mbew) = 'Check type of data required'.
DATA(ld_mode_mlgn) = 'Check type of data required'.
DATA(ld_mode_marc) = 'Check type of data required'.
SELECT single MANDT
FROM MARA
INTO @DATA(ld_mandt).
SELECT single MATNR
FROM MARA
INTO @DATA(ld_matnr).
SELECT single VKORG
FROM MVKE
INTO @DATA(ld_vkorg).
SELECT single VTWEG
FROM MVKE
INTO @DATA(ld_vtweg).
SELECT single BWKEY
FROM MBEW
INTO @DATA(ld_bwkey).
SELECT single BWTAR
FROM MBEW
INTO @DATA(ld_bwtar).
SELECT single LGNUM
FROM MLGN
INTO @DATA(ld_lgnum).
SELECT single WERKS
FROM MARC
INTO @DATA(ld_werks).
DATA(ld_x_matnr) = 'some text here'.
DATA(ld_x_vkorg) = 'some text here'.
DATA(ld_x_vtweg) = 'some text here'.
DATA(ld_x_bwkey) = 'some text here'.
DATA(ld_x_bwtar) = 'some text here'.
DATA(ld_x_lgnum) = 'some text here'.
DATA(ld_x_werks) = '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_EMMATAE' * EXPORTING * mode_mara = ld_mode_mara * mode_mvke = ld_mode_mvke * mode_mbew = ld_mode_mbew * mode_mlgn = ld_mode_mlgn * mode_marc = ld_mode_marc * mandt = ld_mandt * matnr = ld_matnr * vkorg = ld_vkorg * vtweg = ld_vtweg * bwkey = ld_bwkey * bwtar = ld_bwtar * lgnum = ld_lgnum * werks = ld_werks * x_matnr = ld_x_matnr * x_vkorg = ld_x_vkorg * x_vtweg = ld_x_vtweg * x_bwkey = ld_x_bwkey * x_bwtar = ld_x_bwtar * x_lgnum = ld_x_lgnum * x_werks = ld_x_werks * _scope = ld__scope * _synchron = ld__synchron * _collect = ld__collect . " DEQUEUE_EMMATAE
IF SY-SUBRC EQ 0. "All OK ENDIF.
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_mara | TYPE ENQMODE , |
| ld_mode_mvke | TYPE ENQMODE , |
| ld_mode_mbew | TYPE ENQMODE , |
| ld_mode_mlgn | TYPE ENQMODE , |
| ld_mode_marc | TYPE ENQMODE , |
| ld_mandt | TYPE MARA-MANDT , |
| ld_matnr | TYPE MARA-MATNR , |
| ld_vkorg | TYPE MVKE-VKORG , |
| ld_vtweg | TYPE MVKE-VTWEG , |
| ld_bwkey | TYPE MBEW-BWKEY , |
| ld_bwtar | TYPE MBEW-BWTAR , |
| ld_lgnum | TYPE MLGN-LGNUM , |
| ld_werks | TYPE MARC-WERKS , |
| ld_x_matnr | TYPE STRING , |
| ld_x_vkorg | TYPE STRING , |
| ld_x_vtweg | TYPE STRING , |
| ld_x_bwkey | TYPE STRING , |
| ld_x_bwtar | TYPE STRING , |
| ld_x_lgnum | TYPE STRING , |
| ld_x_werks | TYPE STRING , |
| ld__scope | TYPE STRING , |
| ld__synchron | TYPE STRING , |
| ld__collect | TYPE DDENQCOLL . |
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_EMMATAE or its description.
DEQUEUE_EMMATAE - Release lock on object EMMATAE DEQUEUE_EMMARMS - Release lock on object EMMARMS DEQUEUE_EMMARME - Release lock on object EMMARME DEQUEUE_EMMARCS - Release lock on object EMMARCS DEQUEUE_EMMARCE_VRBMT - Release lock on object EMMARCE_VRBMT DEQUEUE_EMMARCE_NFMAT - Release lock on object EMMARCE_NFMAT