SAP DEQUEUE_ETCATTS Function Module for Release lock on object ETCATTS









DEQUEUE_ETCATTS is a standard dequeue etcatts SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Release lock on object ETCATTS processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for dequeue etcatts FM, simply by entering the name DEQUEUE_ETCATTS into the relevant SAP transaction such as SE37 or SE38.

Function Group: /1BCDWBEN/KEN0000
Program Name: /1BCDWBEN/SAPLKEN0000
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function DEQUEUE_ETCATTS pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'DEQUEUE_ETCATTS'"Release lock on object ETCATTS
EXPORTING
* MODE_TCATTS = 'E' "Lock mode for table TCATTS
* _COLLECT = ' ' "Initially only collect lock
* MODE_TINTERFACE = 'E' "Lock mode for table TINTERFACE
* MODE_TDEPEND = 'E' "Lock mode for table TDEPEND
* CATT = "01th enqueue argument
* FIELD = "02th enqueue argument
* X_CATT = ' ' "Fill argument 01 with initial value?
* X_FIELD = ' ' "Fill argument 02 with initial value?
* _SCOPE = '3' "
* _SYNCHRON = ' ' "Synchonous unlock
.



IMPORTING Parameters details for DEQUEUE_ETCATTS

MODE_TCATTS - Lock mode for table TCATTS

Data type: ENQMODE
Default: 'E'
Optional: Yes
Call by Reference: No ( called with pass by value option)

_COLLECT - Initially only collect lock

Data type: DDENQCOLL
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

MODE_TINTERFACE - Lock mode for table TINTERFACE

Data type: ENQMODE
Default: 'E'
Optional: Yes
Call by Reference: No ( called with pass by value option)

MODE_TDEPEND - Lock mode for table TDEPEND

Data type: ENQMODE
Default: 'E'
Optional: Yes
Call by Reference: No ( called with pass by value option)

CATT - 01th enqueue argument

Data type: TCATTS-CATT
Optional: Yes
Call by Reference: No ( called with pass by value option)

FIELD - 02th enqueue argument

Data type: TINTERFACE-FIELD
Optional: Yes
Call by Reference: No ( called with pass by value option)

X_CATT - Fill argument 01 with initial value?

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

X_FIELD - Fill argument 02 with initial value?

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

_SCOPE -

Data type:
Default: '3'
Optional: Yes
Call by Reference: No ( called with pass by value option)

_SYNCHRON - Synchonous unlock

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for DEQUEUE_ETCATTS Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than 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 newer method of declaring data variables on the fly. 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), which i why i have stuck to the origianl for this example.

DATA:
lv_mode_tcatts  TYPE ENQMODE, "   'E'
lv__collect  TYPE DDENQCOLL, "   ' '
lv_mode_tinterface  TYPE ENQMODE, "   'E'
lv_mode_tdepend  TYPE ENQMODE, "   'E'
lv_catt  TYPE TCATTS-CATT, "   
lv_field  TYPE TINTERFACE-FIELD, "   
lv_x_catt  TYPE TINTERFACE, "   SPACE
lv_x_field  TYPE TINTERFACE, "   SPACE
lv__scope  TYPE TINTERFACE, "   '3'
lv__synchron  TYPE TINTERFACE. "   SPACE

  CALL FUNCTION 'DEQUEUE_ETCATTS'  "Release lock on object ETCATTS
    EXPORTING
         MODE_TCATTS = lv_mode_tcatts
         _COLLECT = lv__collect
         MODE_TINTERFACE = lv_mode_tinterface
         MODE_TDEPEND = lv_mode_tdepend
         CATT = lv_catt
         FIELD = lv_field
         X_CATT = lv_x_catt
         X_FIELD = lv_x_field
         _SCOPE = lv__scope
         _SYNCHRON = lv__synchron
. " DEQUEUE_ETCATTS




ABAP code using 7.40 inline data declarations to call FM DEQUEUE_ETCATTS

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

DATA(ld_mode_tcatts) = 'E'.
 
DATA(ld__collect) = ' '.
 
DATA(ld_mode_tinterface) = 'E'.
 
DATA(ld_mode_tdepend) = 'E'.
 
"SELECT single CATT FROM TCATTS INTO @DATA(ld_catt).
 
"SELECT single FIELD FROM TINTERFACE INTO @DATA(ld_field).
 
DATA(ld_x_catt) = ' '.
 
DATA(ld_x_field) = ' '.
 
DATA(ld__scope) = '3'.
 
DATA(ld__synchron) = ' '.
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!