DEQUEUE_EWCACN 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_EWCACN into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
DWBEN/SAPLWEN0000
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'DEQUEUE_EWCACN' "Release lock on object EWCACN
* EXPORTING
* mode_wcacn = 'E' " enqmode Lock mode for table WCACN
* mandt = SY-MANDT " wcacn-mandt 01th enqueue argument
* prttyp = " wcacn-prttyp 02th enqueue argument
* iwerk = " wcacn-iwerk 03th enqueue argument
* ccobj = " wcacn-ccobj 04th enqueue argument
* cctyp = " wcacn-cctyp 05th enqueue argument
* tggrp = " wcacn-tggrp 06th enqueue argument
* actproc = " wcacn-actproc 07th enqueue argument
* acttyp = " wcacn-acttyp 08th enqueue argument
* objnr = " wcacn-objnr 09th enqueue argument
* x_prttyp = SPACE " Fill argument 02 with initial value?
* x_iwerk = SPACE " Fill argument 03 with initial value?
* x_ccobj = SPACE " Fill argument 04 with initial value?
* x_cctyp = SPACE " Fill argument 05 with initial value?
* x_tggrp = SPACE " Fill argument 06 with initial value?
* x_actproc = SPACE " Fill argument 07 with initial value?
* x_acttyp = SPACE " Fill argument 08 with initial value?
* x_objnr = SPACE " Fill argument 09 with initial value?
* _scope = '3' "
* _synchron = SPACE " Synchonous unlock
* _collect = ' ' " ddenqcoll Initially only collect lock
. " DEQUEUE_EWCACN
The ABAP code below is a full code listing to execute function module DEQUEUE_EWCACN 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_wcacn) = 'Check type of data required'.
SELECT single MANDT
FROM WCACN
INTO @DATA(ld_mandt).
SELECT single PRTTYP
FROM WCACN
INTO @DATA(ld_prttyp).
SELECT single IWERK
FROM WCACN
INTO @DATA(ld_iwerk).
SELECT single CCOBJ
FROM WCACN
INTO @DATA(ld_ccobj).
SELECT single CCTYP
FROM WCACN
INTO @DATA(ld_cctyp).
SELECT single TGGRP
FROM WCACN
INTO @DATA(ld_tggrp).
SELECT single ACTPROC
FROM WCACN
INTO @DATA(ld_actproc).
SELECT single ACTTYP
FROM WCACN
INTO @DATA(ld_acttyp).
SELECT single OBJNR
FROM WCACN
INTO @DATA(ld_objnr).
DATA(ld_x_prttyp) = 'some text here'.
DATA(ld_x_iwerk) = 'some text here'.
DATA(ld_x_ccobj) = 'some text here'.
DATA(ld_x_cctyp) = 'some text here'.
DATA(ld_x_tggrp) = 'some text here'.
DATA(ld_x_actproc) = 'some text here'.
DATA(ld_x_acttyp) = 'some text here'.
DATA(ld_x_objnr) = '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_EWCACN' * EXPORTING * mode_wcacn = ld_mode_wcacn * mandt = ld_mandt * prttyp = ld_prttyp * iwerk = ld_iwerk * ccobj = ld_ccobj * cctyp = ld_cctyp * tggrp = ld_tggrp * actproc = ld_actproc * acttyp = ld_acttyp * objnr = ld_objnr * x_prttyp = ld_x_prttyp * x_iwerk = ld_x_iwerk * x_ccobj = ld_x_ccobj * x_cctyp = ld_x_cctyp * x_tggrp = ld_x_tggrp * x_actproc = ld_x_actproc * x_acttyp = ld_x_acttyp * x_objnr = ld_x_objnr * _scope = ld__scope * _synchron = ld__synchron * _collect = ld__collect . " DEQUEUE_EWCACN
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_wcacn | TYPE ENQMODE , |
| ld_mandt | TYPE WCACN-MANDT , |
| ld_prttyp | TYPE WCACN-PRTTYP , |
| ld_iwerk | TYPE WCACN-IWERK , |
| ld_ccobj | TYPE WCACN-CCOBJ , |
| ld_cctyp | TYPE WCACN-CCTYP , |
| ld_tggrp | TYPE WCACN-TGGRP , |
| ld_actproc | TYPE WCACN-ACTPROC , |
| ld_acttyp | TYPE WCACN-ACTTYP , |
| ld_objnr | TYPE WCACN-OBJNR , |
| ld_x_prttyp | TYPE STRING , |
| ld_x_iwerk | TYPE STRING , |
| ld_x_ccobj | TYPE STRING , |
| ld_x_cctyp | TYPE STRING , |
| ld_x_tggrp | TYPE STRING , |
| ld_x_actproc | TYPE STRING , |
| ld_x_acttyp | TYPE STRING , |
| ld_x_objnr | 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_EWCACN or its description.