SAP DEQUEUE_E_OIJLOC Function Module for Release lock on object E_OIJLOC









DEQUEUE_E_OIJLOC is a standard dequeue e oijloc 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_OIJLOC 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 oijloc FM, simply by entering the name DEQUEUE_E_OIJLOC into the relevant SAP transaction such as SE37 or SE38.

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



Function DEQUEUE_E_OIJLOC 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_OIJLOC'"Release lock on object E_OIJLOC
EXPORTING
* MODE_OIJLOC = 'E' "Lock mode for table OIJLOC
* USAGEIND = "07th enqueue argument
* X_LOCID = ' ' "Fill argument 02 with initial value?
* X_PMATNR = ' ' "Fill argument 03 with initial value?
* X_MATNR = ' ' "Fill argument 04 with initial value?
* X_RTSYST = ' ' "Fill argument 05 with initial value?
* X_RLOCID = ' ' "Fill argument 06 with initial value?
* X_USAGEIND = ' ' "Fill argument 07 with initial value?
* _SCOPE = '3' "
* _SYNCHRON = ' ' "Synchonous unlock
* _COLLECT = ' ' "Initially only collect lock
* MODE_OIJLOCMAT = 'E' "Lock mode for table OIJLOCMAT
* MODE_OIJSDLOC = 'E' "Lock mode for table OIJSDLOC
* MANDT = SY-MANDT "01th enqueue argument
* LOCID = "02th enqueue argument
* PMATNR = "03th enqueue argument
* MATNR = "04th enqueue argument
* RTSYST = "05th enqueue argument
* RLOCID = "06th enqueue argument
.



IMPORTING Parameters details for DEQUEUE_E_OIJLOC

MODE_OIJLOC - Lock mode for table OIJLOC

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

USAGEIND - 07th enqueue argument

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

X_LOCID - Fill argument 02 with initial value?

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

X_PMATNR - Fill argument 03 with initial value?

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

X_MATNR - Fill argument 04 with initial value?

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

X_RTSYST - Fill argument 05 with initial value?

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

X_RLOCID - Fill argument 06 with initial value?

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

X_USAGEIND - Fill argument 07 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)

MODE_OIJLOCMAT - Lock mode for table OIJLOCMAT

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

MODE_OIJSDLOC - Lock mode for table OIJSDLOC

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

MANDT - 01th enqueue argument

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

LOCID - 02th enqueue argument

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

PMATNR - 03th enqueue argument

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

MATNR - 04th enqueue argument

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

RTSYST - 05th enqueue argument

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

RLOCID - 06th enqueue argument

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

Copy and paste ABAP code example for DEQUEUE_E_OIJLOC 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_oijloc  TYPE ENQMODE, "   'E'
lv_usageind  TYPE OIJSDLOC-USAGEIND, "   
lv_x_locid  TYPE OIJSDLOC, "   SPACE
lv_x_pmatnr  TYPE OIJSDLOC, "   SPACE
lv_x_matnr  TYPE OIJSDLOC, "   SPACE
lv_x_rtsyst  TYPE OIJSDLOC, "   SPACE
lv_x_rlocid  TYPE OIJSDLOC, "   SPACE
lv_x_usageind  TYPE OIJSDLOC, "   SPACE
lv__scope  TYPE OIJSDLOC, "   '3'
lv__synchron  TYPE OIJSDLOC, "   SPACE
lv__collect  TYPE DDENQCOLL, "   ' '
lv_mode_oijlocmat  TYPE ENQMODE, "   'E'
lv_mode_oijsdloc  TYPE ENQMODE, "   'E'
lv_mandt  TYPE OIJLOC-MANDT, "   SY-MANDT
lv_locid  TYPE OIJLOC-LOCID, "   
lv_pmatnr  TYPE OIJLOCMAT-PMATNR, "   
lv_matnr  TYPE OIJSDLOC-MATNR, "   
lv_rtsyst  TYPE OIJSDLOC-RTSYST, "   
lv_rlocid  TYPE OIJSDLOC-RLOCID. "   

  CALL FUNCTION 'DEQUEUE_E_OIJLOC'  "Release lock on object E_OIJLOC
    EXPORTING
         MODE_OIJLOC = lv_mode_oijloc
         USAGEIND = lv_usageind
         X_LOCID = lv_x_locid
         X_PMATNR = lv_x_pmatnr
         X_MATNR = lv_x_matnr
         X_RTSYST = lv_x_rtsyst
         X_RLOCID = lv_x_rlocid
         X_USAGEIND = lv_x_usageind
         _SCOPE = lv__scope
         _SYNCHRON = lv__synchron
         _COLLECT = lv__collect
         MODE_OIJLOCMAT = lv_mode_oijlocmat
         MODE_OIJSDLOC = lv_mode_oijsdloc
         MANDT = lv_mandt
         LOCID = lv_locid
         PMATNR = lv_pmatnr
         MATNR = lv_matnr
         RTSYST = lv_rtsyst
         RLOCID = lv_rlocid
. " DEQUEUE_E_OIJLOC




ABAP code using 7.40 inline data declarations to call FM DEQUEUE_E_OIJLOC

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_oijloc) = 'E'.
 
"SELECT single USAGEIND FROM OIJSDLOC INTO @DATA(ld_usageind).
 
DATA(ld_x_locid) = ' '.
 
DATA(ld_x_pmatnr) = ' '.
 
DATA(ld_x_matnr) = ' '.
 
DATA(ld_x_rtsyst) = ' '.
 
DATA(ld_x_rlocid) = ' '.
 
DATA(ld_x_usageind) = ' '.
 
DATA(ld__scope) = '3'.
 
DATA(ld__synchron) = ' '.
 
DATA(ld__collect) = ' '.
 
DATA(ld_mode_oijlocmat) = 'E'.
 
DATA(ld_mode_oijsdloc) = 'E'.
 
"SELECT single MANDT FROM OIJLOC INTO @DATA(ld_mandt).
DATA(ld_mandt) = SY-MANDT.
 
"SELECT single LOCID FROM OIJLOC INTO @DATA(ld_locid).
 
"SELECT single PMATNR FROM OIJLOCMAT INTO @DATA(ld_pmatnr).
 
"SELECT single MATNR FROM OIJSDLOC INTO @DATA(ld_matnr).
 
"SELECT single RTSYST FROM OIJSDLOC INTO @DATA(ld_rtsyst).
 
"SELECT single RLOCID FROM OIJSDLOC INTO @DATA(ld_rlocid).
 


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!