SAP ENQUEUE_EJ_3RINVLOG Function Module for Request lock for object EJ_3RINVLOG









ENQUEUE_EJ_3RINVLOG is a standard enqueue ej 3rinvlog 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 EJ_3RINVLOG 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 ej 3rinvlog FM, simply by entering the name ENQUEUE_EJ_3RINVLOG into the relevant SAP transaction such as SE37 or SE38.

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



Function ENQUEUE_EJ_3RINVLOG 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_EJ_3RINVLOG'"Request lock for object EJ_3RINVLOG
EXPORTING
* MODE_J_3RF_REGINV_LOG = 'E' "Lock mode for table J_3RF_REGINV_LOG
* REVNO = "09th enqueue argument
* X_BUKRS = ' ' "Fill argument 02 with initial value?
* X_GJAHR_IN = ' ' "Fill argument 03 with initial value?
* X_NUM_IN = ' ' "Fill argument 04 with initial value?
* X_BELNR_ORIG = ' ' "Fill argument 05 with initial value?
* X_GJAHR_ORIG = ' ' "Fill argument 06 with initial value?
* X_BELNR_CORR = ' ' "Fill argument 07 with initial value?
* X_GJAHR_CORR = ' ' "Fill argument 08 with initial value?
* X_REVNO = ' ' "Fill argument 09 with initial value?
* _SCOPE = '2' "
* MANDT = SY-MANDT "01th enqueue argument
* _WAIT = ' ' "
* _COLLECT = ' ' "Initially only collect lock
* BUKRS = "02th enqueue argument
* GJAHR_IN = "03th enqueue argument
* NUM_IN = "04th enqueue argument
* BELNR_ORIG = "05th enqueue argument
* GJAHR_ORIG = "06th enqueue argument
* BELNR_CORR = "07th enqueue argument
* GJAHR_CORR = "08th enqueue argument

EXCEPTIONS
FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2
.



IMPORTING Parameters details for ENQUEUE_EJ_3RINVLOG

MODE_J_3RF_REGINV_LOG - Lock mode for table J_3RF_REGINV_LOG

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

REVNO - 09th enqueue argument

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

X_BUKRS - Fill argument 02 with initial value?

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

X_GJAHR_IN - Fill argument 03 with initial value?

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

X_NUM_IN - Fill argument 04 with initial value?

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

X_BELNR_ORIG - Fill argument 05 with initial value?

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

X_GJAHR_ORIG - Fill argument 06 with initial value?

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

X_BELNR_CORR - Fill argument 07 with initial value?

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

X_GJAHR_CORR - Fill argument 08 with initial value?

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

X_REVNO - 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)

MANDT - 01th enqueue argument

Data type: J_3RF_REGINV_LOG-MANDT
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)

BUKRS - 02th enqueue argument

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

GJAHR_IN - 03th enqueue argument

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

NUM_IN - 04th enqueue argument

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

BELNR_ORIG - 05th enqueue argument

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

GJAHR_ORIG - 06th enqueue argument

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

BELNR_CORR - 07th enqueue argument

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

GJAHR_CORR - 08th enqueue argument

Data type: J_3RF_REGINV_LOG-GJAHR_CORR
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_EJ_3RINVLOG 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_j_3rf_reginv_log  TYPE ENQMODE, "   'E'
lv_revno  TYPE J_3RF_REGINV_LOG-REVNO, "   
lv_x_bukrs  TYPE J_3RF_REGINV_LOG, "   SPACE
lv_x_gjahr_in  TYPE J_3RF_REGINV_LOG, "   SPACE
lv_x_num_in  TYPE J_3RF_REGINV_LOG, "   SPACE
lv_x_belnr_orig  TYPE J_3RF_REGINV_LOG, "   SPACE
lv_x_gjahr_orig  TYPE J_3RF_REGINV_LOG, "   SPACE
lv_x_belnr_corr  TYPE J_3RF_REGINV_LOG, "   SPACE
lv_x_gjahr_corr  TYPE J_3RF_REGINV_LOG, "   SPACE
lv_x_revno  TYPE J_3RF_REGINV_LOG, "   SPACE
lv__scope  TYPE J_3RF_REGINV_LOG, "   '2'
lv_mandt  TYPE J_3RF_REGINV_LOG-MANDT, "   SY-MANDT
lv_system_failure  TYPE J_3RF_REGINV_LOG, "   
lv__wait  TYPE J_3RF_REGINV_LOG, "   SPACE
lv__collect  TYPE DDENQCOLL, "   ' '
lv_bukrs  TYPE J_3RF_REGINV_LOG-BUKRS, "   
lv_gjahr_in  TYPE J_3RF_REGINV_LOG-GJAHR_IN, "   
lv_num_in  TYPE J_3RF_REGINV_LOG-NUM_IN, "   
lv_belnr_orig  TYPE J_3RF_REGINV_LOG-BELNR_ORIG, "   
lv_gjahr_orig  TYPE J_3RF_REGINV_LOG-GJAHR_ORIG, "   
lv_belnr_corr  TYPE J_3RF_REGINV_LOG-BELNR_CORR, "   
lv_gjahr_corr  TYPE J_3RF_REGINV_LOG-GJAHR_CORR. "   

  CALL FUNCTION 'ENQUEUE_EJ_3RINVLOG'  "Request lock for object EJ_3RINVLOG
    EXPORTING
         MODE_J_3RF_REGINV_LOG = lv_mode_j_3rf_reginv_log
         REVNO = lv_revno
         X_BUKRS = lv_x_bukrs
         X_GJAHR_IN = lv_x_gjahr_in
         X_NUM_IN = lv_x_num_in
         X_BELNR_ORIG = lv_x_belnr_orig
         X_GJAHR_ORIG = lv_x_gjahr_orig
         X_BELNR_CORR = lv_x_belnr_corr
         X_GJAHR_CORR = lv_x_gjahr_corr
         X_REVNO = lv_x_revno
         _SCOPE = lv__scope
         MANDT = lv_mandt
         _WAIT = lv__wait
         _COLLECT = lv__collect
         BUKRS = lv_bukrs
         GJAHR_IN = lv_gjahr_in
         NUM_IN = lv_num_in
         BELNR_ORIG = lv_belnr_orig
         GJAHR_ORIG = lv_gjahr_orig
         BELNR_CORR = lv_belnr_corr
         GJAHR_CORR = lv_gjahr_corr
    EXCEPTIONS
        FOREIGN_LOCK = 1
        SYSTEM_FAILURE = 2
. " ENQUEUE_EJ_3RINVLOG




ABAP code using 7.40 inline data declarations to call FM ENQUEUE_EJ_3RINVLOG

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_j_3rf_reginv_log) = 'E'.
 
"SELECT single REVNO FROM J_3RF_REGINV_LOG INTO @DATA(ld_revno).
 
DATA(ld_x_bukrs) = ' '.
 
DATA(ld_x_gjahr_in) = ' '.
 
DATA(ld_x_num_in) = ' '.
 
DATA(ld_x_belnr_orig) = ' '.
 
DATA(ld_x_gjahr_orig) = ' '.
 
DATA(ld_x_belnr_corr) = ' '.
 
DATA(ld_x_gjahr_corr) = ' '.
 
DATA(ld_x_revno) = ' '.
 
DATA(ld__scope) = '2'.
 
"SELECT single MANDT FROM J_3RF_REGINV_LOG INTO @DATA(ld_mandt).
DATA(ld_mandt) = SY-MANDT.
 
 
DATA(ld__wait) = ' '.
 
DATA(ld__collect) = ' '.
 
"SELECT single BUKRS FROM J_3RF_REGINV_LOG INTO @DATA(ld_bukrs).
 
"SELECT single GJAHR_IN FROM J_3RF_REGINV_LOG INTO @DATA(ld_gjahr_in).
 
"SELECT single NUM_IN FROM J_3RF_REGINV_LOG INTO @DATA(ld_num_in).
 
"SELECT single BELNR_ORIG FROM J_3RF_REGINV_LOG INTO @DATA(ld_belnr_orig).
 
"SELECT single GJAHR_ORIG FROM J_3RF_REGINV_LOG INTO @DATA(ld_gjahr_orig).
 
"SELECT single BELNR_CORR FROM J_3RF_REGINV_LOG INTO @DATA(ld_belnr_corr).
 
"SELECT single GJAHR_CORR FROM J_3RF_REGINV_LOG INTO @DATA(ld_gjahr_corr).
 


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!