SAP DEQUEUE_BDC_QID Function Module for Release lock on object BDC_QID
DEQUEUE_BDC_QID is a standard dequeue bdc qid 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 BDC_QID 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 bdc qid FM, simply by entering the name DEQUEUE_BDC_QID into the relevant SAP transaction such as SE37 or SE38.
Function Group: /1BCDWBEN/SEN0001
Program Name: /1BCDWBEN/SAPLSEN0001
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function DEQUEUE_BDC_QID 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_BDC_QID'"Release lock on object BDC_QID.
EXPORTING
* MODE_APQI = 'E' "Lock mode for table APQI
* QID = "09th enqueue argument
* X_DESTSYS = ' ' "Fill argument 01 with initial value?
* X_DESTAPP = ' ' "Fill argument 02 with initial value?
* X_DATATYP = ' ' "Fill argument 03 with initial value?
* X_GROUPID = ' ' "Fill argument 05 with initial value?
* X_PROGID = ' ' "Fill argument 06 with initial value?
* X_FORMID = ' ' "Fill argument 07 with initial value?
* X_QATTRIB = ' ' "Fill argument 08 with initial value?
* X_QID = ' ' "Fill argument 09 with initial value?
* _SCOPE = '3' "
* DESTSYS = "01th enqueue argument
* _SYNCHRON = ' ' "Synchonous unlock
* _COLLECT = ' ' "Initially only collect lock
* DESTAPP = "02th enqueue argument
* DATATYP = "03th enqueue argument
* MANDANT = SY-MANDT "04th enqueue argument
* GROUPID = "05th enqueue argument
* PROGID = "06th enqueue argument
* FORMID = "07th enqueue argument
* QATTRIB = "08th enqueue argument
IMPORTING Parameters details for DEQUEUE_BDC_QID
MODE_APQI - Lock mode for table APQI
Data type: ENQMODEDefault: 'E'
Optional: Yes
Call by Reference: No ( called with pass by value option)
QID - 09th enqueue argument
Data type: APQI-QIDOptional: Yes
Call by Reference: No ( called with pass by value option)
X_DESTSYS - Fill argument 01 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_DESTAPP - Fill argument 02 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_DATATYP - Fill argument 03 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_GROUPID - Fill argument 05 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_PROGID - Fill argument 06 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_FORMID - Fill argument 07 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_QATTRIB - Fill argument 08 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_QID - Fill argument 09 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)
DESTSYS - 01th enqueue argument
Data type: APQI-DESTSYSOptional: 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)
_COLLECT - Initially only collect lock
Data type: DDENQCOLLDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
DESTAPP - 02th enqueue argument
Data type: APQI-DESTAPPOptional: Yes
Call by Reference: No ( called with pass by value option)
DATATYP - 03th enqueue argument
Data type: APQI-DATATYPOptional: Yes
Call by Reference: No ( called with pass by value option)
MANDANT - 04th enqueue argument
Data type: APQI-MANDANTDefault: SY-MANDT
Optional: Yes
Call by Reference: No ( called with pass by value option)
GROUPID - 05th enqueue argument
Data type: APQI-GROUPIDOptional: Yes
Call by Reference: No ( called with pass by value option)
PROGID - 06th enqueue argument
Data type: APQI-PROGIDOptional: Yes
Call by Reference: No ( called with pass by value option)
FORMID - 07th enqueue argument
Data type: APQI-FORMIDOptional: Yes
Call by Reference: No ( called with pass by value option)
QATTRIB - 08th enqueue argument
Data type: APQI-QATTRIBOptional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for DEQUEUE_BDC_QID 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_apqi | TYPE ENQMODE, " 'E' | |||
lv_qid | TYPE APQI-QID, " | |||
lv_x_destsys | TYPE APQI, " SPACE | |||
lv_x_destapp | TYPE APQI, " SPACE | |||
lv_x_datatyp | TYPE APQI, " SPACE | |||
lv_x_groupid | TYPE APQI, " SPACE | |||
lv_x_progid | TYPE APQI, " SPACE | |||
lv_x_formid | TYPE APQI, " SPACE | |||
lv_x_qattrib | TYPE APQI, " SPACE | |||
lv_x_qid | TYPE APQI, " SPACE | |||
lv__scope | TYPE APQI, " '3' | |||
lv_destsys | TYPE APQI-DESTSYS, " | |||
lv__synchron | TYPE APQI, " SPACE | |||
lv__collect | TYPE DDENQCOLL, " ' ' | |||
lv_destapp | TYPE APQI-DESTAPP, " | |||
lv_datatyp | TYPE APQI-DATATYP, " | |||
lv_mandant | TYPE APQI-MANDANT, " SY-MANDT | |||
lv_groupid | TYPE APQI-GROUPID, " | |||
lv_progid | TYPE APQI-PROGID, " | |||
lv_formid | TYPE APQI-FORMID, " | |||
lv_qattrib | TYPE APQI-QATTRIB. " |
  CALL FUNCTION 'DEQUEUE_BDC_QID' "Release lock on object BDC_QID |
EXPORTING | ||
MODE_APQI | = lv_mode_apqi | |
QID | = lv_qid | |
X_DESTSYS | = lv_x_destsys | |
X_DESTAPP | = lv_x_destapp | |
X_DATATYP | = lv_x_datatyp | |
X_GROUPID | = lv_x_groupid | |
X_PROGID | = lv_x_progid | |
X_FORMID | = lv_x_formid | |
X_QATTRIB | = lv_x_qattrib | |
X_QID | = lv_x_qid | |
_SCOPE | = lv__scope | |
DESTSYS | = lv_destsys | |
_SYNCHRON | = lv__synchron | |
_COLLECT | = lv__collect | |
DESTAPP | = lv_destapp | |
DATATYP | = lv_datatyp | |
MANDANT | = lv_mandant | |
GROUPID | = lv_groupid | |
PROGID | = lv_progid | |
FORMID | = lv_formid | |
QATTRIB | = lv_qattrib | |
. " DEQUEUE_BDC_QID |
ABAP code using 7.40 inline data declarations to call FM DEQUEUE_BDC_QID
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_apqi) | = 'E'. | |||
"SELECT single QID FROM APQI INTO @DATA(ld_qid). | ||||
DATA(ld_x_destsys) | = ' '. | |||
DATA(ld_x_destapp) | = ' '. | |||
DATA(ld_x_datatyp) | = ' '. | |||
DATA(ld_x_groupid) | = ' '. | |||
DATA(ld_x_progid) | = ' '. | |||
DATA(ld_x_formid) | = ' '. | |||
DATA(ld_x_qattrib) | = ' '. | |||
DATA(ld_x_qid) | = ' '. | |||
DATA(ld__scope) | = '3'. | |||
"SELECT single DESTSYS FROM APQI INTO @DATA(ld_destsys). | ||||
DATA(ld__synchron) | = ' '. | |||
DATA(ld__collect) | = ' '. | |||
"SELECT single DESTAPP FROM APQI INTO @DATA(ld_destapp). | ||||
"SELECT single DATATYP FROM APQI INTO @DATA(ld_datatyp). | ||||
"SELECT single MANDANT FROM APQI INTO @DATA(ld_mandant). | ||||
DATA(ld_mandant) | = SY-MANDT. | |||
"SELECT single GROUPID FROM APQI INTO @DATA(ld_groupid). | ||||
"SELECT single PROGID FROM APQI INTO @DATA(ld_progid). | ||||
"SELECT single FORMID FROM APQI INTO @DATA(ld_formid). | ||||
"SELECT single QATTRIB FROM APQI INTO @DATA(ld_qattrib). | ||||
Search for further information about these or an SAP related objects