SAP DEQUEUE_E_PPC_COMAT Function Module for Release lock on object E_PPC_COMAT
DEQUEUE_E_PPC_COMAT is a standard dequeue e ppc comat 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 E_PPC_COMAT 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 e ppc comat FM, simply by entering the name DEQUEUE_E_PPC_COMAT into the relevant SAP transaction such as SE37 or SE38.
Function Group: /1BCDWBEN/PEN0004
Program Name: /1BCDWBEN/SAPLPEN0004
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function DEQUEUE_E_PPC_COMAT 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_E_PPC_COMAT'"Release lock on object E_PPC_COMAT.
EXPORTING
* MODE_PPC_COMAT_STR = 'E' "Lock mode for table PPC_COMAT_STR
* PSPNR = "09th enqueue argument
* X_MATNR = ' ' "Fill argument 02 with initial value?
* X_WERKS = ' ' "Fill argument 03 with initial value?
* X_BWTAR = ' ' "Fill argument 04 with initial value?
* X_SOBKZ = ' ' "Fill argument 05 with initial value?
* X_KZBWS = ' ' "Fill argument 06 with initial value?
* X_KDAUF = ' ' "Fill argument 07 with initial value?
* X_KDPOS = ' ' "Fill argument 08 with initial value?
* X_PSPNR = ' ' "Fill argument 09 with initial value?
* _SCOPE = '3' "
* MANDT = SY-MANDT "01th enqueue argument
* _SYNCHRON = ' ' "Synchonous unlock
* _COLLECT = ' ' "Initially only collect lock
* MATNR = "02th enqueue argument
* WERKS = "03th enqueue argument
* BWTAR = "04th enqueue argument
* SOBKZ = "05th enqueue argument
* KZBWS = "06th enqueue argument
* KDAUF = "07th enqueue argument
* KDPOS = "08th enqueue argument
IMPORTING Parameters details for DEQUEUE_E_PPC_COMAT
MODE_PPC_COMAT_STR - Lock mode for table PPC_COMAT_STR
Data type: ENQMODEDefault: 'E'
Optional: Yes
Call by Reference: No ( called with pass by value option)
PSPNR - 09th enqueue argument
Data type: PPC_COMAT_STR-PSPNROptional: Yes
Call by Reference: No ( called with pass by value option)
X_MATNR - Fill argument 02 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_WERKS - Fill argument 03 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_BWTAR - Fill argument 04 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_SOBKZ - Fill argument 05 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_KZBWS - Fill argument 06 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_KDAUF - Fill argument 07 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_KDPOS - Fill argument 08 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_PSPNR - 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)
MANDT - 01th enqueue argument
Data type: PPC_COMAT_STR-MANDTDefault: SY-MANDT
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)
_COLLECT - Initially only collect lock
Data type: DDENQCOLLDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
MATNR - 02th enqueue argument
Data type: PPC_COMAT_STR-MATNROptional: Yes
Call by Reference: No ( called with pass by value option)
WERKS - 03th enqueue argument
Data type: PPC_COMAT_STR-WERKSOptional: Yes
Call by Reference: No ( called with pass by value option)
BWTAR - 04th enqueue argument
Data type: PPC_COMAT_STR-BWTAROptional: Yes
Call by Reference: No ( called with pass by value option)
SOBKZ - 05th enqueue argument
Data type: PPC_COMAT_STR-SOBKZOptional: Yes
Call by Reference: No ( called with pass by value option)
KZBWS - 06th enqueue argument
Data type: PPC_COMAT_STR-KZBWSOptional: Yes
Call by Reference: No ( called with pass by value option)
KDAUF - 07th enqueue argument
Data type: PPC_COMAT_STR-KDAUFOptional: Yes
Call by Reference: No ( called with pass by value option)
KDPOS - 08th enqueue argument
Data type: PPC_COMAT_STR-KDPOSOptional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for DEQUEUE_E_PPC_COMAT 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_ppc_comat_str | TYPE ENQMODE, " 'E' | |||
| lv_pspnr | TYPE PPC_COMAT_STR-PSPNR, " | |||
| lv_x_matnr | TYPE PPC_COMAT_STR, " SPACE | |||
| lv_x_werks | TYPE PPC_COMAT_STR, " SPACE | |||
| lv_x_bwtar | TYPE PPC_COMAT_STR, " SPACE | |||
| lv_x_sobkz | TYPE PPC_COMAT_STR, " SPACE | |||
| lv_x_kzbws | TYPE PPC_COMAT_STR, " SPACE | |||
| lv_x_kdauf | TYPE PPC_COMAT_STR, " SPACE | |||
| lv_x_kdpos | TYPE PPC_COMAT_STR, " SPACE | |||
| lv_x_pspnr | TYPE PPC_COMAT_STR, " SPACE | |||
| lv__scope | TYPE PPC_COMAT_STR, " '3' | |||
| lv_mandt | TYPE PPC_COMAT_STR-MANDT, " SY-MANDT | |||
| lv__synchron | TYPE PPC_COMAT_STR, " SPACE | |||
| lv__collect | TYPE DDENQCOLL, " ' ' | |||
| lv_matnr | TYPE PPC_COMAT_STR-MATNR, " | |||
| lv_werks | TYPE PPC_COMAT_STR-WERKS, " | |||
| lv_bwtar | TYPE PPC_COMAT_STR-BWTAR, " | |||
| lv_sobkz | TYPE PPC_COMAT_STR-SOBKZ, " | |||
| lv_kzbws | TYPE PPC_COMAT_STR-KZBWS, " | |||
| lv_kdauf | TYPE PPC_COMAT_STR-KDAUF, " | |||
| lv_kdpos | TYPE PPC_COMAT_STR-KDPOS. " |
|   CALL FUNCTION 'DEQUEUE_E_PPC_COMAT' "Release lock on object E_PPC_COMAT |
| EXPORTING | ||
| MODE_PPC_COMAT_STR | = lv_mode_ppc_comat_str | |
| PSPNR | = lv_pspnr | |
| X_MATNR | = lv_x_matnr | |
| X_WERKS | = lv_x_werks | |
| X_BWTAR | = lv_x_bwtar | |
| X_SOBKZ | = lv_x_sobkz | |
| X_KZBWS | = lv_x_kzbws | |
| X_KDAUF | = lv_x_kdauf | |
| X_KDPOS | = lv_x_kdpos | |
| X_PSPNR | = lv_x_pspnr | |
| _SCOPE | = lv__scope | |
| MANDT | = lv_mandt | |
| _SYNCHRON | = lv__synchron | |
| _COLLECT | = lv__collect | |
| MATNR | = lv_matnr | |
| WERKS | = lv_werks | |
| BWTAR | = lv_bwtar | |
| SOBKZ | = lv_sobkz | |
| KZBWS | = lv_kzbws | |
| KDAUF | = lv_kdauf | |
| KDPOS | = lv_kdpos | |
| . " DEQUEUE_E_PPC_COMAT | ||
ABAP code using 7.40 inline data declarations to call FM DEQUEUE_E_PPC_COMAT
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_ppc_comat_str) | = 'E'. | |||
| "SELECT single PSPNR FROM PPC_COMAT_STR INTO @DATA(ld_pspnr). | ||||
| DATA(ld_x_matnr) | = ' '. | |||
| DATA(ld_x_werks) | = ' '. | |||
| DATA(ld_x_bwtar) | = ' '. | |||
| DATA(ld_x_sobkz) | = ' '. | |||
| DATA(ld_x_kzbws) | = ' '. | |||
| DATA(ld_x_kdauf) | = ' '. | |||
| DATA(ld_x_kdpos) | = ' '. | |||
| DATA(ld_x_pspnr) | = ' '. | |||
| DATA(ld__scope) | = '3'. | |||
| "SELECT single MANDT FROM PPC_COMAT_STR INTO @DATA(ld_mandt). | ||||
| DATA(ld_mandt) | = SY-MANDT. | |||
| DATA(ld__synchron) | = ' '. | |||
| DATA(ld__collect) | = ' '. | |||
| "SELECT single MATNR FROM PPC_COMAT_STR INTO @DATA(ld_matnr). | ||||
| "SELECT single WERKS FROM PPC_COMAT_STR INTO @DATA(ld_werks). | ||||
| "SELECT single BWTAR FROM PPC_COMAT_STR INTO @DATA(ld_bwtar). | ||||
| "SELECT single SOBKZ FROM PPC_COMAT_STR INTO @DATA(ld_sobkz). | ||||
| "SELECT single KZBWS FROM PPC_COMAT_STR INTO @DATA(ld_kzbws). | ||||
| "SELECT single KDAUF FROM PPC_COMAT_STR INTO @DATA(ld_kdauf). | ||||
| "SELECT single KDPOS FROM PPC_COMAT_STR INTO @DATA(ld_kdpos). | ||||
Search for further information about these or an SAP related objects