SAP ENQUEUE_E_OIKLR Function Module for Request lock for object E_OIKLR









ENQUEUE_E_OIKLR is a standard enqueue e oiklr SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Request lock for object E_OIKLR 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 enqueue e oiklr FM, simply by entering the name ENQUEUE_E_OIKLR into the relevant SAP transaction such as SE37 or SE38.

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



Function ENQUEUE_E_OIKLR 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 'ENQUEUE_E_OIKLR'"Request lock for object E_OIKLR
EXPORTING
* MODE_OIKLIDR = 'E' "Lock mode for table OIKLIDR
* DOCTYPE = "09th enqueue argument
* X_LIDNO = ' ' "Fill argument 02 with initial value?
* X_LIDADDON = ' ' "Fill argument 03 with initial value?
* X_LIDTYPE = ' ' "Fill argument 04 with initial value?
* X_FROMDATE = ' ' "Fill argument 05 with initial value?
* X_TODATE = ' ' "Fill argument 06 with initial value?
* X_DOCNO = ' ' "Fill argument 07 with initial value?
* X_ITEMNO = ' ' "Fill argument 08 with initial value?
* X_DOCTYPE = ' ' "Fill argument 09 with initial value?
* _SCOPE = '2' "
* CLIENT = SY-MANDT "01th enqueue argument
* _WAIT = ' ' "
* _COLLECT = ' ' "Initially only collect lock
* LIDNO = "02th enqueue argument
* LIDADDON = "03th enqueue argument
* LIDTYPE = "04th enqueue argument
* FROMDATE = "05th enqueue argument
* TODATE = "06th enqueue argument
* DOCNO = "07th enqueue argument
* ITEMNO = "08th enqueue argument

EXCEPTIONS
FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2
.



IMPORTING Parameters details for ENQUEUE_E_OIKLR

MODE_OIKLIDR - Lock mode for table OIKLIDR

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

DOCTYPE - 09th enqueue argument

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

X_LIDNO - Fill argument 02 with initial value?

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

X_LIDADDON - Fill argument 03 with initial value?

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

X_LIDTYPE - Fill argument 04 with initial value?

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

X_FROMDATE - Fill argument 05 with initial value?

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

X_TODATE - Fill argument 06 with initial value?

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

X_DOCNO - Fill argument 07 with initial value?

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

X_ITEMNO - Fill argument 08 with initial value?

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

X_DOCTYPE - 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: '2'
Optional: Yes
Call by Reference: No ( called with pass by value option)

CLIENT - 01th enqueue argument

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

_WAIT -

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)

LIDNO - 02th enqueue argument

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

LIDADDON - 03th enqueue argument

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

LIDTYPE - 04th enqueue argument

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

FROMDATE - 05th enqueue argument

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

TODATE - 06th enqueue argument

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

DOCNO - 07th enqueue argument

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

ITEMNO - 08th enqueue argument

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

EXCEPTIONS details

FOREIGN_LOCK - Object already locked

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

SYSTEM_FAILURE - Internal error from enqueue server

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

Copy and paste ABAP code example for ENQUEUE_E_OIKLR 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_foreign_lock  TYPE STRING, "   
lv_mode_oiklidr  TYPE ENQMODE, "   'E'
lv_doctype  TYPE OIKLIDR-DOCTYPE, "   
lv_x_lidno  TYPE OIKLIDR, "   SPACE
lv_x_lidaddon  TYPE OIKLIDR, "   SPACE
lv_x_lidtype  TYPE OIKLIDR, "   SPACE
lv_x_fromdate  TYPE OIKLIDR, "   SPACE
lv_x_todate  TYPE OIKLIDR, "   SPACE
lv_x_docno  TYPE OIKLIDR, "   SPACE
lv_x_itemno  TYPE OIKLIDR, "   SPACE
lv_x_doctype  TYPE OIKLIDR, "   SPACE
lv__scope  TYPE OIKLIDR, "   '2'
lv_client  TYPE OIKLIDR-CLIENT, "   SY-MANDT
lv_system_failure  TYPE OIKLIDR, "   
lv__wait  TYPE OIKLIDR, "   SPACE
lv__collect  TYPE DDENQCOLL, "   ' '
lv_lidno  TYPE OIKLIDR-LIDNO, "   
lv_lidaddon  TYPE OIKLIDR-LIDADDON, "   
lv_lidtype  TYPE OIKLIDR-LIDTYPE, "   
lv_fromdate  TYPE OIKLIDR-FROMDATE, "   
lv_todate  TYPE OIKLIDR-TODATE, "   
lv_docno  TYPE OIKLIDR-DOCNO, "   
lv_itemno  TYPE OIKLIDR-ITEMNO. "   

  CALL FUNCTION 'ENQUEUE_E_OIKLR'  "Request lock for object E_OIKLR
    EXPORTING
         MODE_OIKLIDR = lv_mode_oiklidr
         DOCTYPE = lv_doctype
         X_LIDNO = lv_x_lidno
         X_LIDADDON = lv_x_lidaddon
         X_LIDTYPE = lv_x_lidtype
         X_FROMDATE = lv_x_fromdate
         X_TODATE = lv_x_todate
         X_DOCNO = lv_x_docno
         X_ITEMNO = lv_x_itemno
         X_DOCTYPE = lv_x_doctype
         _SCOPE = lv__scope
         CLIENT = lv_client
         _WAIT = lv__wait
         _COLLECT = lv__collect
         LIDNO = lv_lidno
         LIDADDON = lv_lidaddon
         LIDTYPE = lv_lidtype
         FROMDATE = lv_fromdate
         TODATE = lv_todate
         DOCNO = lv_docno
         ITEMNO = lv_itemno
    EXCEPTIONS
        FOREIGN_LOCK = 1
        SYSTEM_FAILURE = 2
. " ENQUEUE_E_OIKLR




ABAP code using 7.40 inline data declarations to call FM ENQUEUE_E_OIKLR

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_oiklidr) = 'E'.
 
"SELECT single DOCTYPE FROM OIKLIDR INTO @DATA(ld_doctype).
 
DATA(ld_x_lidno) = ' '.
 
DATA(ld_x_lidaddon) = ' '.
 
DATA(ld_x_lidtype) = ' '.
 
DATA(ld_x_fromdate) = ' '.
 
DATA(ld_x_todate) = ' '.
 
DATA(ld_x_docno) = ' '.
 
DATA(ld_x_itemno) = ' '.
 
DATA(ld_x_doctype) = ' '.
 
DATA(ld__scope) = '2'.
 
"SELECT single CLIENT FROM OIKLIDR INTO @DATA(ld_client).
DATA(ld_client) = SY-MANDT.
 
 
DATA(ld__wait) = ' '.
 
DATA(ld__collect) = ' '.
 
"SELECT single LIDNO FROM OIKLIDR INTO @DATA(ld_lidno).
 
"SELECT single LIDADDON FROM OIKLIDR INTO @DATA(ld_lidaddon).
 
"SELECT single LIDTYPE FROM OIKLIDR INTO @DATA(ld_lidtype).
 
"SELECT single FROMDATE FROM OIKLIDR INTO @DATA(ld_fromdate).
 
"SELECT single TODATE FROM OIKLIDR INTO @DATA(ld_todate).
 
"SELECT single DOCNO FROM OIKLIDR INTO @DATA(ld_docno).
 
"SELECT single ITEMNO FROM OIKLIDR INTO @DATA(ld_itemno).
 


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!