SAP DEQUEUE_EJ_1SWEMF1 Function Module for Release lock on object EJ_1SWEMF1









DEQUEUE_EJ_1SWEMF1 is a standard dequeue ej 1swemf1 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 EJ_1SWEMF1 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 ej 1swemf1 FM, simply by entering the name DEQUEUE_EJ_1SWEMF1 into the relevant SAP transaction such as SE37 or SE38.

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



Function DEQUEUE_EJ_1SWEMF1 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_EJ_1SWEMF1'"Release lock on object EJ_1SWEMF1
EXPORTING
* MODE_J_1SWEMF00 = 'E' "Lock mode for table J_1SWEMF00
* LFARTAUFTR = "09th enqueue argument
* VKORG = "10th enqueue argument
* VTWEG = "11th enqueue argument
* SPART = "12th enqueue argument
* PERIODE = "13th enqueue argument
* KNDGRUPPE = "14th enqueue argument
* AUART = "15th enqueue argument
* LFARTLOG = "16th enqueue argument
* X_VAUSGB = ' ' "Fill argument 02 with initial value?
* X_VERSANDDAT = ' ' "Fill argument 03 with initial value?
* MANDT = SY-MANDT "01th enqueue argument
* X_KATEGORIE = ' ' "Fill argument 04 with initial value?
* X_LAND = ' ' "Fill argument 05 with initial value?
* X_DRKEI = ' ' "Fill argument 06 with initial value?
* X_DRERZAUFTR = ' ' "Fill argument 07 with initial value?
* X_PVAAUFTR = ' ' "Fill argument 08 with initial value?
* X_LFARTAUFTR = ' ' "Fill argument 09 with initial value?
* X_VKORG = ' ' "Fill argument 10 with initial value?
* X_VTWEG = ' ' "Fill argument 11 with initial value?
* X_SPART = ' ' "Fill argument 12 with initial value?
* X_PERIODE = ' ' "Fill argument 13 with initial value?
* VAUSGB = "02th enqueue argument
* X_KNDGRUPPE = ' ' "Fill argument 14 with initial value?
* X_AUART = ' ' "Fill argument 15 with initial value?
* X_LFARTLOG = ' ' "Fill argument 16 with initial value?
* _SCOPE = '3' "
* _SYNCHRON = ' ' "Synchonous unlock
* _COLLECT = ' ' "Initially only collect lock
* VERSANDDAT = "03th enqueue argument
* KATEGORIE = "04th enqueue argument
* LAND = "05th enqueue argument
* DRKEI = "06th enqueue argument
* DRERZAUFTR = "07th enqueue argument
* PVAAUFTR = "08th enqueue argument
.



IMPORTING Parameters details for DEQUEUE_EJ_1SWEMF1

MODE_J_1SWEMF00 - Lock mode for table J_1SWEMF00

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

LFARTAUFTR - 09th enqueue argument

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

VKORG - 10th enqueue argument

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

VTWEG - 11th enqueue argument

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

SPART - 12th enqueue argument

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

PERIODE - 13th enqueue argument

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

KNDGRUPPE - 14th enqueue argument

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

AUART - 15th enqueue argument

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

LFARTLOG - 16th enqueue argument

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

X_VAUSGB - Fill argument 02 with initial value?

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

X_VERSANDDAT - Fill argument 03 with initial value?

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

MANDT - 01th enqueue argument

Data type: J_1SWEMF00-MANDT
Default: SY-MANDT
Optional: Yes
Call by Reference: No ( called with pass by value option)

X_KATEGORIE - Fill argument 04 with initial value?

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

X_LAND - Fill argument 05 with initial value?

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

X_DRKEI - Fill argument 06 with initial value?

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

X_DRERZAUFTR - Fill argument 07 with initial value?

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

X_PVAAUFTR - Fill argument 08 with initial value?

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

X_LFARTAUFTR - Fill argument 09 with initial value?

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

X_VKORG - Fill argument 10 with initial value?

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

X_VTWEG - Fill argument 11 with initial value?

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

X_SPART - Fill argument 12 with initial value?

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

X_PERIODE - Fill argument 13 with initial value?

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

VAUSGB - 02th enqueue argument

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

X_KNDGRUPPE - Fill argument 14 with initial value?

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

X_AUART - Fill argument 15 with initial value?

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

X_LFARTLOG - Fill argument 16 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)

_COLLECT - Initially only collect lock

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

VERSANDDAT - 03th enqueue argument

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

KATEGORIE - 04th enqueue argument

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

LAND - 05th enqueue argument

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

DRKEI - 06th enqueue argument

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

DRERZAUFTR - 07th enqueue argument

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

PVAAUFTR - 08th enqueue argument

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

Copy and paste ABAP code example for DEQUEUE_EJ_1SWEMF1 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_j_1swemf00  TYPE ENQMODE, "   'E'
lv_lfartauftr  TYPE J_1SWEMF00-LFARTAUFTR, "   
lv_vkorg  TYPE J_1SWEMF00-VKORG, "   
lv_vtweg  TYPE J_1SWEMF00-VTWEG, "   
lv_spart  TYPE J_1SWEMF00-SPART, "   
lv_periode  TYPE J_1SWEMF00-PERIODE, "   
lv_kndgruppe  TYPE J_1SWEMF00-KNDGRUPPE, "   
lv_auart  TYPE J_1SWEMF00-AUART, "   
lv_lfartlog  TYPE J_1SWEMF00-LFARTLOG, "   
lv_x_vausgb  TYPE J_1SWEMF00, "   SPACE
lv_x_versanddat  TYPE J_1SWEMF00, "   SPACE
lv_mandt  TYPE J_1SWEMF00-MANDT, "   SY-MANDT
lv_x_kategorie  TYPE J_1SWEMF00, "   SPACE
lv_x_land  TYPE J_1SWEMF00, "   SPACE
lv_x_drkei  TYPE J_1SWEMF00, "   SPACE
lv_x_drerzauftr  TYPE J_1SWEMF00, "   SPACE
lv_x_pvaauftr  TYPE J_1SWEMF00, "   SPACE
lv_x_lfartauftr  TYPE J_1SWEMF00, "   SPACE
lv_x_vkorg  TYPE J_1SWEMF00, "   SPACE
lv_x_vtweg  TYPE J_1SWEMF00, "   SPACE
lv_x_spart  TYPE J_1SWEMF00, "   SPACE
lv_x_periode  TYPE J_1SWEMF00, "   SPACE
lv_vausgb  TYPE J_1SWEMF00-VAUSGB, "   
lv_x_kndgruppe  TYPE J_1SWEMF00, "   SPACE
lv_x_auart  TYPE J_1SWEMF00, "   SPACE
lv_x_lfartlog  TYPE J_1SWEMF00, "   SPACE
lv__scope  TYPE J_1SWEMF00, "   '3'
lv__synchron  TYPE J_1SWEMF00, "   SPACE
lv__collect  TYPE DDENQCOLL, "   ' '
lv_versanddat  TYPE J_1SWEMF00-VERSANDDAT, "   
lv_kategorie  TYPE J_1SWEMF00-KATEGORIE, "   
lv_land  TYPE J_1SWEMF00-LAND, "   
lv_drkei  TYPE J_1SWEMF00-DRKEI, "   
lv_drerzauftr  TYPE J_1SWEMF00-DRERZAUFTR, "   
lv_pvaauftr  TYPE J_1SWEMF00-PVAAUFTR. "   

  CALL FUNCTION 'DEQUEUE_EJ_1SWEMF1'  "Release lock on object EJ_1SWEMF1
    EXPORTING
         MODE_J_1SWEMF00 = lv_mode_j_1swemf00
         LFARTAUFTR = lv_lfartauftr
         VKORG = lv_vkorg
         VTWEG = lv_vtweg
         SPART = lv_spart
         PERIODE = lv_periode
         KNDGRUPPE = lv_kndgruppe
         AUART = lv_auart
         LFARTLOG = lv_lfartlog
         X_VAUSGB = lv_x_vausgb
         X_VERSANDDAT = lv_x_versanddat
         MANDT = lv_mandt
         X_KATEGORIE = lv_x_kategorie
         X_LAND = lv_x_land
         X_DRKEI = lv_x_drkei
         X_DRERZAUFTR = lv_x_drerzauftr
         X_PVAAUFTR = lv_x_pvaauftr
         X_LFARTAUFTR = lv_x_lfartauftr
         X_VKORG = lv_x_vkorg
         X_VTWEG = lv_x_vtweg
         X_SPART = lv_x_spart
         X_PERIODE = lv_x_periode
         VAUSGB = lv_vausgb
         X_KNDGRUPPE = lv_x_kndgruppe
         X_AUART = lv_x_auart
         X_LFARTLOG = lv_x_lfartlog
         _SCOPE = lv__scope
         _SYNCHRON = lv__synchron
         _COLLECT = lv__collect
         VERSANDDAT = lv_versanddat
         KATEGORIE = lv_kategorie
         LAND = lv_land
         DRKEI = lv_drkei
         DRERZAUFTR = lv_drerzauftr
         PVAAUFTR = lv_pvaauftr
. " DEQUEUE_EJ_1SWEMF1




ABAP code using 7.40 inline data declarations to call FM DEQUEUE_EJ_1SWEMF1

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_j_1swemf00) = 'E'.
 
"SELECT single LFARTAUFTR FROM J_1SWEMF00 INTO @DATA(ld_lfartauftr).
 
"SELECT single VKORG FROM J_1SWEMF00 INTO @DATA(ld_vkorg).
 
"SELECT single VTWEG FROM J_1SWEMF00 INTO @DATA(ld_vtweg).
 
"SELECT single SPART FROM J_1SWEMF00 INTO @DATA(ld_spart).
 
"SELECT single PERIODE FROM J_1SWEMF00 INTO @DATA(ld_periode).
 
"SELECT single KNDGRUPPE FROM J_1SWEMF00 INTO @DATA(ld_kndgruppe).
 
"SELECT single AUART FROM J_1SWEMF00 INTO @DATA(ld_auart).
 
"SELECT single LFARTLOG FROM J_1SWEMF00 INTO @DATA(ld_lfartlog).
 
DATA(ld_x_vausgb) = ' '.
 
DATA(ld_x_versanddat) = ' '.
 
"SELECT single MANDT FROM J_1SWEMF00 INTO @DATA(ld_mandt).
DATA(ld_mandt) = SY-MANDT.
 
DATA(ld_x_kategorie) = ' '.
 
DATA(ld_x_land) = ' '.
 
DATA(ld_x_drkei) = ' '.
 
DATA(ld_x_drerzauftr) = ' '.
 
DATA(ld_x_pvaauftr) = ' '.
 
DATA(ld_x_lfartauftr) = ' '.
 
DATA(ld_x_vkorg) = ' '.
 
DATA(ld_x_vtweg) = ' '.
 
DATA(ld_x_spart) = ' '.
 
DATA(ld_x_periode) = ' '.
 
"SELECT single VAUSGB FROM J_1SWEMF00 INTO @DATA(ld_vausgb).
 
DATA(ld_x_kndgruppe) = ' '.
 
DATA(ld_x_auart) = ' '.
 
DATA(ld_x_lfartlog) = ' '.
 
DATA(ld__scope) = '3'.
 
DATA(ld__synchron) = ' '.
 
DATA(ld__collect) = ' '.
 
"SELECT single VERSANDDAT FROM J_1SWEMF00 INTO @DATA(ld_versanddat).
 
"SELECT single KATEGORIE FROM J_1SWEMF00 INTO @DATA(ld_kategorie).
 
"SELECT single LAND FROM J_1SWEMF00 INTO @DATA(ld_land).
 
"SELECT single DRKEI FROM J_1SWEMF00 INTO @DATA(ld_drkei).
 
"SELECT single DRERZAUFTR FROM J_1SWEMF00 INTO @DATA(ld_drerzauftr).
 
"SELECT single PVAAUFTR FROM J_1SWEMF00 INTO @DATA(ld_pvaauftr).
 


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!