SAP ENQUEUE_EJVSPDIRE Function Module for Request lock for object EJVSPDIRE









ENQUEUE_EJVSPDIRE is a standard enqueue ejvspdire 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 EJVSPDIRE 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 ejvspdire FM, simply by entering the name ENQUEUE_EJVSPDIRE 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_EJVSPDIRE 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_EJVSPDIRE'"Request lock for object EJVSPDIRE
EXPORTING
* MODE_JVTVSPDIR = 'E' "Lock mode for table JVTVSPDIR
* VAUSGB = "09th enqueue argument
* DRERZ = "10th enqueue argument
* PVA = "11th enqueue argument
* BEZUGSTYP = "12th enqueue argument
* VAUSTART = "13th enqueue argument
* SPOOLNR = "14th enqueue argument
* X_VERSANDDAT = ' ' "Fill argument 02 with initial value?
* X_VSPART = ' ' "Fill argument 03 with initial value?
* X_DRCKEI = ' ' "Fill argument 04 with initial value?
* X_ROUTE = ' ' "Fill argument 05 with initial value?
* MANDT = SY-MANDT "01th enqueue argument
* X_BEABLST = ' ' "Fill argument 06 with initial value?
* X_BEZIRK = ' ' "Fill argument 07 with initial value?
* X_BEZRUNDE = ' ' "Fill argument 08 with initial value?
* X_VAUSGB = ' ' "Fill argument 09 with initial value?
* X_DRERZ = ' ' "Fill argument 10 with initial value?
* X_PVA = ' ' "Fill argument 11 with initial value?
* X_BEZUGSTYP = ' ' "Fill argument 12 with initial value?
* X_VAUSTART = ' ' "Fill argument 13 with initial value?
* X_SPOOLNR = ' ' "Fill argument 14 with initial value?
* _SCOPE = '2' "
* VERSANDDAT = "02th enqueue argument
* _WAIT = ' ' "
* _COLLECT = ' ' "Initially only collect lock
* VSPART = "03th enqueue argument
* DRCKEI = "04th enqueue argument
* ROUTE = "05th enqueue argument
* BEABLST = "06th enqueue argument
* BEZIRK = "07th enqueue argument
* BEZRUNDE = "08th enqueue argument

EXCEPTIONS
FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2
.



IMPORTING Parameters details for ENQUEUE_EJVSPDIRE

MODE_JVTVSPDIR - Lock mode for table JVTVSPDIR

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

VAUSGB - 09th enqueue argument

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

DRERZ - 10th enqueue argument

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

PVA - 11th enqueue argument

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

BEZUGSTYP - 12th enqueue argument

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

VAUSTART - 13th enqueue argument

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

SPOOLNR - 14th enqueue argument

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

X_VERSANDDAT - Fill argument 02 with initial value?

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

X_VSPART - Fill argument 03 with initial value?

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

X_DRCKEI - Fill argument 04 with initial value?

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

X_ROUTE - Fill argument 05 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: JVTVSPDIR-MANDT
Default: SY-MANDT
Optional: Yes
Call by Reference: No ( called with pass by value option)

X_BEABLST - Fill argument 06 with initial value?

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

X_BEZIRK - Fill argument 07 with initial value?

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

X_BEZRUNDE - Fill argument 08 with initial value?

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

X_VAUSGB - Fill argument 09 with initial value?

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

X_DRERZ - Fill argument 10 with initial value?

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

X_PVA - Fill argument 11 with initial value?

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

X_BEZUGSTYP - Fill argument 12 with initial value?

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

X_VAUSTART - Fill argument 13 with initial value?

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

X_SPOOLNR - Fill argument 14 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)

VERSANDDAT - 02th enqueue argument

Data type: JVTVSPDIR-VERSANDDAT
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)

VSPART - 03th enqueue argument

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

DRCKEI - 04th enqueue argument

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

ROUTE - 05th enqueue argument

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

BEABLST - 06th enqueue argument

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

BEZIRK - 07th enqueue argument

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

BEZRUNDE - 08th enqueue argument

Data type: JVTVSPDIR-BEZRUNDE
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_EJVSPDIRE 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_jvtvspdir  TYPE ENQMODE, "   'E'
lv_vausgb  TYPE JVTVSPDIR-VAUSGB, "   
lv_drerz  TYPE JVTVSPDIR-DRERZ, "   
lv_pva  TYPE JVTVSPDIR-PVA, "   
lv_bezugstyp  TYPE JVTVSPDIR-BEZUGSTYP, "   
lv_vaustart  TYPE JVTVSPDIR-VAUSTART, "   
lv_spoolnr  TYPE JVTVSPDIR-SPOOLNR, "   
lv_x_versanddat  TYPE JVTVSPDIR, "   SPACE
lv_x_vspart  TYPE JVTVSPDIR, "   SPACE
lv_x_drckei  TYPE JVTVSPDIR, "   SPACE
lv_x_route  TYPE JVTVSPDIR, "   SPACE
lv_mandt  TYPE JVTVSPDIR-MANDT, "   SY-MANDT
lv_system_failure  TYPE JVTVSPDIR, "   
lv_x_beablst  TYPE JVTVSPDIR, "   SPACE
lv_x_bezirk  TYPE JVTVSPDIR, "   SPACE
lv_x_bezrunde  TYPE JVTVSPDIR, "   SPACE
lv_x_vausgb  TYPE JVTVSPDIR, "   SPACE
lv_x_drerz  TYPE JVTVSPDIR, "   SPACE
lv_x_pva  TYPE JVTVSPDIR, "   SPACE
lv_x_bezugstyp  TYPE JVTVSPDIR, "   SPACE
lv_x_vaustart  TYPE JVTVSPDIR, "   SPACE
lv_x_spoolnr  TYPE JVTVSPDIR, "   SPACE
lv__scope  TYPE JVTVSPDIR, "   '2'
lv_versanddat  TYPE JVTVSPDIR-VERSANDDAT, "   
lv__wait  TYPE JVTVSPDIR, "   SPACE
lv__collect  TYPE DDENQCOLL, "   ' '
lv_vspart  TYPE JVTVSPDIR-VSPART, "   
lv_drckei  TYPE JVTVSPDIR-DRCKEI, "   
lv_route  TYPE JVTVSPDIR-ROUTE, "   
lv_beablst  TYPE JVTVSPDIR-BEABLST, "   
lv_bezirk  TYPE JVTVSPDIR-BEZIRK, "   
lv_bezrunde  TYPE JVTVSPDIR-BEZRUNDE. "   

  CALL FUNCTION 'ENQUEUE_EJVSPDIRE'  "Request lock for object EJVSPDIRE
    EXPORTING
         MODE_JVTVSPDIR = lv_mode_jvtvspdir
         VAUSGB = lv_vausgb
         DRERZ = lv_drerz
         PVA = lv_pva
         BEZUGSTYP = lv_bezugstyp
         VAUSTART = lv_vaustart
         SPOOLNR = lv_spoolnr
         X_VERSANDDAT = lv_x_versanddat
         X_VSPART = lv_x_vspart
         X_DRCKEI = lv_x_drckei
         X_ROUTE = lv_x_route
         MANDT = lv_mandt
         X_BEABLST = lv_x_beablst
         X_BEZIRK = lv_x_bezirk
         X_BEZRUNDE = lv_x_bezrunde
         X_VAUSGB = lv_x_vausgb
         X_DRERZ = lv_x_drerz
         X_PVA = lv_x_pva
         X_BEZUGSTYP = lv_x_bezugstyp
         X_VAUSTART = lv_x_vaustart
         X_SPOOLNR = lv_x_spoolnr
         _SCOPE = lv__scope
         VERSANDDAT = lv_versanddat
         _WAIT = lv__wait
         _COLLECT = lv__collect
         VSPART = lv_vspart
         DRCKEI = lv_drckei
         ROUTE = lv_route
         BEABLST = lv_beablst
         BEZIRK = lv_bezirk
         BEZRUNDE = lv_bezrunde
    EXCEPTIONS
        FOREIGN_LOCK = 1
        SYSTEM_FAILURE = 2
. " ENQUEUE_EJVSPDIRE




ABAP code using 7.40 inline data declarations to call FM ENQUEUE_EJVSPDIRE

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_jvtvspdir) = 'E'.
 
"SELECT single VAUSGB FROM JVTVSPDIR INTO @DATA(ld_vausgb).
 
"SELECT single DRERZ FROM JVTVSPDIR INTO @DATA(ld_drerz).
 
"SELECT single PVA FROM JVTVSPDIR INTO @DATA(ld_pva).
 
"SELECT single BEZUGSTYP FROM JVTVSPDIR INTO @DATA(ld_bezugstyp).
 
"SELECT single VAUSTART FROM JVTVSPDIR INTO @DATA(ld_vaustart).
 
"SELECT single SPOOLNR FROM JVTVSPDIR INTO @DATA(ld_spoolnr).
 
DATA(ld_x_versanddat) = ' '.
 
DATA(ld_x_vspart) = ' '.
 
DATA(ld_x_drckei) = ' '.
 
DATA(ld_x_route) = ' '.
 
"SELECT single MANDT FROM JVTVSPDIR INTO @DATA(ld_mandt).
DATA(ld_mandt) = SY-MANDT.
 
 
DATA(ld_x_beablst) = ' '.
 
DATA(ld_x_bezirk) = ' '.
 
DATA(ld_x_bezrunde) = ' '.
 
DATA(ld_x_vausgb) = ' '.
 
DATA(ld_x_drerz) = ' '.
 
DATA(ld_x_pva) = ' '.
 
DATA(ld_x_bezugstyp) = ' '.
 
DATA(ld_x_vaustart) = ' '.
 
DATA(ld_x_spoolnr) = ' '.
 
DATA(ld__scope) = '2'.
 
"SELECT single VERSANDDAT FROM JVTVSPDIR INTO @DATA(ld_versanddat).
 
DATA(ld__wait) = ' '.
 
DATA(ld__collect) = ' '.
 
"SELECT single VSPART FROM JVTVSPDIR INTO @DATA(ld_vspart).
 
"SELECT single DRCKEI FROM JVTVSPDIR INTO @DATA(ld_drckei).
 
"SELECT single ROUTE FROM JVTVSPDIR INTO @DATA(ld_route).
 
"SELECT single BEABLST FROM JVTVSPDIR INTO @DATA(ld_beablst).
 
"SELECT single BEZIRK FROM JVTVSPDIR INTO @DATA(ld_bezirk).
 
"SELECT single BEZRUNDE FROM JVTVSPDIR INTO @DATA(ld_bezrunde).
 


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!