SAP ENQUEUE_EJIJITSTAT Function Module for Request lock for object EJIJITSTAT
ENQUEUE_EJIJITSTAT is a standard enqueue ejijitstat 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 EJIJITSTAT 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 ejijitstat FM, simply by entering the name ENQUEUE_EJIJITSTAT 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 ENQUEUE_EJIJITSTAT 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_EJIJITSTAT'"Request lock for object EJIJITSTAT.
EXPORTING
* MODE_JITSTAT = 'E' "Lock mode for table JITSTAT
* LFARTAUFTR = "09th enqueue argument
* VKORG = "10th enqueue argument
* VTWEG = "11th enqueue argument
* SPART = "12th enqueue argument
* IVWPER = "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_IVWKN = ' ' "Fill argument 04 with initial value?
* X_IVWLAND = ' ' "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_IVWPER = ' ' "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 = '2' "
* _WAIT = ' ' "
* _COLLECT = ' ' "Initially only collect lock
* VERSANDDAT = "03th enqueue argument
* IVWKN = "04th enqueue argument
* IVWLAND = "05th enqueue argument
* DRKEI = "06th enqueue argument
* DRERZAUFTR = "07th enqueue argument
* PVAAUFTR = "08th enqueue argument
EXCEPTIONS
FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2
IMPORTING Parameters details for ENQUEUE_EJIJITSTAT
MODE_JITSTAT - Lock mode for table JITSTAT
Data type: ENQMODEDefault: 'E'
Optional: Yes
Call by Reference: No ( called with pass by value option)
LFARTAUFTR - 09th enqueue argument
Data type: JITSTAT-LFARTAUFTROptional: Yes
Call by Reference: No ( called with pass by value option)
VKORG - 10th enqueue argument
Data type: JITSTAT-VKORGOptional: Yes
Call by Reference: No ( called with pass by value option)
VTWEG - 11th enqueue argument
Data type: JITSTAT-VTWEGOptional: Yes
Call by Reference: No ( called with pass by value option)
SPART - 12th enqueue argument
Data type: JITSTAT-SPARTOptional: Yes
Call by Reference: No ( called with pass by value option)
IVWPER - 13th enqueue argument
Data type: JITSTAT-IVWPEROptional: Yes
Call by Reference: No ( called with pass by value option)
KNDGRUPPE - 14th enqueue argument
Data type: JITSTAT-KNDGRUPPEOptional: Yes
Call by Reference: No ( called with pass by value option)
AUART - 15th enqueue argument
Data type: JITSTAT-AUARTOptional: Yes
Call by Reference: No ( called with pass by value option)
LFARTLOG - 16th enqueue argument
Data type: JITSTAT-LFARTLOGOptional: 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: JITSTAT-MANDTDefault: SY-MANDT
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_IVWKN - Fill argument 04 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_IVWLAND - 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_IVWPER - 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: JITSTAT-VAUSGBOptional: 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: '2'
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: DDENQCOLLDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
VERSANDDAT - 03th enqueue argument
Data type: JITSTAT-VERSANDDATOptional: Yes
Call by Reference: No ( called with pass by value option)
IVWKN - 04th enqueue argument
Data type: JITSTAT-IVWKNOptional: Yes
Call by Reference: No ( called with pass by value option)
IVWLAND - 05th enqueue argument
Data type: JITSTAT-IVWLANDOptional: Yes
Call by Reference: No ( called with pass by value option)
DRKEI - 06th enqueue argument
Data type: JITSTAT-DRKEIOptional: Yes
Call by Reference: No ( called with pass by value option)
DRERZAUFTR - 07th enqueue argument
Data type: JITSTAT-DRERZAUFTROptional: Yes
Call by Reference: No ( called with pass by value option)
PVAAUFTR - 08th enqueue argument
Data type: JITSTAT-PVAAUFTROptional: 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_EJIJITSTAT 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_jitstat | TYPE ENQMODE, " 'E' | |||
| lv_lfartauftr | TYPE JITSTAT-LFARTAUFTR, " | |||
| lv_vkorg | TYPE JITSTAT-VKORG, " | |||
| lv_vtweg | TYPE JITSTAT-VTWEG, " | |||
| lv_spart | TYPE JITSTAT-SPART, " | |||
| lv_ivwper | TYPE JITSTAT-IVWPER, " | |||
| lv_kndgruppe | TYPE JITSTAT-KNDGRUPPE, " | |||
| lv_auart | TYPE JITSTAT-AUART, " | |||
| lv_lfartlog | TYPE JITSTAT-LFARTLOG, " | |||
| lv_x_vausgb | TYPE JITSTAT, " SPACE | |||
| lv_x_versanddat | TYPE JITSTAT, " SPACE | |||
| lv_mandt | TYPE JITSTAT-MANDT, " SY-MANDT | |||
| lv_system_failure | TYPE JITSTAT, " | |||
| lv_x_ivwkn | TYPE JITSTAT, " SPACE | |||
| lv_x_ivwland | TYPE JITSTAT, " SPACE | |||
| lv_x_drkei | TYPE JITSTAT, " SPACE | |||
| lv_x_drerzauftr | TYPE JITSTAT, " SPACE | |||
| lv_x_pvaauftr | TYPE JITSTAT, " SPACE | |||
| lv_x_lfartauftr | TYPE JITSTAT, " SPACE | |||
| lv_x_vkorg | TYPE JITSTAT, " SPACE | |||
| lv_x_vtweg | TYPE JITSTAT, " SPACE | |||
| lv_x_spart | TYPE JITSTAT, " SPACE | |||
| lv_x_ivwper | TYPE JITSTAT, " SPACE | |||
| lv_vausgb | TYPE JITSTAT-VAUSGB, " | |||
| lv_x_kndgruppe | TYPE JITSTAT, " SPACE | |||
| lv_x_auart | TYPE JITSTAT, " SPACE | |||
| lv_x_lfartlog | TYPE JITSTAT, " SPACE | |||
| lv__scope | TYPE JITSTAT, " '2' | |||
| lv__wait | TYPE JITSTAT, " SPACE | |||
| lv__collect | TYPE DDENQCOLL, " ' ' | |||
| lv_versanddat | TYPE JITSTAT-VERSANDDAT, " | |||
| lv_ivwkn | TYPE JITSTAT-IVWKN, " | |||
| lv_ivwland | TYPE JITSTAT-IVWLAND, " | |||
| lv_drkei | TYPE JITSTAT-DRKEI, " | |||
| lv_drerzauftr | TYPE JITSTAT-DRERZAUFTR, " | |||
| lv_pvaauftr | TYPE JITSTAT-PVAAUFTR. " |
|   CALL FUNCTION 'ENQUEUE_EJIJITSTAT' "Request lock for object EJIJITSTAT |
| EXPORTING | ||
| MODE_JITSTAT | = lv_mode_jitstat | |
| LFARTAUFTR | = lv_lfartauftr | |
| VKORG | = lv_vkorg | |
| VTWEG | = lv_vtweg | |
| SPART | = lv_spart | |
| IVWPER | = lv_ivwper | |
| KNDGRUPPE | = lv_kndgruppe | |
| AUART | = lv_auart | |
| LFARTLOG | = lv_lfartlog | |
| X_VAUSGB | = lv_x_vausgb | |
| X_VERSANDDAT | = lv_x_versanddat | |
| MANDT | = lv_mandt | |
| X_IVWKN | = lv_x_ivwkn | |
| X_IVWLAND | = lv_x_ivwland | |
| 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_IVWPER | = lv_x_ivwper | |
| VAUSGB | = lv_vausgb | |
| X_KNDGRUPPE | = lv_x_kndgruppe | |
| X_AUART | = lv_x_auart | |
| X_LFARTLOG | = lv_x_lfartlog | |
| _SCOPE | = lv__scope | |
| _WAIT | = lv__wait | |
| _COLLECT | = lv__collect | |
| VERSANDDAT | = lv_versanddat | |
| IVWKN | = lv_ivwkn | |
| IVWLAND | = lv_ivwland | |
| DRKEI | = lv_drkei | |
| DRERZAUFTR | = lv_drerzauftr | |
| PVAAUFTR | = lv_pvaauftr | |
| EXCEPTIONS | ||
| FOREIGN_LOCK = 1 | ||
| SYSTEM_FAILURE = 2 | ||
| . " ENQUEUE_EJIJITSTAT | ||
ABAP code using 7.40 inline data declarations to call FM ENQUEUE_EJIJITSTAT
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_jitstat) | = 'E'. | |||
| "SELECT single LFARTAUFTR FROM JITSTAT INTO @DATA(ld_lfartauftr). | ||||
| "SELECT single VKORG FROM JITSTAT INTO @DATA(ld_vkorg). | ||||
| "SELECT single VTWEG FROM JITSTAT INTO @DATA(ld_vtweg). | ||||
| "SELECT single SPART FROM JITSTAT INTO @DATA(ld_spart). | ||||
| "SELECT single IVWPER FROM JITSTAT INTO @DATA(ld_ivwper). | ||||
| "SELECT single KNDGRUPPE FROM JITSTAT INTO @DATA(ld_kndgruppe). | ||||
| "SELECT single AUART FROM JITSTAT INTO @DATA(ld_auart). | ||||
| "SELECT single LFARTLOG FROM JITSTAT INTO @DATA(ld_lfartlog). | ||||
| DATA(ld_x_vausgb) | = ' '. | |||
| DATA(ld_x_versanddat) | = ' '. | |||
| "SELECT single MANDT FROM JITSTAT INTO @DATA(ld_mandt). | ||||
| DATA(ld_mandt) | = SY-MANDT. | |||
| DATA(ld_x_ivwkn) | = ' '. | |||
| DATA(ld_x_ivwland) | = ' '. | |||
| 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_ivwper) | = ' '. | |||
| "SELECT single VAUSGB FROM JITSTAT INTO @DATA(ld_vausgb). | ||||
| DATA(ld_x_kndgruppe) | = ' '. | |||
| DATA(ld_x_auart) | = ' '. | |||
| DATA(ld_x_lfartlog) | = ' '. | |||
| DATA(ld__scope) | = '2'. | |||
| DATA(ld__wait) | = ' '. | |||
| DATA(ld__collect) | = ' '. | |||
| "SELECT single VERSANDDAT FROM JITSTAT INTO @DATA(ld_versanddat). | ||||
| "SELECT single IVWKN FROM JITSTAT INTO @DATA(ld_ivwkn). | ||||
| "SELECT single IVWLAND FROM JITSTAT INTO @DATA(ld_ivwland). | ||||
| "SELECT single DRKEI FROM JITSTAT INTO @DATA(ld_drkei). | ||||
| "SELECT single DRERZAUFTR FROM JITSTAT INTO @DATA(ld_drerzauftr). | ||||
| "SELECT single PVAAUFTR FROM JITSTAT INTO @DATA(ld_pvaauftr). | ||||
Search for further information about these or an SAP related objects