SAP ENQUEUE_E_JITLO2 Function Module for Request lock for object E_JITLO2









ENQUEUE_E_JITLO2 is a standard enqueue e jitlo2 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_JITLO2 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 jitlo2 FM, simply by entering the name ENQUEUE_E_JITLO2 into the relevant SAP transaction such as SE37 or SE38.

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



Function ENQUEUE_E_JITLO2 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_JITLO2'"Request lock for object E_JITLO2
EXPORTING
* MODE_JIT_AZVAR = 'E' "Lock mode for table JIT_AZVAR
* TCODE = "03th enqueue argument
* UNAME = "04th enqueue argument
* CHART = "05th enqueue argument
* NODEKEY = "06th enqueue argument
* SPRAS = "07th enqueue argument
* TABNAME = "08th enqueue argument
* FIELDNAME = "09th enqueue argument
* SELNAME = "10th enqueue argument
* COUNTER = "11th enqueue argument
* X_AZVAR = ' ' "Fill argument 02 with initial value?
* MODE_JITTC0 = 'E' "Lock mode for table JITTC0
* X_TCODE = ' ' "Fill argument 03 with initial value?
* X_UNAME = ' ' "Fill argument 04 with initial value?
* X_CHART = ' ' "Fill argument 05 with initial value?
* X_NODEKEY = ' ' "Fill argument 06 with initial value?
* X_SPRAS = ' ' "Fill argument 07 with initial value?
* X_TABNAME = ' ' "Fill argument 08 with initial value?
* X_FIELDNAME = ' ' "Fill argument 09 with initial value?
* X_SELNAME = ' ' "Fill argument 10 with initial value?
* X_COUNTER = ' ' "Fill argument 11 with initial value?
* _SCOPE = '2' "
* MODE_JITTC1 = 'E' "Lock mode for table JITTC1
* _WAIT = ' ' "
* _COLLECT = ' ' "Initially only collect lock
* MODE_JITTC2 = 'E' "Lock mode for table JITTC2
* MODE_JIT_AZVART = 'E' "Lock mode for table JIT_AZVART
* MODE_JITTC3 = 'E' "Lock mode for table JITTC3
* MODE_JITTC4 = 'E' "Lock mode for table JITTC4
* MANDT = SY-MANDT "01th enqueue argument
* AZVAR = "02th enqueue argument

EXCEPTIONS
FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2
.



IMPORTING Parameters details for ENQUEUE_E_JITLO2

MODE_JIT_AZVAR - Lock mode for table JIT_AZVAR

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

TCODE - 03th enqueue argument

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

UNAME - 04th enqueue argument

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

CHART - 05th enqueue argument

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

NODEKEY - 06th enqueue argument

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

SPRAS - 07th enqueue argument

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

TABNAME - 08th enqueue argument

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

FIELDNAME - 09th enqueue argument

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

SELNAME - 10th enqueue argument

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

COUNTER - 11th enqueue argument

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

X_AZVAR - Fill argument 02 with initial value?

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

MODE_JITTC0 - Lock mode for table JITTC0

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

X_TCODE - Fill argument 03 with initial value?

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

X_UNAME - Fill argument 04 with initial value?

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

X_CHART - Fill argument 05 with initial value?

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

X_NODEKEY - Fill argument 06 with initial value?

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

X_SPRAS - Fill argument 07 with initial value?

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

X_TABNAME - Fill argument 08 with initial value?

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

X_FIELDNAME - Fill argument 09 with initial value?

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

X_SELNAME - Fill argument 10 with initial value?

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

X_COUNTER - Fill argument 11 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)

MODE_JITTC1 - Lock mode for table JITTC1

Data type: ENQMODE
Default: 'E'
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)

MODE_JITTC2 - Lock mode for table JITTC2

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

MODE_JIT_AZVART - Lock mode for table JIT_AZVART

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

MODE_JITTC3 - Lock mode for table JITTC3

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

MODE_JITTC4 - Lock mode for table JITTC4

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

MANDT - 01th enqueue argument

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

AZVAR - 02th enqueue argument

Data type: JIT_AZVAR-AZVAR
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_JITLO2 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_jit_azvar  TYPE ENQMODE, "   'E'
lv_tcode  TYPE JIT_AZVAR-TCODE, "   
lv_uname  TYPE JIT_AZVAR-UNAME, "   
lv_chart  TYPE JITTC1-CHART, "   
lv_nodekey  TYPE JITTC2-NODEKEY, "   
lv_spras  TYPE JIT_AZVART-SPRAS, "   
lv_tabname  TYPE JITTC3-TABNAME, "   
lv_fieldname  TYPE JITTC3-FIELDNAME, "   
lv_selname  TYPE JITTC4-SELNAME, "   
lv_counter  TYPE JITTC4-COUNTER, "   
lv_x_azvar  TYPE JITTC4, "   SPACE
lv_mode_jittc0  TYPE ENQMODE, "   'E'
lv_system_failure  TYPE ENQMODE, "   
lv_x_tcode  TYPE ENQMODE, "   SPACE
lv_x_uname  TYPE ENQMODE, "   SPACE
lv_x_chart  TYPE ENQMODE, "   SPACE
lv_x_nodekey  TYPE ENQMODE, "   SPACE
lv_x_spras  TYPE ENQMODE, "   SPACE
lv_x_tabname  TYPE ENQMODE, "   SPACE
lv_x_fieldname  TYPE ENQMODE, "   SPACE
lv_x_selname  TYPE ENQMODE, "   SPACE
lv_x_counter  TYPE ENQMODE, "   SPACE
lv__scope  TYPE ENQMODE, "   '2'
lv_mode_jittc1  TYPE ENQMODE, "   'E'
lv__wait  TYPE ENQMODE, "   SPACE
lv__collect  TYPE DDENQCOLL, "   ' '
lv_mode_jittc2  TYPE ENQMODE, "   'E'
lv_mode_jit_azvart  TYPE ENQMODE, "   'E'
lv_mode_jittc3  TYPE ENQMODE, "   'E'
lv_mode_jittc4  TYPE ENQMODE, "   'E'
lv_mandt  TYPE JIT_AZVAR-MANDT, "   SY-MANDT
lv_azvar  TYPE JIT_AZVAR-AZVAR. "   

  CALL FUNCTION 'ENQUEUE_E_JITLO2'  "Request lock for object E_JITLO2
    EXPORTING
         MODE_JIT_AZVAR = lv_mode_jit_azvar
         TCODE = lv_tcode
         UNAME = lv_uname
         CHART = lv_chart
         NODEKEY = lv_nodekey
         SPRAS = lv_spras
         TABNAME = lv_tabname
         FIELDNAME = lv_fieldname
         SELNAME = lv_selname
         COUNTER = lv_counter
         X_AZVAR = lv_x_azvar
         MODE_JITTC0 = lv_mode_jittc0
         X_TCODE = lv_x_tcode
         X_UNAME = lv_x_uname
         X_CHART = lv_x_chart
         X_NODEKEY = lv_x_nodekey
         X_SPRAS = lv_x_spras
         X_TABNAME = lv_x_tabname
         X_FIELDNAME = lv_x_fieldname
         X_SELNAME = lv_x_selname
         X_COUNTER = lv_x_counter
         _SCOPE = lv__scope
         MODE_JITTC1 = lv_mode_jittc1
         _WAIT = lv__wait
         _COLLECT = lv__collect
         MODE_JITTC2 = lv_mode_jittc2
         MODE_JIT_AZVART = lv_mode_jit_azvart
         MODE_JITTC3 = lv_mode_jittc3
         MODE_JITTC4 = lv_mode_jittc4
         MANDT = lv_mandt
         AZVAR = lv_azvar
    EXCEPTIONS
        FOREIGN_LOCK = 1
        SYSTEM_FAILURE = 2
. " ENQUEUE_E_JITLO2




ABAP code using 7.40 inline data declarations to call FM ENQUEUE_E_JITLO2

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_jit_azvar) = 'E'.
 
"SELECT single TCODE FROM JIT_AZVAR INTO @DATA(ld_tcode).
 
"SELECT single UNAME FROM JIT_AZVAR INTO @DATA(ld_uname).
 
"SELECT single CHART FROM JITTC1 INTO @DATA(ld_chart).
 
"SELECT single NODEKEY FROM JITTC2 INTO @DATA(ld_nodekey).
 
"SELECT single SPRAS FROM JIT_AZVART INTO @DATA(ld_spras).
 
"SELECT single TABNAME FROM JITTC3 INTO @DATA(ld_tabname).
 
"SELECT single FIELDNAME FROM JITTC3 INTO @DATA(ld_fieldname).
 
"SELECT single SELNAME FROM JITTC4 INTO @DATA(ld_selname).
 
"SELECT single COUNTER FROM JITTC4 INTO @DATA(ld_counter).
 
DATA(ld_x_azvar) = ' '.
 
DATA(ld_mode_jittc0) = 'E'.
 
 
DATA(ld_x_tcode) = ' '.
 
DATA(ld_x_uname) = ' '.
 
DATA(ld_x_chart) = ' '.
 
DATA(ld_x_nodekey) = ' '.
 
DATA(ld_x_spras) = ' '.
 
DATA(ld_x_tabname) = ' '.
 
DATA(ld_x_fieldname) = ' '.
 
DATA(ld_x_selname) = ' '.
 
DATA(ld_x_counter) = ' '.
 
DATA(ld__scope) = '2'.
 
DATA(ld_mode_jittc1) = 'E'.
 
DATA(ld__wait) = ' '.
 
DATA(ld__collect) = ' '.
 
DATA(ld_mode_jittc2) = 'E'.
 
DATA(ld_mode_jit_azvart) = 'E'.
 
DATA(ld_mode_jittc3) = 'E'.
 
DATA(ld_mode_jittc4) = 'E'.
 
"SELECT single MANDT FROM JIT_AZVAR INTO @DATA(ld_mandt).
DATA(ld_mandt) = SY-MANDT.
 
"SELECT single AZVAR FROM JIT_AZVAR INTO @DATA(ld_azvar).
 


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!